Index: src/builtins/arm64/builtins-arm64.cc |
diff --git a/src/builtins/arm64/builtins-arm64.cc b/src/builtins/arm64/builtins-arm64.cc |
index 74a1685dd3b501b7659154283968a86275e9956b..788123e2b8aa2ee0955fe4f75530ad2d394d46d8 100644 |
--- a/src/builtins/arm64/builtins-arm64.cc |
+++ b/src/builtins/arm64/builtins-arm64.cc |
@@ -744,8 +744,8 @@ void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) { |
__ Str(x2, FieldMemOperand(x1, JSGeneratorObject::kResumeModeOffset)); |
// Load suspended function and context. |
- __ Ldr(cp, FieldMemOperand(x1, JSGeneratorObject::kContextOffset)); |
__ Ldr(x4, FieldMemOperand(x1, JSGeneratorObject::kFunctionOffset)); |
+ __ Ldr(cp, FieldMemOperand(x4, JSFunction::kContextOffset)); |
// Flood function if we are stepping. |
Label prepare_step_in_if_stepping, prepare_step_in_suspended_generator; |