Skip to content

Commit

Permalink
Add convenience dump() on bytecode loop node
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Marr <[email protected]>
  • Loading branch information
smarr committed Aug 13, 2024
1 parent d986f42 commit 9b6c97e
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
import trufflesom.compiler.Parser.ParseError;
import trufflesom.compiler.Variable.Local;
import trufflesom.compiler.bc.BytecodeMethodGenContext;
import trufflesom.compiler.bc.Disassembler;
import trufflesom.interpreter.EscapedBlockException;
import trufflesom.interpreter.FrameOnStackMarker;
import trufflesom.interpreter.Invokable;
Expand Down Expand Up @@ -1123,6 +1124,10 @@ public Object executeGeneric(final VirtualFrame frame) {
}
}

public void dump() {
Disassembler.dumpMethod(this, "");
}

@InliningCutoff
public Object specializeSendBytecode(final VirtualFrame frame, final int bytecodeIndex,
final SSymbol signature, final int numberOfArguments, final Object[] callArgs) {
Expand Down

0 comments on commit 9b6c97e

Please sign in to comment.