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

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

Issue 1145223003: PPC: Cleanup interface descriptors to reflect that vectors are part of loads. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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/ppc/ic-ppc.cc ('k') | src/ppc/code-stubs-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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_PPC 7 #if V8_TARGET_ARCH_PPC
8 8
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/ic/ic.h" 10 #include "src/ic/ic.h"
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 DCHECK(!scratch.is(no_reg)); 135 DCHECK(!scratch.is(no_reg));
136 DCHECK(!extra.is(no_reg)); 136 DCHECK(!extra.is(no_reg));
137 DCHECK(!extra2.is(no_reg)); 137 DCHECK(!extra2.is(no_reg));
138 DCHECK(!extra3.is(no_reg)); 138 DCHECK(!extra3.is(no_reg));
139 139
140 #ifdef DEBUG 140 #ifdef DEBUG
141 // If vector-based ics are in use, ensure that scratch, extra, extra2 and 141 // If vector-based ics are in use, ensure that scratch, extra, extra2 and
142 // extra3 don't conflict with the vector and slot registers, which need 142 // extra3 don't conflict with the vector and slot registers, which need
143 // to be preserved for a handler call or miss. 143 // to be preserved for a handler call or miss.
144 if (IC::ICUseVector(ic_kind)) { 144 if (IC::ICUseVector(ic_kind)) {
145 Register vector = VectorLoadICDescriptor::VectorRegister(); 145 Register vector = LoadWithVectorDescriptor::VectorRegister();
146 Register slot = VectorLoadICDescriptor::SlotRegister(); 146 Register slot = LoadWithVectorDescriptor::SlotRegister();
147 DCHECK(!AreAliased(vector, slot, scratch, extra, extra2, extra3)); 147 DCHECK(!AreAliased(vector, slot, scratch, extra, extra2, extra3));
148 } 148 }
149 #endif 149 #endif
150 150
151 Counters* counters = masm->isolate()->counters(); 151 Counters* counters = masm->isolate()->counters();
152 __ IncrementCounter(counters->megamorphic_stub_cache_probes(), 1, extra2, 152 __ IncrementCounter(counters->megamorphic_stub_cache_probes(), 1, extra2,
153 extra3); 153 extra3);
154 154
155 // Check that the receiver isn't a smi. 155 // Check that the receiver isn't a smi.
156 __ JumpIfSmi(receiver, &miss); 156 __ JumpIfSmi(receiver, &miss);
(...skipping 27 matching lines...) Expand all
184 __ IncrementCounter(counters->megamorphic_stub_cache_misses(), 1, extra2, 184 __ IncrementCounter(counters->megamorphic_stub_cache_misses(), 1, extra2,
185 extra3); 185 extra3);
186 } 186 }
187 187
188 188
189 #undef __ 189 #undef __
190 } 190 }
191 } // namespace v8::internal 191 } // namespace v8::internal
192 192
193 #endif // V8_TARGET_ARCH_PPC 193 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/ic/ppc/ic-ppc.cc ('k') | src/ppc/code-stubs-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698