Index: src/mips64/lithium-codegen-mips64.cc |
diff --git a/src/mips64/lithium-codegen-mips64.cc b/src/mips64/lithium-codegen-mips64.cc |
index c860606bbd40b62e43c1bed6b62646f0094cf873..f4d477497d4474cac135674c6e12eeb739521c04 100644 |
--- a/src/mips64/lithium-codegen-mips64.cc |
+++ b/src/mips64/lithium-codegen-mips64.cc |
@@ -2984,9 +2984,9 @@ void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { |
__ li(LoadDescriptor::NameRegister(), Operand(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); |
} |
@@ -3102,7 +3102,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); |
} |