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

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

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

Powered by Google App Engine
This is Rietveld 408576698