Index: src/mips/full-codegen-mips.cc |
diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc |
index ceffb40dd50dc029a27a96a06c9e3fe145f20b95..061cfcfa20330f3e272a0513294fcfe80274197b 100644 |
--- a/src/mips/full-codegen-mips.cc |
+++ b/src/mips/full-codegen-mips.cc |
@@ -1321,13 +1321,9 @@ void FullCodeGenerator::EmitLoadHomeObject(SuperReference* expr) { |
Handle<Symbol> home_object_symbol(isolate()->heap()->home_object_symbol()); |
__ li(LoadDescriptor::NameRegister(), home_object_symbol); |
- if (FLAG_vector_ics) { |
- __ li(VectorLoadICDescriptor::SlotRegister(), |
- Operand(SmiFromSlot(expr->HomeObjectFeedbackSlot()))); |
- CallLoadIC(NOT_CONTEXTUAL); |
- } else { |
- CallLoadIC(NOT_CONTEXTUAL, expr->HomeObjectFeedbackId()); |
- } |
+ __ li(VectorLoadICDescriptor::SlotRegister(), |
+ Operand(SmiFromSlot(expr->HomeObjectFeedbackSlot()))); |
+ CallLoadIC(NOT_CONTEXTUAL); |
Label done; |
__ Branch(&done, ne, v0, Operand(isolate()->factory()->undefined_value())); |
@@ -1396,10 +1392,8 @@ void FullCodeGenerator::EmitLoadGlobalCheckExtensions(VariableProxy* proxy, |
__ lw(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand()); |
__ li(LoadDescriptor::NameRegister(), Operand(proxy->var()->name())); |
- if (FLAG_vector_ics) { |
- __ li(VectorLoadICDescriptor::SlotRegister(), |
- Operand(SmiFromSlot(proxy->VariableFeedbackSlot()))); |
- } |
+ __ li(VectorLoadICDescriptor::SlotRegister(), |
+ Operand(SmiFromSlot(proxy->VariableFeedbackSlot()))); |
ContextualMode mode = (typeof_state == INSIDE_TYPEOF) |
? NOT_CONTEXTUAL |
@@ -1486,10 +1480,8 @@ void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy) { |
Comment cmnt(masm_, "[ Global variable"); |
__ lw(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand()); |
__ li(LoadDescriptor::NameRegister(), Operand(var->name())); |
- if (FLAG_vector_ics) { |
- __ li(VectorLoadICDescriptor::SlotRegister(), |
- Operand(SmiFromSlot(proxy->VariableFeedbackSlot()))); |
- } |
+ __ li(VectorLoadICDescriptor::SlotRegister(), |
+ Operand(SmiFromSlot(proxy->VariableFeedbackSlot()))); |
CallGlobalLoadIC(var->name()); |
context()->Plug(v0); |
break; |
@@ -2186,10 +2178,8 @@ void FullCodeGenerator::VisitYield(Yield* expr) { |
__ bind(&l_call); |
__ lw(load_receiver, MemOperand(sp, kPointerSize)); |
__ lw(load_name, MemOperand(sp, 2 * kPointerSize)); |
- if (FLAG_vector_ics) { |
- __ li(VectorLoadICDescriptor::SlotRegister(), |
- Operand(SmiFromSlot(expr->KeyedLoadFeedbackSlot()))); |
- } |
+ __ li(VectorLoadICDescriptor::SlotRegister(), |
+ Operand(SmiFromSlot(expr->KeyedLoadFeedbackSlot()))); |
Handle<Code> ic = CodeFactory::KeyedLoadIC(isolate()).code(); |
CallIC(ic, TypeFeedbackId::None()); |
__ mov(a0, v0); |
@@ -2206,10 +2196,8 @@ void FullCodeGenerator::VisitYield(Yield* expr) { |
__ push(load_receiver); // save result |
__ LoadRoot(load_name, Heap::kdone_stringRootIndex); // "done" |
- if (FLAG_vector_ics) { |
- __ li(VectorLoadICDescriptor::SlotRegister(), |
- Operand(SmiFromSlot(expr->DoneFeedbackSlot()))); |
- } |
+ __ li(VectorLoadICDescriptor::SlotRegister(), |
+ Operand(SmiFromSlot(expr->DoneFeedbackSlot()))); |
CallLoadIC(NOT_CONTEXTUAL); // v0=result.done |
__ mov(a0, v0); |
Handle<Code> bool_ic = ToBooleanStub::GetUninitialized(isolate()); |
@@ -2219,10 +2207,8 @@ void FullCodeGenerator::VisitYield(Yield* expr) { |
// result.value |
__ pop(load_receiver); // result |
__ LoadRoot(load_name, Heap::kvalue_stringRootIndex); // "value" |
- if (FLAG_vector_ics) { |
- __ li(VectorLoadICDescriptor::SlotRegister(), |
- Operand(SmiFromSlot(expr->ValueFeedbackSlot()))); |
- } |
+ __ li(VectorLoadICDescriptor::SlotRegister(), |
+ Operand(SmiFromSlot(expr->ValueFeedbackSlot()))); |
CallLoadIC(NOT_CONTEXTUAL); // v0=result.value |
context()->DropAndPlug(2, v0); // drop iter and g |
break; |
@@ -2363,13 +2349,9 @@ void FullCodeGenerator::EmitNamedPropertyLoad(Property* prop) { |
DCHECK(!prop->IsSuperAccess()); |
__ li(LoadDescriptor::NameRegister(), Operand(key->value())); |
- if (FLAG_vector_ics) { |
- __ li(VectorLoadICDescriptor::SlotRegister(), |
- Operand(SmiFromSlot(prop->PropertyFeedbackSlot()))); |
- CallLoadIC(NOT_CONTEXTUAL); |
- } else { |
- CallLoadIC(NOT_CONTEXTUAL, prop->PropertyFeedbackId()); |
- } |
+ __ li(VectorLoadICDescriptor::SlotRegister(), |
+ Operand(SmiFromSlot(prop->PropertyFeedbackSlot()))); |
+ CallLoadIC(NOT_CONTEXTUAL); |
} |
@@ -2388,13 +2370,9 @@ void FullCodeGenerator::EmitNamedSuperPropertyLoad(Property* prop) { |
void FullCodeGenerator::EmitKeyedPropertyLoad(Property* prop) { |
SetSourcePosition(prop->position()); |
Handle<Code> ic = CodeFactory::KeyedLoadIC(isolate()).code(); |
- if (FLAG_vector_ics) { |
- __ li(VectorLoadICDescriptor::SlotRegister(), |
- Operand(SmiFromSlot(prop->PropertyFeedbackSlot()))); |
- CallIC(ic); |
- } else { |
- CallIC(ic, prop->PropertyFeedbackId()); |
- } |
+ __ li(VectorLoadICDescriptor::SlotRegister(), |
+ Operand(SmiFromSlot(prop->PropertyFeedbackSlot()))); |
+ CallIC(ic); |
} |
@@ -4634,13 +4612,9 @@ void FullCodeGenerator::EmitLoadJSRuntimeFunction(CallRuntime* expr) { |
// Load the function from the receiver. |
__ li(LoadDescriptor::NameRegister(), Operand(expr->name())); |
- if (FLAG_vector_ics) { |
- __ li(VectorLoadICDescriptor::SlotRegister(), |
- Operand(SmiFromSlot(expr->CallRuntimeFeedbackSlot()))); |
- CallLoadIC(NOT_CONTEXTUAL); |
- } else { |
- CallLoadIC(NOT_CONTEXTUAL, expr->CallRuntimeFeedbackId()); |
- } |
+ __ li(VectorLoadICDescriptor::SlotRegister(), |
+ Operand(SmiFromSlot(expr->CallRuntimeFeedbackSlot()))); |
+ CallLoadIC(NOT_CONTEXTUAL); |
} |
@@ -5075,10 +5049,8 @@ void FullCodeGenerator::VisitForTypeofValue(Expression* expr) { |
Comment cmnt(masm_, "[ Global variable"); |
__ lw(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand()); |
__ li(LoadDescriptor::NameRegister(), Operand(proxy->name())); |
- if (FLAG_vector_ics) { |
- __ li(VectorLoadICDescriptor::SlotRegister(), |
- Operand(SmiFromSlot(proxy->VariableFeedbackSlot()))); |
- } |
+ __ li(VectorLoadICDescriptor::SlotRegister(), |
+ Operand(SmiFromSlot(proxy->VariableFeedbackSlot()))); |
// Use a regular load, not a contextual load, to avoid a reference |
// error. |
CallLoadIC(NOT_CONTEXTUAL); |