Index: src/full-codegen/arm64/full-codegen-arm64.cc |
diff --git a/src/full-codegen/arm64/full-codegen-arm64.cc b/src/full-codegen/arm64/full-codegen-arm64.cc |
index c4f8726dc22554a10925d9697b2ccc348b87a00a..fa5ead95312cca61900de3975a50ba2d165b0a09 100644 |
--- a/src/full-codegen/arm64/full-codegen-arm64.cc |
+++ b/src/full-codegen/arm64/full-codegen-arm64.cc |
@@ -851,10 +851,8 @@ void FullCodeGenerator::VisitVariableDeclaration( |
// Pushing 0 (xzr) indicates no initial value. |
__ Push(x2, xzr); |
} |
- __ CallRuntime(IsImmutableVariableMode(mode) |
- ? Runtime::kDeclareReadOnlyLookupSlot |
- : Runtime::kDeclareLookupSlot, |
- 2); |
+ __ Push(Smi::FromInt(variable->DeclarationPropertyAttributes())); |
+ __ CallRuntime(Runtime::kDeclareLookupSlot, 3); |
break; |
} |
} |
@@ -910,7 +908,8 @@ void FullCodeGenerator::VisitFunctionDeclaration( |
__ Push(x2); |
// Push initial value for function declaration. |
VisitForStackValue(declaration->fun()); |
- __ CallRuntime(Runtime::kDeclareLookupSlot, 2); |
+ __ Push(Smi::FromInt(variable->DeclarationPropertyAttributes())); |
+ __ CallRuntime(Runtime::kDeclareLookupSlot, 3); |
break; |
} |
} |