Skip to content

Commit bbf5620

Browse files
committed
Small BytecodeDSLNodeGeneratorPlugs cleanups
1 parent 3a4e7be commit bbf5620

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

truffle/src/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/bytecode/generator/BytecodeDSLNodeGeneratorPlugs.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,6 @@ private boolean buildOperandExecution(CodeTreeBuilder b, FrameState frameState,
227227

228228
boolean expectOtherTypes = instruction.getQuickeningRoot().needsChildBciForBoxingElimination(model, operandIndex);
229229
if (boxingEliminated) {
230-
final TypeMirror expectedType = instructionType;
231-
232230
if (!expectOtherTypes) {
233231
// Sanity check for the internal consistency of boxing elimination and
234232
// needsChildBciForBoxingElimination.
@@ -249,7 +247,7 @@ private boolean buildOperandExecution(CodeTreeBuilder b, FrameState frameState,
249247
b.startStaticCall(cast.getMethod());
250248
}
251249

252-
BytecodeRootNodeElement.startExpectFrameUnsafe(b, frame, expectedType);
250+
BytecodeRootNodeElement.startExpectFrameUnsafe(b, frame, instructionType);
253251
b.string(stackIndex);
254252
b.end();
255253

@@ -289,7 +287,7 @@ private boolean buildOperandExecution(CodeTreeBuilder b, FrameState frameState,
289287
* If boxing elimination is not used in the interpreter version then we can assume
290288
* the frame tag is object.
291289
*/
292-
// frame.requireObject(index)
290+
// frame.getObject(index)
293291
b.string(BytecodeRootNodeElement.uncheckedGetFrameObject(frame, stackIndex));
294292
return false; // no unexpected exception thrown
295293
}

0 commit comments

Comments
 (0)