Index: src/x87/lithium-codegen-x87.cc |
diff --git a/src/x87/lithium-codegen-x87.cc b/src/x87/lithium-codegen-x87.cc |
index 6021ec74e906fd2ea94d3316d5d19655a49be202..9c6798b136f8fa100f308df08eb2c6961353cf31 100644 |
--- a/src/x87/lithium-codegen-x87.cc |
+++ b/src/x87/lithium-codegen-x87.cc |
@@ -3129,9 +3129,9 @@ void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { |
__ mov(LoadDescriptor::NameRegister(), instr->name()); |
EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr); |
- ContextualMode mode = instr->for_typeof() ? NOT_CONTEXTUAL : CONTEXTUAL; |
- Handle<Code> ic = CodeFactory::LoadICInOptimizedCode(isolate(), mode, SLOPPY, |
- PREMONOMORPHIC).code(); |
+ Handle<Code> ic = |
+ CodeFactory::LoadICInOptimizedCode(isolate(), instr->typeof_mode(), |
+ SLOPPY, PREMONOMORPHIC).code(); |
CallCode(ic, RelocInfo::CODE_TARGET, instr); |
} |
@@ -3242,7 +3242,7 @@ void LCodeGen::DoLoadNamedGeneric(LLoadNamedGeneric* instr) { |
EmitVectorLoadICRegisters<LLoadNamedGeneric>(instr); |
Handle<Code> ic = |
CodeFactory::LoadICInOptimizedCode( |
- isolate(), NOT_CONTEXTUAL, instr->hydrogen()->language_mode(), |
+ isolate(), NOT_INSIDE_TYPEOF, instr->hydrogen()->language_mode(), |
instr->hydrogen()->initialization_state()).code(); |
CallCode(ic, RelocInfo::CODE_TARGET, instr); |
} |