| Index: src/full-codegen/mips/full-codegen-mips.cc
|
| diff --git a/src/full-codegen/mips/full-codegen-mips.cc b/src/full-codegen/mips/full-codegen-mips.cc
|
| index f38c01bbeaa0cc36275a9bf83c31c97d8388da1d..b858d0ce75cc828c0109a1f090946c2ec020a113 100644
|
| --- a/src/full-codegen/mips/full-codegen-mips.cc
|
| +++ b/src/full-codegen/mips/full-codegen-mips.cc
|
| @@ -855,10 +855,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;
|
| }
|
| }
|
| @@ -914,7 +912,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;
|
| }
|
| }
|
|
|