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 a85152d7a98e8b107c81611a4aeecf21ec3ff8a2..b78f66959bb2adf59b17c689593ca0596da7e66d 100644 |
--- a/src/full-codegen/x87/full-codegen-x87.cc |
+++ b/src/full-codegen/x87/full-codegen-x87.cc |
@@ -797,16 +797,14 @@ void FullCodeGenerator::VisitVariableDeclaration( |
} else { |
__ push(Immediate(Smi::FromInt(0))); // Indicates no initial value. |
} |
- __ CallRuntime(IsImmutableVariableMode(mode) |
- ? Runtime::kDeclareReadOnlyLookupSlot |
- : Runtime::kDeclareLookupSlot, |
- 2); |
+ __ push( |
+ Immediate(Smi::FromInt(variable->DeclarationPropertyAttributes()))); |
+ __ CallRuntime(Runtime::kDeclareLookupSlot, 3); |
break; |
} |
} |
} |
- |
void FullCodeGenerator::VisitFunctionDeclaration( |
FunctionDeclaration* declaration) { |
VariableProxy* proxy = declaration->proxy(); |
@@ -848,7 +846,9 @@ void FullCodeGenerator::VisitFunctionDeclaration( |
Comment cmnt(masm_, "[ FunctionDeclaration"); |
__ push(Immediate(variable->name())); |
VisitForStackValue(declaration->fun()); |
- __ CallRuntime(Runtime::kDeclareLookupSlot, 2); |
+ __ push( |
+ Immediate(Smi::FromInt(variable->DeclarationPropertyAttributes()))); |
+ __ CallRuntime(Runtime::kDeclareLookupSlot, 3); |
break; |
} |
} |