Index: src/builtins/arm64/builtins-arm64.cc |
diff --git a/src/builtins/arm64/builtins-arm64.cc b/src/builtins/arm64/builtins-arm64.cc |
index e5f711e38600ecbfe66fcb414d8cbaef117fde07..dc9de254e5f3090fc19f124ba0ccef524809df15 100644 |
--- a/src/builtins/arm64/builtins-arm64.cc |
+++ b/src/builtins/arm64/builtins-arm64.cc |
@@ -1040,6 +1040,11 @@ void Builtins::Generate_InterpreterEntryTrampoline(MacroAssembler* masm) { |
__ Assert(eq, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry); |
} |
+ // Reset code age. |
+ __ Mov(x10, Operand(BytecodeArray::kNoAgeBytecodeAge)); |
+ __ Strb(x10, FieldMemOperand(kInterpreterBytecodeArrayRegister, |
+ BytecodeArray::kBytecodeAgeOffset)); |
+ |
// Load the initial bytecode offset. |
__ Mov(kInterpreterBytecodeOffsetRegister, |
Operand(BytecodeArray::kHeaderSize - kHeapObjectTag)); |