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_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
6 | 6 |
7 #include "src/ic/ic.h" | 7 #include "src/ic/ic.h" |
8 #include "src/ic/ic-compiler.h" | 8 #include "src/ic/ic-compiler.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 __ Ldr(map_reg, FieldMemOperand(receiver(), HeapObject::kMapOffset)); | 109 __ Ldr(map_reg, FieldMemOperand(receiver(), HeapObject::kMapOffset)); |
110 for (int i = 0; i < receiver_count; i++) { | 110 for (int i = 0; i < receiver_count; i++) { |
111 Handle<WeakCell> cell = Map::WeakCellForMap(receiver_maps->at(i)); | 111 Handle<WeakCell> cell = Map::WeakCellForMap(receiver_maps->at(i)); |
112 __ CmpWeakValue(map_reg, cell, scratch2()); | 112 __ CmpWeakValue(map_reg, cell, scratch2()); |
113 Label skip; | 113 Label skip; |
114 __ B(&skip, ne); | 114 __ B(&skip, ne); |
115 if (!transitioned_maps->at(i).is_null()) { | 115 if (!transitioned_maps->at(i).is_null()) { |
116 // This argument is used by the handler stub. For example, see | 116 // This argument is used by the handler stub. For example, see |
117 // ElementsTransitionGenerator::GenerateMapChangeElementsTransition. | 117 // ElementsTransitionGenerator::GenerateMapChangeElementsTransition. |
118 Handle<WeakCell> cell = Map::WeakCellForMap(transitioned_maps->at(i)); | 118 Handle<WeakCell> cell = Map::WeakCellForMap(transitioned_maps->at(i)); |
119 __ LoadWeakValue(transition_map(), cell, &miss); | 119 Register transition_map = scratch1(); |
| 120 DCHECK(!FLAG_vector_stores && |
| 121 transition_map.is(StoreTransitionDescriptor::MapRegister())); |
| 122 __ LoadWeakValue(transition_map, cell, &miss); |
120 } | 123 } |
121 __ Jump(handler_stubs->at(i), RelocInfo::CODE_TARGET); | 124 __ Jump(handler_stubs->at(i), RelocInfo::CODE_TARGET); |
122 __ Bind(&skip); | 125 __ Bind(&skip); |
123 } | 126 } |
124 | 127 |
125 __ Bind(&miss); | 128 __ Bind(&miss); |
126 TailCallBuiltin(masm(), MissBuiltin(kind())); | 129 TailCallBuiltin(masm(), MissBuiltin(kind())); |
127 | 130 |
128 return GetCode(kind(), Code::NORMAL, factory()->empty_string(), POLYMORPHIC); | 131 return GetCode(kind(), Code::NORMAL, factory()->empty_string(), POLYMORPHIC); |
129 } | 132 } |
130 | 133 |
131 | 134 |
132 #undef __ | 135 #undef __ |
133 } // namespace internal | 136 } // namespace internal |
134 } // namespace v8 | 137 } // namespace v8 |
135 | 138 |
136 #endif // V8_TARGET_ARCH_ARM64 | 139 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |