Index: src/arm64/lithium-codegen-arm64.cc |
diff --git a/src/arm64/lithium-codegen-arm64.cc b/src/arm64/lithium-codegen-arm64.cc |
index ed6a10583b7bb052f7abec99d72348f5b55f8400..a95ae9ef116fa1ca3de44bbfb7f201efb7782bdf 100644 |
--- a/src/arm64/lithium-codegen-arm64.cc |
+++ b/src/arm64/lithium-codegen-arm64.cc |
@@ -3442,7 +3442,8 @@ void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { |
EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr); |
} |
ContextualMode mode = instr->for_typeof() ? NOT_CONTEXTUAL : CONTEXTUAL; |
- Handle<Code> ic = CodeFactory::LoadICInOptimizedCode(isolate(), mode).code(); |
+ Handle<Code> ic = CodeFactory::LoadICInOptimizedCode(isolate(), mode, |
+ PREMONOMORPHIC).code(); |
CallCode(ic, RelocInfo::CODE_TARGET, instr); |
} |
@@ -3751,8 +3752,9 @@ void LCodeGen::DoLoadNamedGeneric(LLoadNamedGeneric* instr) { |
EmitVectorLoadICRegisters<LLoadNamedGeneric>(instr); |
} |
- Handle<Code> ic = |
- CodeFactory::LoadICInOptimizedCode(isolate(), NOT_CONTEXTUAL).code(); |
+ Handle<Code> ic = CodeFactory::LoadICInOptimizedCode( |
+ isolate(), NOT_CONTEXTUAL, |
+ instr->hydrogen()->initialization_state()).code(); |
CallCode(ic, RelocInfo::CODE_TARGET, instr); |
DCHECK(ToRegister(instr->result()).is(x0)); |
@@ -5493,7 +5495,9 @@ void LCodeGen::DoStoreNamedGeneric(LStoreNamedGeneric* instr) { |
DCHECK(ToRegister(instr->value()).is(StoreDescriptor::ValueRegister())); |
__ Mov(StoreDescriptor::NameRegister(), Operand(instr->name())); |
- Handle<Code> ic = StoreIC::initialize_stub(isolate(), instr->language_mode()); |
+ Handle<Code> ic = |
+ StoreIC::initialize_stub(isolate(), instr->language_mode(), |
+ instr->hydrogen()->initialization_state()); |
CallCode(ic, RelocInfo::CODE_TARGET, instr); |
} |