Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(312)

Side by Side Diff: src/ic/mips64/stub-cache-mips64.cc

Issue 2147043002: Cleanup interface descriptors to reflect that vectors are part of stores. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@rename-store-ic
Patch Set: fix Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #if V8_TARGET_ARCH_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 #include "src/codegen.h" 7 #include "src/codegen.h"
8 #include "src/ic/ic.h" 8 #include "src/ic/ic.h"
9 #include "src/ic/stub-cache.h" 9 #include "src/ic/stub-cache.h"
10 #include "src/interface-descriptors.h" 10 #include "src/interface-descriptors.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 DCHECK(!extra2.is(no_reg)); 108 DCHECK(!extra2.is(no_reg));
109 DCHECK(!extra3.is(no_reg)); 109 DCHECK(!extra3.is(no_reg));
110 110
111 #ifdef DEBUG 111 #ifdef DEBUG
112 // If vector-based ics are in use, ensure that scratch, extra, extra2 and 112 // If vector-based ics are in use, ensure that scratch, extra, extra2 and
113 // extra3 don't conflict with the vector and slot registers, which need 113 // extra3 don't conflict with the vector and slot registers, which need
114 // to be preserved for a handler call or miss. 114 // to be preserved for a handler call or miss.
115 if (IC::ICUseVector(ic_kind_)) { 115 if (IC::ICUseVector(ic_kind_)) {
116 Register vector, slot; 116 Register vector, slot;
117 if (ic_kind_ == Code::STORE_IC || ic_kind_ == Code::KEYED_STORE_IC) { 117 if (ic_kind_ == Code::STORE_IC || ic_kind_ == Code::KEYED_STORE_IC) {
118 vector = VectorStoreICDescriptor::VectorRegister(); 118 vector = StoreWithVectorDescriptor::VectorRegister();
119 slot = VectorStoreICDescriptor::SlotRegister(); 119 slot = StoreWithVectorDescriptor::SlotRegister();
120 } else { 120 } else {
121 DCHECK(ic_kind_ == Code::LOAD_IC || ic_kind_ == Code::KEYED_LOAD_IC); 121 DCHECK(ic_kind_ == Code::LOAD_IC || ic_kind_ == Code::KEYED_LOAD_IC);
122 vector = LoadWithVectorDescriptor::VectorRegister(); 122 vector = LoadWithVectorDescriptor::VectorRegister();
123 slot = LoadWithVectorDescriptor::SlotRegister(); 123 slot = LoadWithVectorDescriptor::SlotRegister();
124 } 124 }
125 DCHECK(!AreAliased(vector, slot, scratch, extra, extra2, extra3)); 125 DCHECK(!AreAliased(vector, slot, scratch, extra, extra2, extra3));
126 } 126 }
127 #endif 127 #endif
128 128
129 Counters* counters = masm->isolate()->counters(); 129 Counters* counters = masm->isolate()->counters();
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 __ IncrementCounter(counters->megamorphic_stub_cache_misses(), 1, extra2, 165 __ IncrementCounter(counters->megamorphic_stub_cache_misses(), 1, extra2,
166 extra3); 166 extra3);
167 } 167 }
168 168
169 169
170 #undef __ 170 #undef __
171 } // namespace internal 171 } // namespace internal
172 } // namespace v8 172 } // namespace v8
173 173
174 #endif // V8_TARGET_ARCH_MIPS64 174 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698