-
Bug
-
Resolution: Fixed
-
P4
-
24
-
None
The API `CodeBuilder.loadConstant(Opcode, ConstantDesc)` seems like a relic from the old `constantInstruction(Opcode, ConstantDesc)` back when there were no factories for specific individual instructions. It makes little sense to specify the type of Opcode when the `loadConstant(ConstantDesc)` automatically handles it. Worse, this is actually confusing combined with the shortcut API. Users who really wish to specify opcode should use the individual factories to create Instruction instances instead.
- csr for
-
JDK-8339283 Remove misleading CodeBuilder.loadConstant(Opcode, ConstantDesc)
-
- Closed
-
- links to
-
Commit(master) openjdk/jdk/ad40a122
-
Review(master) openjdk/jdk/20779