Chromium Code Reviews

Unified Diff: src/builtins/x64/builtins-x64.cc

Issue 2639533002: [generators] Always call function with closure context when resuming. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « no previous file | src/compiler/js-intrinsic-lowering.h » ('j') | test/mjsunit/regress/regress-681171-1.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/builtins/x64/builtins-x64.cc
diff --git a/src/builtins/x64/builtins-x64.cc b/src/builtins/x64/builtins-x64.cc
index 127d13efb6488ebc98f3604d27e69a6670ba64cc..1a6a6759e1a4bdc38ef9174f9bffa4f32d09683e 100644
--- a/src/builtins/x64/builtins-x64.cc
+++ b/src/builtins/x64/builtins-x64.cc
@@ -458,8 +458,8 @@ void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) {
__ movp(FieldOperand(rbx, JSGeneratorObject::kResumeModeOffset), rdx);
// Load suspended function and context.
- __ movp(rsi, FieldOperand(rbx, JSGeneratorObject::kContextOffset));
__ movp(rdi, FieldOperand(rbx, JSGeneratorObject::kFunctionOffset));
+ __ movp(rsi, FieldOperand(rdi, JSFunction::kContextOffset));
// Flood function if we are stepping.
Label prepare_step_in_if_stepping, prepare_step_in_suspended_generator;
« no previous file with comments | « no previous file | src/compiler/js-intrinsic-lowering.h » ('j') | test/mjsunit/regress/regress-681171-1.js » ('J')

Powered by Google App Engine