Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Side by Side Diff: runtime/vm/assembler_arm.cc

Issue 1358773002: Load the native call wrapper via Thread. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/assembler_arm.h ('k') | runtime/vm/assembler_arm64.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/assembler_arm.h ('k') | runtime/vm/assembler_arm64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698