Skip to content

Commit 7aa5dc9

Browse files
committed
Minor: remove outdated EpilogReturn comment, fix typo on manual benchmark interpreter
1 parent 49623e2 commit 7aa5dc9

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

truffle/src/com.oracle.truffle.api.benchmark/src/com/oracle/truffle/api/benchmark/bytecode/manual/ManualNodedBytecodeInterpreters.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ protected Object executeAt(VirtualFrame frame, int startBci, int startSp) throws
418418
}
419419
// (i -- )
420420
case OP_RETURN: {
421-
return FRAMES.expectObject(frame, sp - 1);
421+
return FRAMES.expectInt(frame, sp - 1);
422422
}
423423
default:
424424
CompilerDirectives.shouldNotReachHere();

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3838,12 +3838,7 @@ private void addEndOperationDoc(OperationModel operation, CodeExecutableElement
38383838
lines.add("<p>");
38393839
lines.add(getOperationSignatureJavadoc(operation));
38403840

3841-
if (model.epilogReturn != null && operation == model.epilogReturn.operation) {
3842-
lines.add("<p>");
3843-
lines.add(String.format(
3844-
"NB: This method does not directly emit %s instructions. Instead, {@link #beforeEmitReturn} uses the operation stack entry to determine that each Return should be preceded by a %s instruction.",
3845-
operation.name, operation.name));
3846-
} else if (operation.kind == OperationKind.TAG) {
3841+
if (operation.kind == OperationKind.TAG) {
38473842
lines.add("<p>");
38483843
lines.add("The tags passed to this method should match the ones used in the corresponding {@link #beginTag} call.");
38493844
}

0 commit comments

Comments
 (0)