| Index: src/full-codegen/mips64/full-codegen-mips64.cc
|
| diff --git a/src/full-codegen/mips64/full-codegen-mips64.cc b/src/full-codegen/mips64/full-codegen-mips64.cc
|
| index de7f99ef94c5e597d90ce225b99d0bd090612dae..e5d8beb3e7ede8ce1d4775d4ad8d9250c1a8ea71 100644
|
| --- a/src/full-codegen/mips64/full-codegen-mips64.cc
|
| +++ b/src/full-codegen/mips64/full-codegen-mips64.cc
|
| @@ -849,10 +849,8 @@ void FullCodeGenerator::VisitVariableDeclaration(
|
| __ mov(a0, zero_reg); // Smi::FromInt(0) indicates no initial value.
|
| }
|
| __ Push(a2, a0);
|
| - __ CallRuntime(IsImmutableVariableMode(mode)
|
| - ? Runtime::kDeclareReadOnlyLookupSlot
|
| - : Runtime::kDeclareLookupSlot,
|
| - 2);
|
| + __ Push(Smi::FromInt(variable->DeclarationPropertyAttributes()));
|
| + __ CallRuntime(Runtime::kDeclareLookupSlot, 3);
|
| break;
|
| }
|
| }
|
| @@ -908,7 +906,8 @@ void FullCodeGenerator::VisitFunctionDeclaration(
|
| __ Push(a2);
|
| // Push initial value for function declaration.
|
| VisitForStackValue(declaration->fun());
|
| - __ CallRuntime(Runtime::kDeclareLookupSlot, 2);
|
| + __ Push(Smi::FromInt(variable->DeclarationPropertyAttributes()));
|
| + __ CallRuntime(Runtime::kDeclareLookupSlot, 3);
|
| break;
|
| }
|
| }
|
|
|