| 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 // This is forked from Dart revision df52deea9f25690eb8b66c5995da92b70f7ac1fe | 5 // This is forked from Dart revision df52deea9f25690eb8b66c5995da92b70f7ac1fe |
| 6 // Please update the (git) revision if we merge changes from Dart. | 6 // Please update the (git) revision if we merge changes from Dart. |
| 7 // https://code.google.com/p/dart/wiki/GettingTheSource | 7 // https://code.google.com/p/dart/wiki/GettingTheSource |
| 8 | 8 |
| 9 #include "vm/globals.h" // NOLINT | 9 #include "vm/globals.h" // NOLINT |
| 10 #if defined(TARGET_ARCH_ARM) | 10 #if defined(TARGET_ARCH_ARM) |
| (...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 595 } | 595 } |
| 596 | 596 |
| 597 | 597 |
| 598 void Assembler::clrex() { | 598 void Assembler::clrex() { |
| 599 ASSERT(TargetCPUFeatures::arm_version() != ARMv5TE); | 599 ASSERT(TargetCPUFeatures::arm_version() != ARMv5TE); |
| 600 int32_t encoding = (kSpecialCondition << kConditionShift) | | 600 int32_t encoding = (kSpecialCondition << kConditionShift) | |
| 601 B26 | B24 | B22 | B21 | B20 | (0xff << 12) | B4 | 0xf; | 601 B26 | B24 | B22 | B21 | B20 | (0xff << 12) | B4 | 0xf; |
| 602 Emit(encoding); | 602 Emit(encoding); |
| 603 } | 603 } |
| 604 | 604 |
| 605 | 605 #if 0 |
| 606 // Moved to ARM32::AssemblerARM32::nop(). |
| 606 void Assembler::nop(Condition cond) { | 607 void Assembler::nop(Condition cond) { |
| 607 ASSERT(cond != kNoCondition); | 608 ASSERT(cond != kNoCondition); |
| 608 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) | | 609 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) | |
| 609 B25 | B24 | B21 | (0xf << 12); | 610 B25 | B24 | B21 | (0xf << 12); |
| 610 Emit(encoding); | 611 Emit(encoding); |
| 611 } | 612 } |
| 613 #endif |
| 612 | 614 |
| 613 | 615 |
| 614 void Assembler::vmovsr(SRegister sn, Register rt, Condition cond) { | 616 void Assembler::vmovsr(SRegister sn, Register rt, Condition cond) { |
| 615 ASSERT(TargetCPUFeatures::vfp_supported()); | 617 ASSERT(TargetCPUFeatures::vfp_supported()); |
| 616 ASSERT(sn != kNoSRegister); | 618 ASSERT(sn != kNoSRegister); |
| 617 ASSERT(rt != kNoRegister); | 619 ASSERT(rt != kNoRegister); |
| 618 ASSERT(rt != SP); | 620 ASSERT(rt != SP); |
| 619 ASSERT(rt != PC); | 621 ASSERT(rt != PC); |
| 620 ASSERT(cond != kNoCondition); | 622 ASSERT(cond != kNoCondition); |
| 621 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) | | 623 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) | |
| (...skipping 3065 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3687 | 3689 |
| 3688 | 3690 |
| 3689 const char* Assembler::FpuRegisterName(FpuRegister reg) { | 3691 const char* Assembler::FpuRegisterName(FpuRegister reg) { |
| 3690 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters)); | 3692 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters)); |
| 3691 return fpu_reg_names[reg]; | 3693 return fpu_reg_names[reg]; |
| 3692 } | 3694 } |
| 3693 | 3695 |
| 3694 } // namespace dart | 3696 } // namespace dart |
| 3695 | 3697 |
| 3696 #endif // defined TARGET_ARCH_ARM | 3698 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |