| 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_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
| 8 | 8 |
| 9 #include "src/ic/ic.h" | 9 #include "src/ic/ic.h" |
| 10 #include "src/ic/ic-compiler.h" | 10 #include "src/ic/ic-compiler.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 } | 41 } |
| 42 | 42 |
| 43 Label number_case; | 43 Label number_case; |
| 44 Register match = scratch2(); | 44 Register match = scratch2(); |
| 45 Label* smi_target = IncludesNumberMap(maps) ? &number_case : &miss; | 45 Label* smi_target = IncludesNumberMap(maps) ? &number_case : &miss; |
| 46 __ JumpIfSmi(receiver(), smi_target, match); // Reg match is 0 if Smi. | 46 __ JumpIfSmi(receiver(), smi_target, match); // Reg match is 0 if Smi. |
| 47 | 47 |
| 48 // Polymorphic keyed stores may use the map register | 48 // Polymorphic keyed stores may use the map register |
| 49 Register map_reg = scratch1(); | 49 Register map_reg = scratch1(); |
| 50 DCHECK(kind() != Code::KEYED_STORE_IC || | 50 DCHECK(kind() != Code::KEYED_STORE_IC || |
| 51 map_reg.is(ElementTransitionAndStoreDescriptor::MapRegister())); | 51 map_reg.is(StoreTransitionDescriptor::MapRegister())); |
| 52 | 52 |
| 53 int receiver_count = maps->length(); | 53 int receiver_count = maps->length(); |
| 54 int number_of_handled_maps = 0; | 54 int number_of_handled_maps = 0; |
| 55 __ ld(map_reg, FieldMemOperand(receiver(), HeapObject::kMapOffset)); | 55 __ ld(map_reg, FieldMemOperand(receiver(), HeapObject::kMapOffset)); |
| 56 for (int current = 0; current < receiver_count; ++current) { | 56 for (int current = 0; current < receiver_count; ++current) { |
| 57 Handle<Map> map = maps->at(current); | 57 Handle<Map> map = maps->at(current); |
| 58 if (!map->is_deprecated()) { | 58 if (!map->is_deprecated()) { |
| 59 number_of_handled_maps++; | 59 number_of_handled_maps++; |
| 60 // Check map and tail call if there's a match. | 60 // Check map and tail call if there's a match. |
| 61 // Separate compare from branch, to provide path for above JumpIfSmi(). | 61 // Separate compare from branch, to provide path for above JumpIfSmi(). |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 // Do tail-call to runtime routine. | 131 // Do tail-call to runtime routine. |
| 132 __ TailCallRuntime(Runtime::kSetProperty, 4, 1); | 132 __ TailCallRuntime(Runtime::kSetProperty, 4, 1); |
| 133 } | 133 } |
| 134 | 134 |
| 135 | 135 |
| 136 #undef __ | 136 #undef __ |
| 137 } // namespace internal | 137 } // namespace internal |
| 138 } // namespace v8 | 138 } // namespace v8 |
| 139 | 139 |
| 140 #endif // V8_TARGET_ARCH_MIPS64 | 140 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |