Index: src/ia32/full-codegen-ia32.cc |
diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc |
index feb84e32753e1b15091ba9f98243225a736df888..870a4b66a5188e9f0b8ff0bb097e1c9b3147541a 100644 |
--- a/src/ia32/full-codegen-ia32.cc |
+++ b/src/ia32/full-codegen-ia32.cc |
@@ -2013,8 +2013,10 @@ void FullCodeGenerator::EmitVariableAssignment(Variable* var, |
// ecx, and the global object on the stack. |
__ mov(ecx, var->name()); |
__ mov(edx, GlobalObjectOperand()); |
- Handle<Code> ic(Builtins::builtin(Builtins::StoreIC_Initialize)); |
- EmitCallIC(ic, RelocInfo::CODE_TARGET); |
+ Handle<Code> ic(Builtins::builtin( |
+ is_strict() ? Builtins::StoreIC_Initialize_Strict |
+ : Builtins::StoreIC_Initialize)); |
+ EmitCallIC(ic, RelocInfo::CODE_TARGET_CONTEXT); |
} else if (op == Token::INIT_CONST) { |
// Like var declarations, const declarations are hoisted to function |