| 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_ARM | 5 #if V8_TARGET_ARCH_ARM |
| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 __ ldr(map_reg, FieldMemOperand(receiver(), HeapObject::kMapOffset)); | 104 __ ldr(map_reg, FieldMemOperand(receiver(), HeapObject::kMapOffset)); |
| 105 for (int i = 0; i < receiver_count; ++i) { | 105 for (int i = 0; i < receiver_count; ++i) { |
| 106 Handle<WeakCell> cell = Map::WeakCellForMap(receiver_maps->at(i)); | 106 Handle<WeakCell> cell = Map::WeakCellForMap(receiver_maps->at(i)); |
| 107 __ CmpWeakValue(map_reg, cell, scratch2()); | 107 __ CmpWeakValue(map_reg, cell, scratch2()); |
| 108 if (transitioned_maps->at(i).is_null()) { | 108 if (transitioned_maps->at(i).is_null()) { |
| 109 __ Jump(handler_stubs->at(i), RelocInfo::CODE_TARGET, eq); | 109 __ Jump(handler_stubs->at(i), RelocInfo::CODE_TARGET, eq); |
| 110 } else { | 110 } else { |
| 111 Label next_map; | 111 Label next_map; |
| 112 __ b(ne, &next_map); | 112 __ b(ne, &next_map); |
| 113 Handle<WeakCell> cell = Map::WeakCellForMap(transitioned_maps->at(i)); | 113 Handle<WeakCell> cell = Map::WeakCellForMap(transitioned_maps->at(i)); |
| 114 Register transition_map = scratch1(); | 114 __ LoadWeakValue(transition_map(), cell, &miss); |
| 115 DCHECK(!FLAG_vector_stores && | |
| 116 transition_map.is(StoreTransitionDescriptor::MapRegister())); | |
| 117 __ LoadWeakValue(transition_map, cell, &miss); | |
| 118 __ Jump(handler_stubs->at(i), RelocInfo::CODE_TARGET, al); | 115 __ Jump(handler_stubs->at(i), RelocInfo::CODE_TARGET, al); |
| 119 __ bind(&next_map); | 116 __ bind(&next_map); |
| 120 } | 117 } |
| 121 } | 118 } |
| 122 | 119 |
| 123 __ bind(&miss); | 120 __ bind(&miss); |
| 124 TailCallBuiltin(masm(), MissBuiltin(kind())); | 121 TailCallBuiltin(masm(), MissBuiltin(kind())); |
| 125 | 122 |
| 126 // Return the generated code. | 123 // Return the generated code. |
| 127 return GetCode(kind(), Code::NORMAL, factory()->empty_string(), POLYMORPHIC); | 124 return GetCode(kind(), Code::NORMAL, factory()->empty_string(), POLYMORPHIC); |
| 128 } | 125 } |
| 129 | 126 |
| 130 | 127 |
| 131 #undef __ | 128 #undef __ |
| 132 } // namespace internal | 129 } // namespace internal |
| 133 } // namespace v8 | 130 } // namespace v8 |
| 134 | 131 |
| 135 #endif // V8_TARGET_ARCH_ARM | 132 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |