Index: src/crankshaft/ia32/lithium-codegen-ia32.cc |
diff --git a/src/crankshaft/ia32/lithium-codegen-ia32.cc b/src/crankshaft/ia32/lithium-codegen-ia32.cc |
index c7e16c52d3770bca9021fd00f35276f6d967576d..00761c4857a6467208403bd16cb59253dc4fec50 100644 |
--- a/src/crankshaft/ia32/lithium-codegen-ia32.cc |
+++ b/src/crankshaft/ia32/lithium-codegen-ia32.cc |
@@ -2424,9 +2424,9 @@ void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { |
__ mov(LoadDescriptor::NameRegister(), instr->name()); |
EmitVectorLoadICRegisters<LLoadGlobalGeneric>(instr); |
- Handle<Code> ic = CodeFactory::LoadICInOptimizedCode( |
- isolate(), instr->typeof_mode(), PREMONOMORPHIC) |
- .code(); |
+ Handle<Code> ic = |
+ CodeFactory::LoadICInOptimizedCode(isolate(), instr->typeof_mode()) |
+ .code(); |
CallCode(ic, RelocInfo::CODE_TARGET, instr); |
} |
@@ -2541,10 +2541,8 @@ void LCodeGen::DoLoadNamedGeneric(LLoadNamedGeneric* instr) { |
__ mov(LoadDescriptor::NameRegister(), instr->name()); |
EmitVectorLoadICRegisters<LLoadNamedGeneric>(instr); |
- Handle<Code> ic = CodeFactory::LoadICInOptimizedCode( |
- isolate(), NOT_INSIDE_TYPEOF, |
- instr->hydrogen()->initialization_state()) |
- .code(); |
+ Handle<Code> ic = |
+ CodeFactory::LoadICInOptimizedCode(isolate(), NOT_INSIDE_TYPEOF).code(); |
CallCode(ic, RelocInfo::CODE_TARGET, instr); |
} |
@@ -2775,13 +2773,9 @@ void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { |
DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister())); |
DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister())); |
- if (instr->hydrogen()->HasVectorAndSlot()) { |
- EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr); |
- } |
+ EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr); |
- Handle<Code> ic = CodeFactory::KeyedLoadICInOptimizedCode( |
- isolate(), instr->hydrogen()->initialization_state()) |
- .code(); |
+ Handle<Code> ic = CodeFactory::KeyedLoadICInOptimizedCode(isolate()).code(); |
CallCode(ic, RelocInfo::CODE_TARGET, instr); |
} |
@@ -3695,14 +3689,12 @@ void LCodeGen::DoStoreNamedGeneric(LStoreNamedGeneric* instr) { |
DCHECK(ToRegister(instr->object()).is(StoreDescriptor::ReceiverRegister())); |
DCHECK(ToRegister(instr->value()).is(StoreDescriptor::ValueRegister())); |
- if (instr->hydrogen()->HasVectorAndSlot()) { |
- EmitVectorStoreICRegisters<LStoreNamedGeneric>(instr); |
- } |
+ EmitVectorStoreICRegisters<LStoreNamedGeneric>(instr); |
__ mov(StoreDescriptor::NameRegister(), instr->name()); |
- Handle<Code> ic = CodeFactory::StoreICInOptimizedCode( |
- isolate(), instr->language_mode(), |
- instr->hydrogen()->initialization_state()).code(); |
+ Handle<Code> ic = |
+ CodeFactory::StoreICInOptimizedCode(isolate(), instr->language_mode()) |
+ .code(); |
CallCode(ic, RelocInfo::CODE_TARGET, instr); |
} |
@@ -3872,13 +3864,11 @@ void LCodeGen::DoStoreKeyedGeneric(LStoreKeyedGeneric* instr) { |
DCHECK(ToRegister(instr->key()).is(StoreDescriptor::NameRegister())); |
DCHECK(ToRegister(instr->value()).is(StoreDescriptor::ValueRegister())); |
- if (instr->hydrogen()->HasVectorAndSlot()) { |
- EmitVectorStoreICRegisters<LStoreKeyedGeneric>(instr); |
- } |
+ EmitVectorStoreICRegisters<LStoreKeyedGeneric>(instr); |
Handle<Code> ic = CodeFactory::KeyedStoreICInOptimizedCode( |
- isolate(), instr->language_mode(), |
- instr->hydrogen()->initialization_state()).code(); |
+ isolate(), instr->language_mode()) |
+ .code(); |
CallCode(ic, RelocInfo::CODE_TARGET, instr); |
} |