| Index: src/full-codegen/x64/full-codegen-x64.cc
|
| diff --git a/src/full-codegen/x64/full-codegen-x64.cc b/src/full-codegen/x64/full-codegen-x64.cc
|
| index f2850ceebb8b680ad3c4ebedd529c69d28d07b62..e43c3c0bd982ad7e38a962d1cdc55f28360dfa44 100644
|
| --- a/src/full-codegen/x64/full-codegen-x64.cc
|
| +++ b/src/full-codegen/x64/full-codegen-x64.cc
|
| @@ -2450,8 +2450,8 @@ void FullCodeGenerator::EmitCall(Call* expr, ConvertReceiverMode mode) {
|
| context()->DropAndPlug(1, rax);
|
| }
|
|
|
| -
|
| -void FullCodeGenerator::EmitResolvePossiblyDirectEval(int arg_count) {
|
| +void FullCodeGenerator::EmitResolvePossiblyDirectEval(Call* expr) {
|
| + int arg_count = expr->arguments()->length();
|
| // Push copy of the first argument or undefined if it doesn't exist.
|
| if (arg_count > 0) {
|
| __ Push(Operand(rsp, arg_count * kPointerSize));
|
| @@ -2468,6 +2468,9 @@ void FullCodeGenerator::EmitResolvePossiblyDirectEval(int arg_count) {
|
| // Push the start position of the scope the calls resides in.
|
| __ Push(Smi::FromInt(scope()->start_position()));
|
|
|
| + // Push the source position of the eval call.
|
| + __ Push(Smi::FromInt(expr->position()));
|
| +
|
| // Do the runtime call.
|
| __ CallRuntime(Runtime::kResolvePossiblyDirectEval);
|
| }
|
| @@ -2515,7 +2518,7 @@ void FullCodeGenerator::PushCalleeAndWithBaseObject(Call* expr) {
|
|
|
|
|
| void FullCodeGenerator::EmitPossiblyEvalCall(Call* expr) {
|
| - // In a call to eval, we first call RuntimeHidden_ResolvePossiblyDirectEval
|
| + // In a call to eval, we first call Runtime_ResolvePossiblyDirectEval
|
| // to resolve the function we need to call. Then we call the resolved
|
| // function using the given arguments.
|
| ZoneList<Expression*>* args = expr->arguments();
|
| @@ -2530,7 +2533,7 @@ void FullCodeGenerator::EmitPossiblyEvalCall(Call* expr) {
|
| // Push a copy of the function (found below the arguments) and resolve
|
| // eval.
|
| __ Push(Operand(rsp, (arg_count + 1) * kPointerSize));
|
| - EmitResolvePossiblyDirectEval(arg_count);
|
| + EmitResolvePossiblyDirectEval(expr);
|
|
|
| // Touch up the callee.
|
| __ movp(Operand(rsp, (arg_count + 1) * kPointerSize), rax);
|
|
|