Index: src/ic/mips/ic-mips.cc |
diff --git a/src/ic/mips/ic-mips.cc b/src/ic/mips/ic-mips.cc |
index 9dfd9f2e9f31eb1a5f38434b91610190a583268e..7c8a5eacabfd37a003d041945eeaa8dc6880bc83 100644 |
--- a/src/ic/mips/ic-mips.cc |
+++ b/src/ic/mips/ic-mips.cc |
@@ -290,7 +290,10 @@ void LoadIC::GenerateMiss(MacroAssembler* masm) { |
// The return address is in ra. |
Isolate* isolate = masm->isolate(); |
- __ IncrementCounter(isolate->counters()->keyed_load_miss(), 1, a3, t0); |
+ DCHECK(!FLAG_vector_ics || |
+ !AreAliased(t0, t1, VectorLoadICDescriptor::SlotRegister(), |
+ VectorLoadICDescriptor::VectorRegister())); |
+ __ IncrementCounter(isolate->counters()->load_miss(), 1, t0, t1); |
LoadIC_PushArgs(masm); |
@@ -426,7 +429,10 @@ void KeyedLoadIC::GenerateMiss(MacroAssembler* masm) { |
// The return address is in ra. |
Isolate* isolate = masm->isolate(); |
- __ IncrementCounter(isolate->counters()->keyed_load_miss(), 1, a3, t0); |
+ DCHECK(!FLAG_vector_ics || |
+ !AreAliased(t0, t1, VectorLoadICDescriptor::SlotRegister(), |
+ VectorLoadICDescriptor::VectorRegister())); |
+ __ IncrementCounter(isolate->counters()->keyed_load_miss(), 1, t0, t1); |
LoadIC_PushArgs(masm); |
@@ -816,8 +822,8 @@ void KeyedStoreIC::GenerateMegamorphic(MacroAssembler* masm, |
__ JumpIfNotUniqueNameInstanceType(t0, &slow); |
Code::Flags flags = Code::RemoveTypeAndHolderFromFlags( |
Code::ComputeHandlerFlags(Code::STORE_IC)); |
- masm->isolate()->stub_cache()->GenerateProbe(masm, flags, false, receiver, |
- key, a3, t0, t1, t2); |
+ masm->isolate()->stub_cache()->GenerateProbe( |
+ masm, Code::STORE_IC, flags, false, receiver, key, a3, t0, t1, t2); |
// Cache miss. |
__ Branch(&miss); |
@@ -886,8 +892,8 @@ void StoreIC::GenerateMegamorphic(MacroAssembler* masm) { |
// Get the receiver from the stack and probe the stub cache. |
Code::Flags flags = Code::RemoveTypeAndHolderFromFlags( |
Code::ComputeHandlerFlags(Code::STORE_IC)); |
- masm->isolate()->stub_cache()->GenerateProbe(masm, flags, false, receiver, |
- name, a3, t0, t1, t2); |
+ masm->isolate()->stub_cache()->GenerateProbe( |
+ masm, Code::STORE_IC, flags, false, receiver, name, a3, t0, t1, t2); |
// Cache miss: Jump to runtime. |
GenerateMiss(masm); |