| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 DCHECK(!extra2.is(no_reg)); | 102 DCHECK(!extra2.is(no_reg)); |
| 103 DCHECK(!extra3.is(no_reg)); | 103 DCHECK(!extra3.is(no_reg)); |
| 104 | 104 |
| 105 #ifdef DEBUG | 105 #ifdef DEBUG |
| 106 // If vector-based ics are in use, ensure that scratch, extra, extra2 and | 106 // If vector-based ics are in use, ensure that scratch, extra, extra2 and |
| 107 // extra3 don't conflict with the vector and slot registers, which need | 107 // extra3 don't conflict with the vector and slot registers, which need |
| 108 // to be preserved for a handler call or miss. | 108 // to be preserved for a handler call or miss. |
| 109 if (IC::ICUseVector(ic_kind_)) { | 109 if (IC::ICUseVector(ic_kind_)) { |
| 110 Register vector, slot; | 110 Register vector, slot; |
| 111 if (ic_kind_ == Code::STORE_IC || ic_kind_ == Code::KEYED_STORE_IC) { | 111 if (ic_kind_ == Code::STORE_IC || ic_kind_ == Code::KEYED_STORE_IC) { |
| 112 vector = VectorStoreICDescriptor::VectorRegister(); | 112 vector = StoreWithVectorDescriptor::VectorRegister(); |
| 113 slot = VectorStoreICDescriptor::SlotRegister(); | 113 slot = StoreWithVectorDescriptor::SlotRegister(); |
| 114 } else { | 114 } else { |
| 115 DCHECK(ic_kind_ == Code::LOAD_IC || ic_kind_ == Code::KEYED_LOAD_IC); | 115 DCHECK(ic_kind_ == Code::LOAD_IC || ic_kind_ == Code::KEYED_LOAD_IC); |
| 116 vector = LoadWithVectorDescriptor::VectorRegister(); | 116 vector = LoadWithVectorDescriptor::VectorRegister(); |
| 117 slot = LoadWithVectorDescriptor::SlotRegister(); | 117 slot = LoadWithVectorDescriptor::SlotRegister(); |
| 118 } | 118 } |
| 119 DCHECK(!AreAliased(vector, slot, scratch, extra, extra2, extra3)); | 119 DCHECK(!AreAliased(vector, slot, scratch, extra, extra2, extra3)); |
| 120 } | 120 } |
| 121 #endif | 121 #endif |
| 122 | 122 |
| 123 Counters* counters = masm->isolate()->counters(); | 123 Counters* counters = masm->isolate()->counters(); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 152 // Cache miss: Fall-through and let caller handle the miss by | 152 // Cache miss: Fall-through and let caller handle the miss by |
| 153 // entering the runtime system. | 153 // entering the runtime system. |
| 154 __ Bind(&miss); | 154 __ Bind(&miss); |
| 155 __ IncrementCounter(counters->megamorphic_stub_cache_misses(), 1, extra2, | 155 __ IncrementCounter(counters->megamorphic_stub_cache_misses(), 1, extra2, |
| 156 extra3); | 156 extra3); |
| 157 } | 157 } |
| 158 } // namespace internal | 158 } // namespace internal |
| 159 } // namespace v8 | 159 } // namespace v8 |
| 160 | 160 |
| 161 #endif // V8_TARGET_ARCH_ARM64 | 161 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |