| Index: src/full-codegen/x87/full-codegen-x87.cc
|
| diff --git a/src/full-codegen/x87/full-codegen-x87.cc b/src/full-codegen/x87/full-codegen-x87.cc
|
| index 1389ad02a1242fc590c71df8349d0b6ff4fcb319..2fbf24ed679b27df78988d0875de558132a62a15 100644
|
| --- a/src/full-codegen/x87/full-codegen-x87.cc
|
| +++ b/src/full-codegen/x87/full-codegen-x87.cc
|
| @@ -793,10 +793,8 @@ void FullCodeGenerator::VisitVariableDeclaration(
|
| } else {
|
| __ push(Immediate(Smi::FromInt(0))); // Indicates no initial value.
|
| }
|
| - __ CallRuntime(IsImmutableVariableMode(mode)
|
| - ? Runtime::kDeclareReadOnlyLookupSlot
|
| - : Runtime::kDeclareLookupSlot,
|
| - 2);
|
| + __ push(Immediate(variable->DeclarationPropertyAttributes()));
|
| + __ CallRuntime(Runtime::kDeclareLookupSlot, 3);
|
| break;
|
| }
|
| }
|
| @@ -844,7 +842,8 @@ void FullCodeGenerator::VisitFunctionDeclaration(
|
| Comment cmnt(masm_, "[ FunctionDeclaration");
|
| __ push(Immediate(variable->name()));
|
| VisitForStackValue(declaration->fun());
|
| - __ CallRuntime(Runtime::kDeclareLookupSlot, 2);
|
| + __ push(Immediate(variable->DeclarationPropertyAttributes()));
|
| + __ CallRuntime(Runtime::kDeclareLookupSlot, 3);
|
| break;
|
| }
|
| }
|
|
|