| 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 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_PPC | 7 #if V8_TARGET_ARCH_PPC |
| 8 | 8 |
| 9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
| 10 #include "src/ic/ic.h" | 10 #include "src/ic/ic.h" |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 DCHECK(!scratch.is(no_reg)); | 135 DCHECK(!scratch.is(no_reg)); |
| 136 DCHECK(!extra.is(no_reg)); | 136 DCHECK(!extra.is(no_reg)); |
| 137 DCHECK(!extra2.is(no_reg)); | 137 DCHECK(!extra2.is(no_reg)); |
| 138 DCHECK(!extra3.is(no_reg)); | 138 DCHECK(!extra3.is(no_reg)); |
| 139 | 139 |
| 140 #ifdef DEBUG | 140 #ifdef DEBUG |
| 141 // If vector-based ics are in use, ensure that scratch, extra, extra2 and | 141 // If vector-based ics are in use, ensure that scratch, extra, extra2 and |
| 142 // extra3 don't conflict with the vector and slot registers, which need | 142 // extra3 don't conflict with the vector and slot registers, which need |
| 143 // to be preserved for a handler call or miss. | 143 // to be preserved for a handler call or miss. |
| 144 if (IC::ICUseVector(ic_kind)) { | 144 if (IC::ICUseVector(ic_kind)) { |
| 145 Register vector = VectorLoadICDescriptor::VectorRegister(); | 145 Register vector = LoadWithVectorDescriptor::VectorRegister(); |
| 146 Register slot = VectorLoadICDescriptor::SlotRegister(); | 146 Register slot = LoadWithVectorDescriptor::SlotRegister(); |
| 147 DCHECK(!AreAliased(vector, slot, scratch, extra, extra2, extra3)); | 147 DCHECK(!AreAliased(vector, slot, scratch, extra, extra2, extra3)); |
| 148 } | 148 } |
| 149 #endif | 149 #endif |
| 150 | 150 |
| 151 Counters* counters = masm->isolate()->counters(); | 151 Counters* counters = masm->isolate()->counters(); |
| 152 __ IncrementCounter(counters->megamorphic_stub_cache_probes(), 1, extra2, | 152 __ IncrementCounter(counters->megamorphic_stub_cache_probes(), 1, extra2, |
| 153 extra3); | 153 extra3); |
| 154 | 154 |
| 155 // Check that the receiver isn't a smi. | 155 // Check that the receiver isn't a smi. |
| 156 __ JumpIfSmi(receiver, &miss); | 156 __ JumpIfSmi(receiver, &miss); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 184 __ IncrementCounter(counters->megamorphic_stub_cache_misses(), 1, extra2, | 184 __ IncrementCounter(counters->megamorphic_stub_cache_misses(), 1, extra2, |
| 185 extra3); | 185 extra3); |
| 186 } | 186 } |
| 187 | 187 |
| 188 | 188 |
| 189 #undef __ | 189 #undef __ |
| 190 } | 190 } |
| 191 } // namespace v8::internal | 191 } // namespace v8::internal |
| 192 | 192 |
| 193 #endif // V8_TARGET_ARCH_PPC | 193 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |