Index: src/full-codegen/ia32/full-codegen-ia32.cc |
diff --git a/src/full-codegen/ia32/full-codegen-ia32.cc b/src/full-codegen/ia32/full-codegen-ia32.cc |
index cce73579623257e0d6e234db16162ff9c591e9f1..e7f7d65f1f066b38e5424662f7f7cd74ba527db2 100644 |
--- a/src/full-codegen/ia32/full-codegen-ia32.cc |
+++ b/src/full-codegen/ia32/full-codegen-ia32.cc |
@@ -800,10 +800,9 @@ 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; |
} |
} |
@@ -855,7 +854,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; |
} |
} |