Index: src/full-codegen/mips/full-codegen-mips.cc |
diff --git a/src/full-codegen/mips/full-codegen-mips.cc b/src/full-codegen/mips/full-codegen-mips.cc |
index da73bc0bbbb0d60d28d70a62cc3532f645a94b04..1a917a09d807a23d4637a3366ed9d948d15be291 100644 |
--- a/src/full-codegen/mips/full-codegen-mips.cc |
+++ b/src/full-codegen/mips/full-codegen-mips.cc |
@@ -2567,8 +2567,8 @@ |
context()->DropAndPlug(1, v0); |
} |
-void FullCodeGenerator::EmitResolvePossiblyDirectEval(Call* expr) { |
- int arg_count = expr->arguments()->length(); |
+ |
+void FullCodeGenerator::EmitResolvePossiblyDirectEval(int arg_count) { |
// t3: copy of the first argument or undefined if it doesn't exist. |
if (arg_count > 0) { |
__ lw(t3, MemOperand(sp, arg_count * kPointerSize)); |
@@ -2582,8 +2582,8 @@ |
// t1: the language mode. |
__ li(t1, Operand(Smi::FromInt(language_mode()))); |
- // t0: the source position of the eval call. |
- __ li(t0, Operand(Smi::FromInt(expr->position()))); |
+ // t0: the start position of the scope the calls resides in. |
+ __ li(t0, Operand(Smi::FromInt(scope()->start_position()))); |
// Do the runtime call. |
__ Push(t3, t2, t1, t0); |
@@ -2635,7 +2635,7 @@ |
void FullCodeGenerator::EmitPossiblyEvalCall(Call* expr) { |
- // In a call to eval, we first call Runtime_ResolvePossiblyDirectEval |
+ // In a call to eval, we first call RuntimeHidden_ResolvePossiblyDirectEval |
// to resolve the function we need to call. Then we call the resolved |
// function using the given arguments. |
ZoneList<Expression*>* args = expr->arguments(); |
@@ -2651,7 +2651,7 @@ |
// resolve eval. |
__ lw(a1, MemOperand(sp, (arg_count + 1) * kPointerSize)); |
__ push(a1); |
- EmitResolvePossiblyDirectEval(expr); |
+ EmitResolvePossiblyDirectEval(arg_count); |
// Touch up the stack with the resolved function. |
__ sw(v0, MemOperand(sp, (arg_count + 1) * kPointerSize)); |