Index: src/x64/full-codegen-x64.cc |
diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc |
index 2a30bb8cfe0aee22e4d73abc55b7f7de84161955..a10ddd16536a573de76fc04ca40c48404d78ac91 100644 |
--- a/src/x64/full-codegen-x64.cc |
+++ b/src/x64/full-codegen-x64.cc |
@@ -1934,7 +1934,9 @@ void FullCodeGenerator::VisitCall(Call* expr) { |
// Push the receiver of the enclosing function and do runtime call. |
__ push(Operand(rbp, (2 + scope()->num_parameters()) * kPointerSize)); |
- __ CallRuntime(Runtime::kResolvePossiblyDirectEval, 3); |
+ // Push the strict mode flag. |
+ __ Push(Smi::FromInt(strict_mode_flag())); |
+ __ CallRuntime(Runtime::kResolvePossiblyDirectEval, 4); |
// The runtime call returns a pair of values in rax (function) and |
// rdx (receiver). Touch up the stack with the right values. |