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

Side by Side Diff: src/ic/arm64/stub-cache-arm64.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/arm64/ic-compiler-arm64.cc ('k') | src/ic/ia32/access-compiler-ia32.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64 5 #if V8_TARGET_ARCH_ARM64
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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // Make sure extra and extra2 registers are valid. 104 // Make sure extra and extra2 registers are valid.
105 DCHECK(!extra.is(no_reg)); 105 DCHECK(!extra.is(no_reg));
106 DCHECK(!extra2.is(no_reg)); 106 DCHECK(!extra2.is(no_reg));
107 DCHECK(!extra3.is(no_reg)); 107 DCHECK(!extra3.is(no_reg));
108 108
109 #ifdef DEBUG 109 #ifdef DEBUG
110 // If vector-based ics are in use, ensure that scratch, extra, extra2 and 110 // If vector-based ics are in use, ensure that scratch, extra, extra2 and
111 // extra3 don't conflict with the vector and slot registers, which need 111 // extra3 don't conflict with the vector and slot registers, which need
112 // to be preserved for a handler call or miss. 112 // to be preserved for a handler call or miss.
113 if (IC::ICUseVector(ic_kind)) { 113 if (IC::ICUseVector(ic_kind)) {
114 Register vector = LoadWithVectorDescriptor::VectorRegister(); 114 Register vector, slot;
115 Register slot = LoadWithVectorDescriptor::SlotRegister(); 115 if (ic_kind == Code::STORE_IC || ic_kind == Code::KEYED_STORE_IC) {
116 vector = VectorStoreICDescriptor::VectorRegister();
117 slot = VectorStoreICDescriptor::SlotRegister();
118 } else {
119 vector = LoadWithVectorDescriptor::VectorRegister();
120 slot = LoadWithVectorDescriptor::SlotRegister();
121 }
116 DCHECK(!AreAliased(vector, slot, scratch, extra, extra2, extra3)); 122 DCHECK(!AreAliased(vector, slot, scratch, extra, extra2, extra3));
117 } 123 }
118 #endif 124 #endif
119 125
120 Counters* counters = masm->isolate()->counters(); 126 Counters* counters = masm->isolate()->counters();
121 __ IncrementCounter(counters->megamorphic_stub_cache_probes(), 1, extra2, 127 __ IncrementCounter(counters->megamorphic_stub_cache_probes(), 1, extra2,
122 extra3); 128 extra3);
123 129
124 // Check that the receiver isn't a smi. 130 // Check that the receiver isn't a smi.
125 __ JumpIfSmi(receiver, &miss); 131 __ JumpIfSmi(receiver, &miss);
(...skipping 23 matching lines...) Expand all
149 // Cache miss: Fall-through and let caller handle the miss by 155 // Cache miss: Fall-through and let caller handle the miss by
150 // entering the runtime system. 156 // entering the runtime system.
151 __ Bind(&miss); 157 __ Bind(&miss);
152 __ IncrementCounter(counters->megamorphic_stub_cache_misses(), 1, extra2, 158 __ IncrementCounter(counters->megamorphic_stub_cache_misses(), 1, extra2,
153 extra3); 159 extra3);
154 } 160 }
155 } // namespace internal 161 } // namespace internal
156 } // namespace v8 162 } // namespace v8
157 163
158 #endif // V8_TARGET_ARCH_ARM64 164 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/ic/arm64/ic-compiler-arm64.cc ('k') | src/ic/ia32/access-compiler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698