Index: src/x64/full-codegen-x64.cc |
diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc |
index 4229f445b39b0fd283bb0a51264ca739a3d56cc8..ba7ef08966cee61afa1dd8c29e7dae2926814be5 100644 |
--- a/src/x64/full-codegen-x64.cc |
+++ b/src/x64/full-codegen-x64.cc |
@@ -2855,6 +2855,9 @@ void FullCodeGenerator::EmitResolvePossiblyDirectEval(int arg_count) { |
__ PushRoot(Heap::kUndefinedValueRootIndex); |
} |
+ // Push the enclosing function. |
+ __ Push(Operand(rbp, JavaScriptFrameConstants::kFunctionOffset)); |
+ |
// Push the receiver of the enclosing function and do runtime call. |
StackArgumentsAccessor args(rbp, info_->scope()->num_parameters()); |
__ Push(args.GetReceiverOperand()); |
@@ -2866,7 +2869,7 @@ void FullCodeGenerator::EmitResolvePossiblyDirectEval(int arg_count) { |
__ Push(Smi::FromInt(scope()->start_position())); |
// Do the runtime call. |
- __ CallRuntime(Runtime::kResolvePossiblyDirectEval, 5); |
+ __ CallRuntime(Runtime::kResolvePossiblyDirectEval, 6); |
} |