Index: src/mips/full-codegen-mips.cc |
diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc |
index 40c09ba3949baf1b603cc1caf3dbab0ab05d5000..2bfa6aa92c674ec7680ddb9fd67814c79a17fbf8 100644 |
--- a/src/mips/full-codegen-mips.cc |
+++ b/src/mips/full-codegen-mips.cc |
@@ -781,11 +781,10 @@ void FullCodeGenerator::VisitDeclaration(Declaration* decl) { |
void FullCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) { |
// Call the runtime to declare the globals. |
// The context is the first argument. |
- __ li(a2, Operand(pairs)); |
- __ li(a1, Operand(Smi::FromInt(is_eval() ? 1 : 0))); |
- __ li(a0, Operand(Smi::FromInt(strict_mode_flag()))); |
- __ Push(cp, a2, a1, a0); |
- __ CallRuntime(Runtime::kDeclareGlobals, 4); |
+ __ li(a1, Operand(pairs)); |
+ __ li(a0, Operand(Smi::FromInt(DeclareGlobalsFlags()))); |
+ __ Push(cp, a1, a0); |
+ __ CallRuntime(Runtime::kDeclareGlobals, 3); |
// Return value is ignored. |
} |