| Index: src/full-codegen/s390/full-codegen-s390.cc
|
| diff --git a/src/full-codegen/s390/full-codegen-s390.cc b/src/full-codegen/s390/full-codegen-s390.cc
|
| index ca2e196119322a85613f17c5e339bbd3a46e7c7f..29a7f761b292c340e571835fb45d95d8ce79e9a2 100644
|
| --- a/src/full-codegen/s390/full-codegen-s390.cc
|
| +++ b/src/full-codegen/s390/full-codegen-s390.cc
|
| @@ -2599,8 +2599,7 @@
|
| context()->DropAndPlug(1, r2);
|
| }
|
|
|
| -void FullCodeGenerator::EmitResolvePossiblyDirectEval(Call* expr) {
|
| - int arg_count = expr->arguments()->length();
|
| +void FullCodeGenerator::EmitResolvePossiblyDirectEval(int arg_count) {
|
| // r6: copy of the first argument or undefined if it doesn't exist.
|
| if (arg_count > 0) {
|
| __ LoadP(r6, MemOperand(sp, arg_count * kPointerSize), r0);
|
| @@ -2614,8 +2613,8 @@
|
| // r4: language mode.
|
| __ LoadSmiLiteral(r4, Smi::FromInt(language_mode()));
|
|
|
| - // r3: the source position of the eval call.
|
| - __ LoadSmiLiteral(r3, Smi::FromInt(expr->position()));
|
| + // r3: the start position of the scope the calls resides in.
|
| + __ LoadSmiLiteral(r3, Smi::FromInt(scope()->start_position()));
|
|
|
| // Do the runtime call.
|
| __ Push(r6, r5, r4, r3);
|
| @@ -2664,7 +2663,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();
|
| @@ -2681,7 +2680,7 @@
|
| // resolve eval.
|
| __ LoadP(r3, MemOperand(sp, (arg_count + 1) * kPointerSize), r0);
|
| __ push(r3);
|
| - EmitResolvePossiblyDirectEval(expr);
|
| + EmitResolvePossiblyDirectEval(arg_count);
|
|
|
| // Touch up the stack with the resolved function.
|
| __ StoreP(r2, MemOperand(sp, (arg_count + 1) * kPointerSize), r0);
|
|
|