Index: src/interpreter/interpreter-assembler.cc |
diff --git a/src/interpreter/interpreter-assembler.cc b/src/interpreter/interpreter-assembler.cc |
index 67c5638e2942756349cf83d59a8a6e7e41cacf5d..c143751b3499a0e3bc3ebcf89dc9ddef9f7c0856 100644 |
--- a/src/interpreter/interpreter-assembler.cc |
+++ b/src/interpreter/interpreter-assembler.cc |
@@ -42,6 +42,8 @@ InterpreterAssembler::InterpreterAssembler(CodeAssemblerState* state, |
if (FLAG_trace_ignition) { |
TraceBytecode(Runtime::kInterpreterTraceBytecodeEntry); |
} |
+ RegisterCallGenerationCallbacks([this] { CallPrologue(); }, |
+ [this] { CallEpilogue(); }); |
} |
InterpreterAssembler::~InterpreterAssembler() { |
@@ -49,6 +51,7 @@ InterpreterAssembler::~InterpreterAssembler() { |
// accumulator in the way described in the bytecode definitions in |
// bytecodes.h. |
DCHECK_EQ(accumulator_use_, Bytecodes::GetAccumulatorUse(bytecode_)); |
+ UnregisterCallGenerationCallbacks(); |
} |
Node* InterpreterAssembler::GetInterpretedFramePointer() { |