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

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

Issue 1144063002: Cleanup interface descriptors to reflect that vectors are part of loads. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixes for test failures. 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/mips64/ic-mips64.cc ('k') | src/ic/x64/ic-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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 DCHECK(!scratch.is(no_reg)); 115 DCHECK(!scratch.is(no_reg));
116 DCHECK(!extra.is(no_reg)); 116 DCHECK(!extra.is(no_reg));
117 DCHECK(!extra2.is(no_reg)); 117 DCHECK(!extra2.is(no_reg));
118 DCHECK(!extra3.is(no_reg)); 118 DCHECK(!extra3.is(no_reg));
119 119
120 #ifdef DEBUG 120 #ifdef DEBUG
121 // If vector-based ics are in use, ensure that scratch, extra, extra2 and 121 // If vector-based ics are in use, ensure that scratch, extra, extra2 and
122 // extra3 don't conflict with the vector and slot registers, which need 122 // extra3 don't conflict with the vector and slot registers, which need
123 // to be preserved for a handler call or miss. 123 // to be preserved for a handler call or miss.
124 if (IC::ICUseVector(ic_kind)) { 124 if (IC::ICUseVector(ic_kind)) {
125 Register vector = VectorLoadICDescriptor::VectorRegister(); 125 Register vector = LoadWithVectorDescriptor::VectorRegister();
126 Register slot = VectorLoadICDescriptor::SlotRegister(); 126 Register slot = LoadWithVectorDescriptor::SlotRegister();
127 DCHECK(!AreAliased(vector, slot, scratch, extra, extra2, extra3)); 127 DCHECK(!AreAliased(vector, slot, scratch, extra, extra2, extra3));
128 } 128 }
129 #endif 129 #endif
130 130
131 Counters* counters = masm->isolate()->counters(); 131 Counters* counters = masm->isolate()->counters();
132 __ IncrementCounter(counters->megamorphic_stub_cache_probes(), 1, extra2, 132 __ IncrementCounter(counters->megamorphic_stub_cache_probes(), 1, extra2,
133 extra3); 133 extra3);
134 134
135 // Check that the receiver isn't a smi. 135 // Check that the receiver isn't a smi.
136 __ JumpIfSmi(receiver, &miss); 136 __ JumpIfSmi(receiver, &miss);
(...skipping 30 matching lines...) Expand all
167 __ IncrementCounter(counters->megamorphic_stub_cache_misses(), 1, extra2, 167 __ IncrementCounter(counters->megamorphic_stub_cache_misses(), 1, extra2,
168 extra3); 168 extra3);
169 } 169 }
170 170
171 171
172 #undef __ 172 #undef __
173 } 173 }
174 } // namespace v8::internal 174 } // namespace v8::internal
175 175
176 #endif // V8_TARGET_ARCH_MIPS64 176 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/ic/mips64/ic-mips64.cc ('k') | src/ic/x64/ic-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698