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

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: Rebasing 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
« no previous file with comments | « src/ic/mips64/ic-mips64.cc ('k') | src/ic/ppc/handler-compiler-ppc.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 DCHECK(!extra2.is(no_reg)); 106 DCHECK(!extra2.is(no_reg));
107 DCHECK(!extra3.is(no_reg)); 107 DCHECK(!extra3.is(no_reg));
108 108
109 #ifdef DEBUG 109 #ifdef DEBUG
110 // If vector-based ics are in use, ensure that scratch, extra, extra2 and 110 // If vector-based ics are in use, ensure that scratch, extra, extra2 and
111 // extra3 don't conflict with the vector and slot registers, which need 111 // extra3 don't conflict with the vector and slot registers, which need
112 // to be preserved for a handler call or miss. 112 // to be preserved for a handler call or miss.
113 if (IC::ICUseVector(ic_kind_)) { 113 if (IC::ICUseVector(ic_kind_)) {
114 Register vector, slot; 114 Register vector, slot;
115 if (ic_kind_ == Code::STORE_IC || ic_kind_ == Code::KEYED_STORE_IC) { 115 if (ic_kind_ == Code::STORE_IC || ic_kind_ == Code::KEYED_STORE_IC) {
116 vector = VectorStoreICDescriptor::VectorRegister(); 116 vector = StoreWithVectorDescriptor::VectorRegister();
117 slot = VectorStoreICDescriptor::SlotRegister(); 117 slot = StoreWithVectorDescriptor::SlotRegister();
118 } else { 118 } else {
119 DCHECK(ic_kind_ == Code::LOAD_IC || ic_kind_ == Code::KEYED_LOAD_IC); 119 DCHECK(ic_kind_ == Code::LOAD_IC || ic_kind_ == Code::KEYED_LOAD_IC);
120 vector = LoadWithVectorDescriptor::VectorRegister(); 120 vector = LoadWithVectorDescriptor::VectorRegister();
121 slot = LoadWithVectorDescriptor::SlotRegister(); 121 slot = LoadWithVectorDescriptor::SlotRegister();
122 } 122 }
123 DCHECK(!AreAliased(vector, slot, scratch, extra, extra2, extra3)); 123 DCHECK(!AreAliased(vector, slot, scratch, extra, extra2, extra3));
124 } 124 }
125 #endif 125 #endif
126 126
127 Counters* counters = masm->isolate()->counters(); 127 Counters* counters = masm->isolate()->counters();
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 __ IncrementCounter(counters->megamorphic_stub_cache_misses(), 1, extra2, 161 __ IncrementCounter(counters->megamorphic_stub_cache_misses(), 1, extra2,
162 extra3); 162 extra3);
163 } 163 }
164 164
165 165
166 #undef __ 166 #undef __
167 } // namespace internal 167 } // namespace internal
168 } // namespace v8 168 } // namespace v8
169 169
170 #endif // V8_TARGET_ARCH_MIPS64 170 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/ic/mips64/ic-mips64.cc ('k') | src/ic/ppc/handler-compiler-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698