Index: src/full-codegen/arm/full-codegen-arm.cc |
diff --git a/src/full-codegen/arm/full-codegen-arm.cc b/src/full-codegen/arm/full-codegen-arm.cc |
index a06690770c6162559abbde97853391f2909bff2f..26e929a0579ece60e75059fa91538382a1b12043 100644 |
--- a/src/full-codegen/arm/full-codegen-arm.cc |
+++ b/src/full-codegen/arm/full-codegen-arm.cc |
@@ -847,10 +847,8 @@ void FullCodeGenerator::VisitVariableDeclaration( |
__ mov(r0, Operand(Smi::FromInt(0))); // Indicates no initial value. |
} |
__ Push(r2, r0); |
- __ CallRuntime(IsImmutableVariableMode(mode) |
- ? Runtime::kDeclareReadOnlyLookupSlot |
- : Runtime::kDeclareLookupSlot, |
- 2); |
+ __ Push(Smi::FromInt(variable->DeclarationPropertyAttributes())); |
+ __ CallRuntime(Runtime::kDeclareLookupSlot, 3); |
break; |
} |
} |
@@ -906,7 +904,8 @@ void FullCodeGenerator::VisitFunctionDeclaration( |
__ Push(r2); |
// Push initial value for function declaration. |
VisitForStackValue(declaration->fun()); |
- __ CallRuntime(Runtime::kDeclareLookupSlot, 2); |
+ __ Push(Smi::FromInt(variable->DeclarationPropertyAttributes())); |
+ __ CallRuntime(Runtime::kDeclareLookupSlot, 3); |
break; |
} |
} |