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

Side by Side Diff: runtime/vm/assembler_arm64.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_arm64.h ('k') | runtime/vm/assembler_arm64_test.cc » ('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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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_ARM64) 6 #if defined(TARGET_ARCH_ARM64)
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 538 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 void Assembler::LoadExternalLabelFixed(Register dst, 549 void Assembler::LoadExternalLabelFixed(Register dst,
550 const ExternalLabel* label, 550 const ExternalLabel* label,
551 Patchability patchable, 551 Patchability patchable,
552 Register pp) { 552 Register pp) {
553 const int32_t offset = 553 const int32_t offset =
554 Array::element_offset(FindExternalLabel(label, patchable)); 554 Array::element_offset(FindExternalLabel(label, patchable));
555 LoadWordFromPoolOffsetFixed(dst, pp, offset); 555 LoadWordFromPoolOffsetFixed(dst, pp, offset);
556 } 556 }
557 557
558 558
559 void Assembler::LoadIsolate(Register dst, Register pp) {
560 LoadImmediate(dst, reinterpret_cast<uword>(Isolate::Current()), pp);
561 }
562
563
559 void Assembler::LoadObject(Register dst, const Object& object, Register pp) { 564 void Assembler::LoadObject(Register dst, const Object& object, Register pp) {
560 if (CanLoadObjectFromPool(object)) { 565 if (CanLoadObjectFromPool(object)) {
561 const int32_t offset = 566 const int32_t offset =
562 Array::element_offset(FindObject(object, kNotPatchable)); 567 Array::element_offset(FindObject(object, kNotPatchable));
563 LoadWordFromPoolOffset(dst, pp, offset); 568 LoadWordFromPoolOffset(dst, pp, offset);
564 } else { 569 } else {
565 ASSERT((Isolate::Current() == Dart::vm_isolate()) || 570 ASSERT((Isolate::Current() == Dart::vm_isolate()) ||
566 object.IsSmi() || 571 object.IsSmi() ||
567 object.InVMHeap()); 572 object.InVMHeap());
568 LoadDecodableImmediate(dst, reinterpret_cast<int64_t>(object.raw()), pp); 573 LoadDecodableImmediate(dst, reinterpret_cast<int64_t>(object.raw()), pp);
(...skipping 945 matching lines...) Expand 10 before | Expand all | Expand 10 after
1514 add(base, array, Operand(index, LSL, shift)); 1519 add(base, array, Operand(index, LSL, shift));
1515 } 1520 }
1516 const OperandSize size = Address::OperandSizeFor(cid); 1521 const OperandSize size = Address::OperandSizeFor(cid);
1517 ASSERT(Address::CanHoldOffset(offset, Address::Offset, size)); 1522 ASSERT(Address::CanHoldOffset(offset, Address::Offset, size));
1518 return Address(base, offset, Address::Offset, size); 1523 return Address(base, offset, Address::Offset, size);
1519 } 1524 }
1520 1525
1521 } // namespace dart 1526 } // namespace dart
1522 1527
1523 #endif // defined TARGET_ARCH_ARM64 1528 #endif // defined TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « runtime/vm/assembler_arm64.h ('k') | runtime/vm/assembler_arm64_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698