| Index: src/full-codegen/mips64/full-codegen-mips64.cc
|
| diff --git a/src/full-codegen/mips64/full-codegen-mips64.cc b/src/full-codegen/mips64/full-codegen-mips64.cc
|
| index ff5cf9629185442157164f0cbb94c6bbc64a282f..e59ebe1515d1488fd9c11ea3f98154b8b1ffbf77 100644
|
| --- a/src/full-codegen/mips64/full-codegen-mips64.cc
|
| +++ b/src/full-codegen/mips64/full-codegen-mips64.cc
|
| @@ -2661,8 +2661,8 @@ void FullCodeGenerator::EmitCall(Call* expr, ConvertReceiverMode mode) {
|
| context()->DropAndPlug(1, v0);
|
| }
|
|
|
| -
|
| -void FullCodeGenerator::EmitResolvePossiblyDirectEval(int arg_count) {
|
| +void FullCodeGenerator::EmitResolvePossiblyDirectEval(Call* expr) {
|
| + int arg_count = expr->arguments()->length();
|
| // a6: copy of the first argument or undefined if it doesn't exist.
|
| if (arg_count > 0) {
|
| __ ld(a6, MemOperand(sp, arg_count * kPointerSize));
|
| @@ -2677,7 +2677,7 @@ void FullCodeGenerator::EmitResolvePossiblyDirectEval(int arg_count) {
|
| __ li(a4, Operand(Smi::FromInt(language_mode())));
|
|
|
| // a1: the start position of the scope the calls resides in.
|
| - __ li(a1, Operand(Smi::FromInt(scope()->start_position())));
|
| + __ li(a1, Operand(Smi::FromInt(expr->position())));
|
|
|
| // Do the runtime call.
|
| __ Push(a6, a5, a4, a1);
|
| @@ -2745,7 +2745,7 @@ void FullCodeGenerator::EmitPossiblyEvalCall(Call* expr) {
|
| // resolve eval.
|
| __ ld(a1, MemOperand(sp, (arg_count + 1) * kPointerSize));
|
| __ push(a1);
|
| - EmitResolvePossiblyDirectEval(arg_count);
|
| + EmitResolvePossiblyDirectEval(expr);
|
|
|
| // Touch up the stack with the resolved function.
|
| __ sd(v0, MemOperand(sp, (arg_count + 1) * kPointerSize));
|
|
|