| 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 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 613 ASSERT(rt != SP); | 613 ASSERT(rt != SP); |
| 614 ASSERT(rt != PC); | 614 ASSERT(rt != PC); |
| 615 ASSERT(cond != kNoCondition); | 615 ASSERT(cond != kNoCondition); |
| 616 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) | | 616 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) | |
| 617 B27 | B26 | B25 | | 617 B27 | B26 | B25 | |
| 618 ((static_cast<int32_t>(sn) >> 1)*B16) | | 618 ((static_cast<int32_t>(sn) >> 1)*B16) | |
| 619 (static_cast<int32_t>(rt)*B12) | B11 | B9 | | 619 (static_cast<int32_t>(rt)*B12) | B11 | B9 | |
| 620 ((static_cast<int32_t>(sn) & 1)*B7) | B4; | 620 ((static_cast<int32_t>(sn) & 1)*B7) | B4; |
| 621 Emit(encoding); | 621 Emit(encoding); |
| 622 } | 622 } |
| 623 #endif | |
| 624 | 623 |
| 624 // Moved to ARM32::AssemblerARM32::vmovrs(). |
| 625 void Assembler::vmovrs(Register rt, SRegister sn, Condition cond) { | 625 void Assembler::vmovrs(Register rt, SRegister sn, Condition cond) { |
| 626 ASSERT(TargetCPUFeatures::vfp_supported()); | 626 ASSERT(TargetCPUFeatures::vfp_supported()); |
| 627 ASSERT(sn != kNoSRegister); | 627 ASSERT(sn != kNoSRegister); |
| 628 ASSERT(rt != kNoRegister); | 628 ASSERT(rt != kNoRegister); |
| 629 ASSERT(rt != SP); | 629 ASSERT(rt != SP); |
| 630 ASSERT(rt != PC); | 630 ASSERT(rt != PC); |
| 631 ASSERT(cond != kNoCondition); | 631 ASSERT(cond != kNoCondition); |
| 632 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) | | 632 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) | |
| 633 B27 | B26 | B25 | B20 | | 633 B27 | B26 | B25 | B20 | |
| 634 ((static_cast<int32_t>(sn) >> 1)*B16) | | 634 ((static_cast<int32_t>(sn) >> 1)*B16) | |
| 635 (static_cast<int32_t>(rt)*B12) | B11 | B9 | | 635 (static_cast<int32_t>(rt)*B12) | B11 | B9 | |
| 636 ((static_cast<int32_t>(sn) & 1)*B7) | B4; | 636 ((static_cast<int32_t>(sn) & 1)*B7) | B4; |
| 637 Emit(encoding); | 637 Emit(encoding); |
| 638 } | 638 } |
| 639 #endif |
| 639 | 640 |
| 640 | 641 |
| 641 void Assembler::vmovsrr(SRegister sm, Register rt, Register rt2, | 642 void Assembler::vmovsrr(SRegister sm, Register rt, Register rt2, |
| 642 Condition cond) { | 643 Condition cond) { |
| 643 ASSERT(TargetCPUFeatures::vfp_supported()); | 644 ASSERT(TargetCPUFeatures::vfp_supported()); |
| 644 ASSERT(sm != kNoSRegister); | 645 ASSERT(sm != kNoSRegister); |
| 645 ASSERT(sm != S31); | 646 ASSERT(sm != S31); |
| 646 ASSERT(rt != kNoRegister); | 647 ASSERT(rt != kNoRegister); |
| 647 ASSERT(rt != SP); | 648 ASSERT(rt != SP); |
| 648 ASSERT(rt != PC); | 649 ASSERT(rt != PC); |
| (...skipping 3040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3689 | 3690 |
| 3690 | 3691 |
| 3691 const char* Assembler::FpuRegisterName(FpuRegister reg) { | 3692 const char* Assembler::FpuRegisterName(FpuRegister reg) { |
| 3692 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters)); | 3693 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters)); |
| 3693 return fpu_reg_names[reg]; | 3694 return fpu_reg_names[reg]; |
| 3694 } | 3695 } |
| 3695 | 3696 |
| 3696 } // namespace dart | 3697 } // namespace dart |
| 3697 | 3698 |
| 3698 #endif // defined TARGET_ARCH_ARM | 3699 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |