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

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

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

Powered by Google App Engine
This is Rietveld 408576698