Index: src/x87/full-codegen-x87.cc |
diff --git a/src/x87/full-codegen-x87.cc b/src/x87/full-codegen-x87.cc |
index 9240fc8a5d92f6445c5beca15cd0f5f355596ac3..8c739633413e63dc5dddfda712b733e9c179311b 100644 |
--- a/src/x87/full-codegen-x87.cc |
+++ b/src/x87/full-codegen-x87.cc |
@@ -2844,6 +2844,8 @@ void FullCodeGenerator::EmitResolvePossiblyDirectEval(int arg_count) { |
__ push(Immediate(isolate()->factory()->undefined_value())); |
} |
+ // Push the enclosing function. |
+ __ push(Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); |
// Push the receiver of the enclosing function. |
__ push(Operand(ebp, (2 + info_->scope()->num_parameters()) * kPointerSize)); |
// Push the language mode. |
@@ -2853,7 +2855,7 @@ void FullCodeGenerator::EmitResolvePossiblyDirectEval(int arg_count) { |
__ push(Immediate(Smi::FromInt(scope()->start_position()))); |
// Do the runtime call. |
- __ CallRuntime(Runtime::kResolvePossiblyDirectEval, 5); |
+ __ CallRuntime(Runtime::kResolvePossiblyDirectEval, 6); |
} |