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

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

Issue 1328603003: Vector ICs: platform support for vector-based stores. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: mips build fixes. Created 5 years, 3 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/mips/ic-mips.cc ('k') | src/ic/mips64/access-compiler-mips64.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_MIPS 5 #if V8_TARGET_ARCH_MIPS
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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 DCHECK(!scratch.is(no_reg)); 109 DCHECK(!scratch.is(no_reg));
110 DCHECK(!extra.is(no_reg)); 110 DCHECK(!extra.is(no_reg));
111 DCHECK(!extra2.is(no_reg)); 111 DCHECK(!extra2.is(no_reg));
112 DCHECK(!extra3.is(no_reg)); 112 DCHECK(!extra3.is(no_reg));
113 113
114 #ifdef DEBUG 114 #ifdef DEBUG
115 // If vector-based ics are in use, ensure that scratch, extra, extra2 and 115 // If vector-based ics are in use, ensure that scratch, extra, extra2 and
116 // extra3 don't conflict with the vector and slot registers, which need 116 // extra3 don't conflict with the vector and slot registers, which need
117 // to be preserved for a handler call or miss. 117 // to be preserved for a handler call or miss.
118 if (IC::ICUseVector(ic_kind)) { 118 if (IC::ICUseVector(ic_kind)) {
119 Register vector = LoadWithVectorDescriptor::VectorRegister(); 119 Register vector, slot;
120 Register slot = LoadWithVectorDescriptor::SlotRegister(); 120 if (ic_kind == Code::STORE_IC || ic_kind == Code::KEYED_STORE_IC) {
121 vector = VectorStoreICDescriptor::VectorRegister();
122 slot = VectorStoreICDescriptor::SlotRegister();
123 } else {
124 vector = LoadWithVectorDescriptor::VectorRegister();
125 slot = LoadWithVectorDescriptor::SlotRegister();
126 }
121 DCHECK(!AreAliased(vector, slot, scratch, extra, extra2, extra3)); 127 DCHECK(!AreAliased(vector, slot, scratch, extra, extra2, extra3));
122 } 128 }
123 #endif 129 #endif
124 130
125 Counters* counters = masm->isolate()->counters(); 131 Counters* counters = masm->isolate()->counters();
126 __ IncrementCounter(counters->megamorphic_stub_cache_probes(), 1, extra2, 132 __ IncrementCounter(counters->megamorphic_stub_cache_probes(), 1, extra2,
127 extra3); 133 extra3);
128 134
129 // Check that the receiver isn't a smi. 135 // Check that the receiver isn't a smi.
130 __ JumpIfSmi(receiver, &miss); 136 __ JumpIfSmi(receiver, &miss);
(...skipping 30 matching lines...) Expand all
161 __ IncrementCounter(counters->megamorphic_stub_cache_misses(), 1, extra2, 167 __ IncrementCounter(counters->megamorphic_stub_cache_misses(), 1, extra2,
162 extra3); 168 extra3);
163 } 169 }
164 170
165 171
166 #undef __ 172 #undef __
167 } // namespace internal 173 } // namespace internal
168 } // namespace v8 174 } // namespace v8
169 175
170 #endif // V8_TARGET_ARCH_MIPS 176 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ic/mips/ic-mips.cc ('k') | src/ic/mips64/access-compiler-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698