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

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

Issue 609593002: - Remove Isolate::CurrentAddress(). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 2 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 | Annotate | Revision Log
« 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" 5 #include "vm/globals.h"
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 1518 matching lines...) Expand 10 before | Expand all | Expand 10 after
1529 1529
1530 1530
1531 void Assembler::LoadPoolPointer() { 1531 void Assembler::LoadPoolPointer() {
1532 const intptr_t object_pool_pc_dist = 1532 const intptr_t object_pool_pc_dist =
1533 Instructions::HeaderSize() - Instructions::object_pool_offset() + 1533 Instructions::HeaderSize() - Instructions::object_pool_offset() +
1534 CodeSize() + Instr::kPCReadOffset; 1534 CodeSize() + Instr::kPCReadOffset;
1535 LoadFromOffset(kWord, PP, PC, -object_pool_pc_dist); 1535 LoadFromOffset(kWord, PP, PC, -object_pool_pc_dist);
1536 } 1536 }
1537 1537
1538 1538
1539 void Assembler::LoadIsolate(Register rd) {
1540 LoadImmediate(rd, reinterpret_cast<uword>(Isolate::Current()));
1541 }
1542
1543
1539 void Assembler::LoadObject(Register rd, const Object& object, Condition cond) { 1544 void Assembler::LoadObject(Register rd, const Object& object, Condition cond) {
1540 // Smis and VM heap objects are never relocated; do not use object pool. 1545 // Smis and VM heap objects are never relocated; do not use object pool.
1541 if (object.IsSmi()) { 1546 if (object.IsSmi()) {
1542 LoadImmediate(rd, reinterpret_cast<int32_t>(object.raw()), cond); 1547 LoadImmediate(rd, reinterpret_cast<int32_t>(object.raw()), cond);
1543 } else if (object.InVMHeap() || !allow_constant_pool()) { 1548 } else if (object.InVMHeap() || !allow_constant_pool()) {
1544 // Make sure that class CallPattern is able to decode this load immediate. 1549 // Make sure that class CallPattern is able to decode this load immediate.
1545 const int32_t object_raw = reinterpret_cast<int32_t>(object.raw()); 1550 const int32_t object_raw = reinterpret_cast<int32_t>(object.raw());
1546 LoadImmediate(rd, object_raw, cond); 1551 LoadImmediate(rd, object_raw, cond);
1547 } else { 1552 } else {
1548 // Make sure that class CallPattern is able to decode this load from the 1553 // Make sure that class CallPattern is able to decode this load from the
(...skipping 1845 matching lines...) Expand 10 before | Expand all | Expand 10 after
3394 3399
3395 3400
3396 const char* Assembler::FpuRegisterName(FpuRegister reg) { 3401 const char* Assembler::FpuRegisterName(FpuRegister reg) {
3397 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters)); 3402 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters));
3398 return fpu_reg_names[reg]; 3403 return fpu_reg_names[reg];
3399 } 3404 }
3400 3405
3401 } // namespace dart 3406 } // namespace dart
3402 3407
3403 #endif // defined TARGET_ARCH_ARM 3408 #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