| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 DCHECK(!scratch.is(no_reg)); | 114 DCHECK(!scratch.is(no_reg)); |
| 115 DCHECK(!extra.is(no_reg)); | 115 DCHECK(!extra.is(no_reg)); |
| 116 DCHECK(!extra2.is(no_reg)); | 116 DCHECK(!extra2.is(no_reg)); |
| 117 DCHECK(!extra3.is(no_reg)); | 117 DCHECK(!extra3.is(no_reg)); |
| 118 | 118 |
| 119 #ifdef DEBUG | 119 #ifdef DEBUG |
| 120 // If vector-based ics are in use, ensure that scratch, extra, extra2 and | 120 // If vector-based ics are in use, ensure that scratch, extra, extra2 and |
| 121 // extra3 don't conflict with the vector and slot registers, which need | 121 // extra3 don't conflict with the vector and slot registers, which need |
| 122 // to be preserved for a handler call or miss. | 122 // to be preserved for a handler call or miss. |
| 123 if (IC::ICUseVector(ic_kind)) { | 123 if (IC::ICUseVector(ic_kind)) { |
| 124 Register vector = VectorLoadICDescriptor::VectorRegister(); | 124 Register vector = LoadWithVectorDescriptor::VectorRegister(); |
| 125 Register slot = VectorLoadICDescriptor::SlotRegister(); | 125 Register slot = LoadWithVectorDescriptor::SlotRegister(); |
| 126 DCHECK(!AreAliased(vector, slot, scratch, extra, extra2, extra3)); | 126 DCHECK(!AreAliased(vector, slot, scratch, extra, extra2, extra3)); |
| 127 } | 127 } |
| 128 #endif | 128 #endif |
| 129 | 129 |
| 130 Counters* counters = masm->isolate()->counters(); | 130 Counters* counters = masm->isolate()->counters(); |
| 131 __ IncrementCounter(counters->megamorphic_stub_cache_probes(), 1, extra2, | 131 __ IncrementCounter(counters->megamorphic_stub_cache_probes(), 1, extra2, |
| 132 extra3); | 132 extra3); |
| 133 | 133 |
| 134 // Check that the receiver isn't a smi. | 134 // Check that the receiver isn't a smi. |
| 135 __ JumpIfSmi(receiver, &miss); | 135 __ JumpIfSmi(receiver, &miss); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 166 __ IncrementCounter(counters->megamorphic_stub_cache_misses(), 1, extra2, | 166 __ IncrementCounter(counters->megamorphic_stub_cache_misses(), 1, extra2, |
| 167 extra3); | 167 extra3); |
| 168 } | 168 } |
| 169 | 169 |
| 170 | 170 |
| 171 #undef __ | 171 #undef __ |
| 172 } | 172 } |
| 173 } // namespace v8::internal | 173 } // namespace v8::internal |
| 174 | 174 |
| 175 #endif // V8_TARGET_ARCH_MIPS | 175 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |