| 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 b53e8ee6cde133fdefe74dde81723ddaea3cd45c..78076b06beb7a9924a4f5be7a943b363e8008bd1 100644
|
| --- a/src/full-codegen/arm64/full-codegen-arm64.cc
|
| +++ b/src/full-codegen/arm64/full-codegen-arm64.cc
|
| @@ -855,10 +855,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;
|
| }
|
| }
|
| @@ -914,7 +912,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;
|
| }
|
| }
|
|
|