OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_S390 | 5 #if V8_TARGET_ARCH_S390 |
6 | 6 |
7 #include "src/ic/stub-cache.h" | 7 #include "src/ic/stub-cache.h" |
8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
9 #include "src/ic/ic.h" | 9 #include "src/ic/ic.h" |
10 #include "src/interface-descriptors.h" | 10 #include "src/interface-descriptors.h" |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 DCHECK(!extra2.is(no_reg)); | 124 DCHECK(!extra2.is(no_reg)); |
125 DCHECK(!extra3.is(no_reg)); | 125 DCHECK(!extra3.is(no_reg)); |
126 | 126 |
127 #ifdef DEBUG | 127 #ifdef DEBUG |
128 // If vector-based ics are in use, ensure that scratch, extra, extra2 and | 128 // If vector-based ics are in use, ensure that scratch, extra, extra2 and |
129 // extra3 don't conflict with the vector and slot registers, which need | 129 // extra3 don't conflict with the vector and slot registers, which need |
130 // to be preserved for a handler call or miss. | 130 // to be preserved for a handler call or miss. |
131 if (IC::ICUseVector(ic_kind_)) { | 131 if (IC::ICUseVector(ic_kind_)) { |
132 Register vector, slot; | 132 Register vector, slot; |
133 if (ic_kind_ == Code::STORE_IC || ic_kind_ == Code::KEYED_STORE_IC) { | 133 if (ic_kind_ == Code::STORE_IC || ic_kind_ == Code::KEYED_STORE_IC) { |
134 vector = VectorStoreICDescriptor::VectorRegister(); | 134 vector = StoreWithVectorDescriptor::VectorRegister(); |
135 slot = VectorStoreICDescriptor::SlotRegister(); | 135 slot = StoreWithVectorDescriptor::SlotRegister(); |
136 } else { | 136 } else { |
137 DCHECK(ic_kind_ == Code::LOAD_IC || ic_kind_ == Code::KEYED_LOAD_IC); | 137 DCHECK(ic_kind_ == Code::LOAD_IC || ic_kind_ == Code::KEYED_LOAD_IC); |
138 vector = LoadWithVectorDescriptor::VectorRegister(); | 138 vector = LoadWithVectorDescriptor::VectorRegister(); |
139 slot = LoadWithVectorDescriptor::SlotRegister(); | 139 slot = LoadWithVectorDescriptor::SlotRegister(); |
140 } | 140 } |
141 DCHECK(!AreAliased(vector, slot, scratch, extra, extra2, extra3)); | 141 DCHECK(!AreAliased(vector, slot, scratch, extra, extra2, extra3)); |
142 } | 142 } |
143 #endif | 143 #endif |
144 | 144 |
145 Counters* counters = masm->isolate()->counters(); | 145 Counters* counters = masm->isolate()->counters(); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 __ bind(&miss); | 177 __ bind(&miss); |
178 __ IncrementCounter(counters->megamorphic_stub_cache_misses(), 1, extra2, | 178 __ IncrementCounter(counters->megamorphic_stub_cache_misses(), 1, extra2, |
179 extra3); | 179 extra3); |
180 } | 180 } |
181 | 181 |
182 #undef __ | 182 #undef __ |
183 } // namespace internal | 183 } // namespace internal |
184 } // namespace v8 | 184 } // namespace v8 |
185 | 185 |
186 #endif // V8_TARGET_ARCH_S390 | 186 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |