Index: src/x64/lithium-codegen-x64.cc |
diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc |
index c799da2b66bf4233a45bb83e64fb776d51933e44..c65b1ddbf33f21e267e768cc2546c09f8f5e98ba 100644 |
--- a/src/x64/lithium-codegen-x64.cc |
+++ b/src/x64/lithium-codegen-x64.cc |
@@ -2877,9 +2877,9 @@ void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { |
__ Move(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); |
} |
@@ -2996,7 +2996,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); |
} |