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 250b476eafd65af101291b8c5d61fb0d87b38d31..194267de35f274e950d46ce1e7fe0892fc3388e2 100644 |
--- a/src/full-codegen/ia32/full-codegen-ia32.cc |
+++ b/src/full-codegen/ia32/full-codegen-ia32.cc |
@@ -796,10 +796,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; |
} |
} |
@@ -851,7 +850,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; |
} |
} |