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

Side by Side Diff: src/ic/x64/stub-cache-x64.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/x64/ic-x64.cc ('k') | src/mips/code-stubs-mips.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_X64 5 #if V8_TARGET_ARCH_X64
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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // Check scratch register is valid, extra and extra2 are unused. 103 // Check scratch register is valid, extra and extra2 are unused.
104 DCHECK(!scratch.is(no_reg)); 104 DCHECK(!scratch.is(no_reg));
105 DCHECK(extra2.is(no_reg)); 105 DCHECK(extra2.is(no_reg));
106 DCHECK(extra3.is(no_reg)); 106 DCHECK(extra3.is(no_reg));
107 107
108 #ifdef DEBUG 108 #ifdef DEBUG
109 // If vector-based ics are in use, ensure that scratch doesn't conflict with 109 // If vector-based ics are in use, ensure that scratch doesn't conflict with
110 // the vector and slot registers, which need to be preserved for a handler 110 // the vector and slot registers, which need to be preserved for a handler
111 // call or miss. 111 // call or miss.
112 if (IC::ICUseVector(ic_kind)) { 112 if (IC::ICUseVector(ic_kind)) {
113 Register vector = LoadWithVectorDescriptor::VectorRegister(); 113 if (ic_kind == Code::LOAD_IC || ic_kind == Code::KEYED_LOAD_IC) {
114 Register slot = LoadDescriptor::SlotRegister(); 114 Register vector = LoadWithVectorDescriptor::VectorRegister();
115 DCHECK(!AreAliased(vector, slot, scratch)); 115 Register slot = LoadDescriptor::SlotRegister();
116 DCHECK(!AreAliased(vector, slot, scratch));
117 } else {
118 DCHECK(ic_kind == Code::STORE_IC || ic_kind == Code::KEYED_STORE_IC);
119 Register vector = VectorStoreICDescriptor::VectorRegister();
120 Register slot = VectorStoreICDescriptor::SlotRegister();
121 DCHECK(!AreAliased(vector, slot, scratch));
122 }
116 } 123 }
117 #endif 124 #endif
118 125
119 Counters* counters = masm->isolate()->counters(); 126 Counters* counters = masm->isolate()->counters();
120 __ IncrementCounter(counters->megamorphic_stub_cache_probes(), 1); 127 __ IncrementCounter(counters->megamorphic_stub_cache_probes(), 1);
121 128
122 // Check that the receiver isn't a smi. 129 // Check that the receiver isn't a smi.
123 __ JumpIfSmi(receiver, &miss); 130 __ JumpIfSmi(receiver, &miss);
124 131
125 // Get the map of the receiver and compute the hash. 132 // Get the map of the receiver and compute the hash.
(...skipping 26 matching lines...) Expand all
152 __ bind(&miss); 159 __ bind(&miss);
153 __ IncrementCounter(counters->megamorphic_stub_cache_misses(), 1); 160 __ IncrementCounter(counters->megamorphic_stub_cache_misses(), 1);
154 } 161 }
155 162
156 163
157 #undef __ 164 #undef __
158 } // namespace internal 165 } // namespace internal
159 } // namespace v8 166 } // namespace v8
160 167
161 #endif // V8_TARGET_ARCH_X64 168 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/ic/x64/ic-x64.cc ('k') | src/mips/code-stubs-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698