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

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

Issue 2098643003: VM: [AOT] Make sure that we inline all resolved accessor invocations. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Done. Created 4 years, 5 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/aot_optimizer.cc ('k') | no next file » | 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 1566 matching lines...) Expand 10 before | Expand all | Expand 10 after
1577 } 1577 }
1578 1578
1579 1579
1580 void Assembler::LoadObjectHelper(Register rd, 1580 void Assembler::LoadObjectHelper(Register rd,
1581 const Object& object, 1581 const Object& object,
1582 Condition cond, 1582 Condition cond,
1583 bool is_unique, 1583 bool is_unique,
1584 Register pp) { 1584 Register pp) {
1585 ASSERT(!object.IsICData() || ICData::Cast(object).IsOriginal()); 1585 ASSERT(!object.IsICData() || ICData::Cast(object).IsOriginal());
1586 ASSERT(!object.IsField() || Field::Cast(object).IsOriginal()); 1586 ASSERT(!object.IsField() || Field::Cast(object).IsOriginal());
1587 // Load common VM constants from the thread. This works also in places where
1588 // no constant pool is set up (e.g. intrinsic code).
1589 if (Thread::CanLoadFromThread(object)) { 1587 if (Thread::CanLoadFromThread(object)) {
1590 // Load common VM constants from the thread. This works also in places where 1588 // Load common VM constants from the thread. This works also in places where
1591 // no constant pool is set up (e.g. intrinsic code). 1589 // no constant pool is set up (e.g. intrinsic code).
1592 ldr(rd, Address(THR, Thread::OffsetFromThread(object)), cond); 1590 ldr(rd, Address(THR, Thread::OffsetFromThread(object)), cond);
1593 } else if (object.IsSmi()) { 1591 } else if (object.IsSmi()) {
1594 // Relocation doesn't apply to Smis. 1592 // Relocation doesn't apply to Smis.
1595 LoadImmediate(rd, reinterpret_cast<int32_t>(object.raw()), cond); 1593 LoadImmediate(rd, reinterpret_cast<int32_t>(object.raw()), cond);
1596 } else if (CanLoadFromObjectPool(object)) { 1594 } else if (CanLoadFromObjectPool(object)) {
1597 // Make sure that class CallPattern is able to decode this load from the 1595 // Make sure that class CallPattern is able to decode this load from the
1598 // object pool. 1596 // object pool.
(...skipping 2072 matching lines...) Expand 10 before | Expand all | Expand 10 after
3671 3669
3672 3670
3673 const char* Assembler::FpuRegisterName(FpuRegister reg) { 3671 const char* Assembler::FpuRegisterName(FpuRegister reg) {
3674 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters)); 3672 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters));
3675 return fpu_reg_names[reg]; 3673 return fpu_reg_names[reg];
3676 } 3674 }
3677 3675
3678 } // namespace dart 3676 } // namespace dart
3679 3677
3680 #endif // defined TARGET_ARCH_ARM 3678 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/vm/aot_optimizer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698