| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC | 5 #if V8_TARGET_ARCH_PPC |
| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 DCHECK(!extra2.is(no_reg)); | 126 DCHECK(!extra2.is(no_reg)); |
| 127 DCHECK(!extra3.is(no_reg)); | 127 DCHECK(!extra3.is(no_reg)); |
| 128 | 128 |
| 129 #ifdef DEBUG | 129 #ifdef DEBUG |
| 130 // If vector-based ics are in use, ensure that scratch, extra, extra2 and | 130 // If vector-based ics are in use, ensure that scratch, extra, extra2 and |
| 131 // extra3 don't conflict with the vector and slot registers, which need | 131 // extra3 don't conflict with the vector and slot registers, which need |
| 132 // to be preserved for a handler call or miss. | 132 // to be preserved for a handler call or miss. |
| 133 if (IC::ICUseVector(ic_kind_)) { | 133 if (IC::ICUseVector(ic_kind_)) { |
| 134 Register vector, slot; | 134 Register vector, slot; |
| 135 if (ic_kind_ == Code::STORE_IC || ic_kind_ == Code::KEYED_STORE_IC) { | 135 if (ic_kind_ == Code::STORE_IC || ic_kind_ == Code::KEYED_STORE_IC) { |
| 136 vector = VectorStoreICDescriptor::VectorRegister(); | 136 vector = StoreWithVectorDescriptor::VectorRegister(); |
| 137 slot = VectorStoreICDescriptor::SlotRegister(); | 137 slot = StoreWithVectorDescriptor::SlotRegister(); |
| 138 } else { | 138 } else { |
| 139 DCHECK(ic_kind_ == Code::LOAD_IC || ic_kind_ == Code::KEYED_LOAD_IC); | 139 DCHECK(ic_kind_ == Code::LOAD_IC || ic_kind_ == Code::KEYED_LOAD_IC); |
| 140 vector = LoadWithVectorDescriptor::VectorRegister(); | 140 vector = LoadWithVectorDescriptor::VectorRegister(); |
| 141 slot = LoadWithVectorDescriptor::SlotRegister(); | 141 slot = LoadWithVectorDescriptor::SlotRegister(); |
| 142 } | 142 } |
| 143 DCHECK(!AreAliased(vector, slot, scratch, extra, extra2, extra3)); | 143 DCHECK(!AreAliased(vector, slot, scratch, extra, extra2, extra3)); |
| 144 } | 144 } |
| 145 #endif | 145 #endif |
| 146 | 146 |
| 147 Counters* counters = masm->isolate()->counters(); | 147 Counters* counters = masm->isolate()->counters(); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 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 | 182 |
| 183 #undef __ | 183 #undef __ |
| 184 } // namespace internal | 184 } // namespace internal |
| 185 } // namespace v8 | 185 } // namespace v8 |
| 186 | 186 |
| 187 #endif // V8_TARGET_ARCH_PPC | 187 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |