Index: src/arm/full-codegen-arm.cc |
diff --git a/src/arm/full-codegen-arm.cc b/src/arm/full-codegen-arm.cc |
index 1fdc01d7c7e2d598538a7e3f2d23b9cce9d87f4d..c18b9c34f7d0801ce32050be7b24ceef5e802348 100644 |
--- a/src/arm/full-codegen-arm.cc |
+++ b/src/arm/full-codegen-arm.cc |
@@ -774,11 +774,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. |
- __ mov(r2, Operand(pairs)); |
- __ mov(r1, Operand(Smi::FromInt(is_eval() ? 1 : 0))); |
- __ mov(r0, Operand(Smi::FromInt(strict_mode_flag()))); |
- __ Push(cp, r2, r1, r0); |
- __ CallRuntime(Runtime::kDeclareGlobals, 4); |
+ __ mov(r1, Operand(pairs)); |
+ __ mov(r0, Operand(Smi::FromInt(DeclareGlobalsFlags()))); |
+ __ Push(cp, r1, r0); |
+ __ CallRuntime(Runtime::kDeclareGlobals, 3); |
// Return value is ignored. |
} |