OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #include "vm/globals.h" // NOLINT | 5 #include "vm/globals.h" // NOLINT |
6 #if defined(TARGET_ARCH_MIPS) | 6 #if defined(TARGET_ARCH_MIPS) |
7 | 7 |
8 #include "vm/assembler.h" | 8 #include "vm/assembler.h" |
9 #include "vm/longjump.h" | 9 #include "vm/longjump.h" |
10 #include "vm/runtime_entry.h" | 10 #include "vm/runtime_entry.h" |
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 | 548 |
549 void Assembler::LoadExternalLabel(Register rd, | 549 void Assembler::LoadExternalLabel(Register rd, |
550 const ExternalLabel* label, | 550 const ExternalLabel* label, |
551 Patchability patchable) { | 551 Patchability patchable) { |
552 const int32_t offset = ObjectPool::element_offset( | 552 const int32_t offset = ObjectPool::element_offset( |
553 object_pool_wrapper_.FindExternalLabel(label, patchable)); | 553 object_pool_wrapper_.FindExternalLabel(label, patchable)); |
554 LoadWordFromPoolOffset(rd, offset - kHeapObjectTag); | 554 LoadWordFromPoolOffset(rd, offset - kHeapObjectTag); |
555 } | 555 } |
556 | 556 |
557 | 557 |
| 558 void Assembler::LoadNativeEntry(Register rd, |
| 559 const ExternalLabel* label, |
| 560 Patchability patchable) { |
| 561 const int32_t offset = ObjectPool::element_offset( |
| 562 object_pool_wrapper_.FindNativeEntry(label, patchable)); |
| 563 LoadWordFromPoolOffset(rd, offset - kHeapObjectTag); |
| 564 } |
| 565 |
| 566 |
558 void Assembler::PushObject(const Object& object) { | 567 void Assembler::PushObject(const Object& object) { |
559 ASSERT(!in_delay_slot_); | 568 ASSERT(!in_delay_slot_); |
560 LoadObject(TMP, object); | 569 LoadObject(TMP, object); |
561 Push(TMP); | 570 Push(TMP); |
562 } | 571 } |
563 | 572 |
564 | 573 |
565 // Preserves object and value registers. | 574 // Preserves object and value registers. |
566 void Assembler::StoreIntoObjectFilterNoSmi(Register object, | 575 void Assembler::StoreIntoObjectFilterNoSmi(Register object, |
567 Register value, | 576 Register value, |
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1322 Label stop; | 1331 Label stop; |
1323 b(&stop); | 1332 b(&stop); |
1324 Emit(reinterpret_cast<int32_t>(message)); | 1333 Emit(reinterpret_cast<int32_t>(message)); |
1325 Bind(&stop); | 1334 Bind(&stop); |
1326 break_(Instr::kStopMessageCode); | 1335 break_(Instr::kStopMessageCode); |
1327 } | 1336 } |
1328 | 1337 |
1329 } // namespace dart | 1338 } // namespace dart |
1330 | 1339 |
1331 #endif // defined TARGET_ARCH_MIPS | 1340 #endif // defined TARGET_ARCH_MIPS |
OLD | NEW |