Index: src/x64/stub-cache-x64.cc |
diff --git a/src/x64/stub-cache-x64.cc b/src/x64/stub-cache-x64.cc |
index dbfd419290c692b61758bacb58d9e76dcea55668..b579e94e7b72e61a9b400c711542c49b790a95f1 100644 |
--- a/src/x64/stub-cache-x64.cc |
+++ b/src/x64/stub-cache-x64.cc |
@@ -521,6 +521,7 @@ static void GenerateFastApiCallBody(MacroAssembler* masm, |
Handle<JSFunction> function = optimization.constant_function(); |
__ Move(scratch2, function); |
__ push(scratch2); |
+ __ movp(rsi, FieldOperand(scratch2, JSFunction::kContextOffset)); |
Isolate* isolate = masm->isolate(); |
Handle<CallHandlerInfo> api_call_info = optimization.api_call_info(); |