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_ARM) | 6 #if defined(TARGET_ARCH_ARM) |
7 | 7 |
8 #include "vm/assembler.h" | 8 #include "vm/assembler.h" |
9 #include "vm/cpu.h" | 9 #include "vm/cpu.h" |
10 #include "vm/longjump.h" | 10 #include "vm/longjump.h" |
(...skipping 1637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1648 } | 1648 } |
1649 | 1649 |
1650 | 1650 |
1651 void Assembler::LoadUniqueObject(Register rd, | 1651 void Assembler::LoadUniqueObject(Register rd, |
1652 const Object& object, | 1652 const Object& object, |
1653 Condition cond) { | 1653 Condition cond) { |
1654 LoadObjectHelper(rd, object, cond, /* is_unique = */ true, PP); | 1654 LoadObjectHelper(rd, object, cond, /* is_unique = */ true, PP); |
1655 } | 1655 } |
1656 | 1656 |
1657 | 1657 |
1658 void Assembler::LoadExternalLabel(Register rd, | |
1659 const ExternalLabel* label, | |
1660 Patchability patchable, | |
1661 Condition cond) { | |
1662 const int32_t offset = ObjectPool::element_offset( | |
1663 object_pool_wrapper_.FindExternalLabel(label, patchable)); | |
1664 LoadWordFromPoolOffset(rd, offset - kHeapObjectTag, PP, cond); | |
1665 } | |
1666 | |
1667 | |
1668 void Assembler::LoadFunctionFromCalleePool(Register dst, | 1658 void Assembler::LoadFunctionFromCalleePool(Register dst, |
1669 const Function& function, | 1659 const Function& function, |
1670 Register new_pp) { | 1660 Register new_pp) { |
1671 const int32_t offset = | 1661 const int32_t offset = |
1672 ObjectPool::element_offset(object_pool_wrapper_.FindObject(function)); | 1662 ObjectPool::element_offset(object_pool_wrapper_.FindObject(function)); |
1673 LoadWordFromPoolOffset(dst, offset - kHeapObjectTag, new_pp, AL); | 1663 LoadWordFromPoolOffset(dst, offset - kHeapObjectTag, new_pp, AL); |
1674 } | 1664 } |
1675 | 1665 |
1676 | 1666 |
1677 void Assembler::LoadNativeEntry(Register rd, | 1667 void Assembler::LoadNativeEntry(Register rd, |
(...skipping 2017 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3695 | 3685 |
3696 | 3686 |
3697 const char* Assembler::FpuRegisterName(FpuRegister reg) { | 3687 const char* Assembler::FpuRegisterName(FpuRegister reg) { |
3698 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters)); | 3688 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters)); |
3699 return fpu_reg_names[reg]; | 3689 return fpu_reg_names[reg]; |
3700 } | 3690 } |
3701 | 3691 |
3702 } // namespace dart | 3692 } // namespace dart |
3703 | 3693 |
3704 #endif // defined TARGET_ARCH_ARM | 3694 #endif // defined TARGET_ARCH_ARM |
OLD | NEW |