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_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
8 | 8 |
9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
10 #include "src/ic-inl.h" | 10 #include "src/ic-inl.h" |
(...skipping 1366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1377 Code::StubType type, | 1377 Code::StubType type, |
1378 IcCheckType check) { | 1378 IcCheckType check) { |
1379 Label miss; | 1379 Label miss; |
1380 | 1380 |
1381 if (check == PROPERTY && | 1381 if (check == PROPERTY && |
1382 (kind() == Code::KEYED_LOAD_IC || kind() == Code::KEYED_STORE_IC)) { | 1382 (kind() == Code::KEYED_LOAD_IC || kind() == Code::KEYED_STORE_IC)) { |
1383 __ Branch(&miss, ne, this->name(), Operand(name)); | 1383 __ Branch(&miss, ne, this->name(), Operand(name)); |
1384 } | 1384 } |
1385 | 1385 |
1386 Label number_case; | 1386 Label number_case; |
1387 Register match = scratch1(); | 1387 Register match = scratch2(); |
1388 Label* smi_target = IncludesNumberType(types) ? &number_case : &miss; | 1388 Label* smi_target = IncludesNumberType(types) ? &number_case : &miss; |
1389 __ JumpIfSmi(receiver(), smi_target, match); // Reg match is 0 if Smi. | 1389 __ JumpIfSmi(receiver(), smi_target, match); // Reg match is 0 if Smi. |
1390 | 1390 |
1391 // Polymorphic keyed stores may use the map register | 1391 // Polymorphic keyed stores may use the map register |
1392 Register map_reg = scratch2(); | 1392 Register map_reg = scratch1(); |
1393 ASSERT(kind() != Code::KEYED_STORE_IC || | 1393 ASSERT(kind() != Code::KEYED_STORE_IC || |
1394 map_reg.is(KeyedStoreIC::MapRegister())); | 1394 map_reg.is(KeyedStoreIC::MapRegister())); |
1395 | 1395 |
1396 int receiver_count = types->length(); | 1396 int receiver_count = types->length(); |
1397 int number_of_handled_maps = 0; | 1397 int number_of_handled_maps = 0; |
1398 __ ld(map_reg, FieldMemOperand(receiver(), HeapObject::kMapOffset)); | 1398 __ ld(map_reg, FieldMemOperand(receiver(), HeapObject::kMapOffset)); |
1399 for (int current = 0; current < receiver_count; ++current) { | 1399 for (int current = 0; current < receiver_count; ++current) { |
1400 Handle<HeapType> type = types->at(current); | 1400 Handle<HeapType> type = types->at(current); |
1401 Handle<Map> map = IC::TypeToMap(*type, isolate()); | 1401 Handle<Map> map = IC::TypeToMap(*type, isolate()); |
1402 if (!map->is_deprecated()) { | 1402 if (!map->is_deprecated()) { |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1499 | 1499 |
1500 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1500 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
1501 } | 1501 } |
1502 | 1502 |
1503 | 1503 |
1504 #undef __ | 1504 #undef __ |
1505 | 1505 |
1506 } } // namespace v8::internal | 1506 } } // namespace v8::internal |
1507 | 1507 |
1508 #endif // V8_TARGET_ARCH_MIPS64 | 1508 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |