| 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 d3d53334d4295b493cc6ad40c520532ab6d8067a..9cfc2be6181ebbbf3d0581c3732ca1c1d4ebdbff 100644
|
| --- a/src/full-codegen/arm/full-codegen-arm.cc
|
| +++ b/src/full-codegen/arm/full-codegen-arm.cc
|
| @@ -850,10 +850,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;
|
| }
|
| }
|
| @@ -909,7 +907,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;
|
| }
|
| }
|
|
|