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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 DCHECK(!extra2.is(no_reg)); | 122 DCHECK(!extra2.is(no_reg)); |
123 DCHECK(!extra3.is(no_reg)); | 123 DCHECK(!extra3.is(no_reg)); |
124 | 124 |
125 #ifdef DEBUG | 125 #ifdef DEBUG |
126 // If vector-based ics are in use, ensure that scratch, extra, extra2 and | 126 // If vector-based ics are in use, ensure that scratch, extra, extra2 and |
127 // extra3 don't conflict with the vector and slot registers, which need | 127 // extra3 don't conflict with the vector and slot registers, which need |
128 // to be preserved for a handler call or miss. | 128 // to be preserved for a handler call or miss. |
129 if (IC::ICUseVector(ic_kind_)) { | 129 if (IC::ICUseVector(ic_kind_)) { |
130 Register vector, slot; | 130 Register vector, slot; |
131 if (ic_kind_ == Code::STORE_IC || ic_kind_ == Code::KEYED_STORE_IC) { | 131 if (ic_kind_ == Code::STORE_IC || ic_kind_ == Code::KEYED_STORE_IC) { |
132 vector = VectorStoreICDescriptor::VectorRegister(); | 132 vector = StoreWithVectorDescriptor::VectorRegister(); |
133 slot = VectorStoreICDescriptor::SlotRegister(); | 133 slot = StoreWithVectorDescriptor::SlotRegister(); |
134 } else { | 134 } else { |
135 DCHECK(ic_kind_ == Code::LOAD_IC || ic_kind_ == Code::KEYED_LOAD_IC); | 135 DCHECK(ic_kind_ == Code::LOAD_IC || ic_kind_ == Code::KEYED_LOAD_IC); |
136 vector = LoadWithVectorDescriptor::VectorRegister(); | 136 vector = LoadWithVectorDescriptor::VectorRegister(); |
137 slot = LoadWithVectorDescriptor::SlotRegister(); | 137 slot = LoadWithVectorDescriptor::SlotRegister(); |
138 } | 138 } |
139 DCHECK(!AreAliased(vector, slot, scratch, extra, extra2, extra3)); | 139 DCHECK(!AreAliased(vector, slot, scratch, extra, extra2, extra3)); |
140 } | 140 } |
141 #endif | 141 #endif |
142 | 142 |
143 Counters* counters = masm->isolate()->counters(); | 143 Counters* counters = masm->isolate()->counters(); |
(...skipping 29 matching lines...) Expand all Loading... |
173 __ bind(&miss); | 173 __ bind(&miss); |
174 __ IncrementCounter(counters->megamorphic_stub_cache_misses(), 1, extra2, | 174 __ IncrementCounter(counters->megamorphic_stub_cache_misses(), 1, extra2, |
175 extra3); | 175 extra3); |
176 } | 176 } |
177 | 177 |
178 #undef __ | 178 #undef __ |
179 } // namespace internal | 179 } // namespace internal |
180 } // namespace v8 | 180 } // namespace v8 |
181 | 181 |
182 #endif // V8_TARGET_ARCH_S390 | 182 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |