Chromium Code Reviews| 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 899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 910 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) | | 910 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) | |
| 911 B27 | B26 | B25 | B11 | B9 | B8 | opcode | | 911 B27 | B26 | B25 | B11 | B9 | B8 | opcode | |
| 912 ((static_cast<int32_t>(dd) >> 4)*B22) | | 912 ((static_cast<int32_t>(dd) >> 4)*B22) | |
| 913 ((static_cast<int32_t>(dn) & 0xf)*B16) | | 913 ((static_cast<int32_t>(dn) & 0xf)*B16) | |
| 914 ((static_cast<int32_t>(dd) & 0xf)*B12) | | 914 ((static_cast<int32_t>(dd) & 0xf)*B12) | |
| 915 ((static_cast<int32_t>(dn) >> 4)*B7) | | 915 ((static_cast<int32_t>(dn) >> 4)*B7) | |
| 916 ((static_cast<int32_t>(dm) >> 4)*B5) | | 916 ((static_cast<int32_t>(dm) >> 4)*B5) | |
| 917 (static_cast<int32_t>(dm) & 0xf); | 917 (static_cast<int32_t>(dm) & 0xf); |
| 918 Emit(encoding); | 918 Emit(encoding); |
| 919 } | 919 } |
| 920 #endif | |
| 921 | 920 |
| 921 // Moved to Arm32::AssemblerARM32::vmovss() | |
| 922 void Assembler::vmovs(SRegister sd, SRegister sm, Condition cond) { | 922 void Assembler::vmovs(SRegister sd, SRegister sm, Condition cond) { |
| 923 EmitVFPsss(cond, B23 | B21 | B20 | B6, sd, S0, sm); | 923 EmitVFPsss(cond, B23 | B21 | B20 | B6, sd, S0, sm); |
| 924 } | 924 } |
| 925 | 925 |
| 926 | 926 // Moved to Arm32::AssemblerARM32::vmovdd() |
| 927 void Assembler::vmovd(DRegister dd, DRegister dm, Condition cond) { | 927 void Assembler::vmovd(DRegister dd, DRegister dm, Condition cond) { |
| 928 EmitVFPddd(cond, B23 | B21 | B20 | B6, dd, D0, dm); | 928 EmitVFPddd(cond, B23 | B21 | B20 | B6, dd, D0, dm); |
| 929 } | 929 } |
| 930 #endif | |
|
Jim Stichnoth
2016/01/27 22:10:49
Remove this and the following "#if 0". Woohoo!
Karl
2016/01/27 22:58:09
Done.
| |
| 930 | 931 |
| 931 #if 0 | 932 #if 0 |
| 932 // Moved to Arm32::AssemblerARM32::vmovs() | 933 // Moved to Arm32::AssemblerARM32::vmovs() |
| 933 bool Assembler::vmovs(SRegister sd, float s_imm, Condition cond) { | 934 bool Assembler::vmovs(SRegister sd, float s_imm, Condition cond) { |
| 934 if (TargetCPUFeatures::arm_version() != ARMv7) { | 935 if (TargetCPUFeatures::arm_version() != ARMv7) { |
| 935 return false; | 936 return false; |
| 936 } | 937 } |
| 937 uint32_t imm32 = bit_cast<uint32_t, float>(s_imm); | 938 uint32_t imm32 = bit_cast<uint32_t, float>(s_imm); |
| 938 if (((imm32 & ((1 << 19) - 1)) == 0) && | 939 if (((imm32 & ((1 << 19) - 1)) == 0) && |
| 939 ((((imm32 >> 25) & ((1 << 6) - 1)) == (1 << 5)) || | 940 ((((imm32 >> 25) & ((1 << 6) - 1)) == (1 << 5)) || |
| (...skipping 2748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3688 | 3689 |
| 3689 | 3690 |
| 3690 const char* Assembler::FpuRegisterName(FpuRegister reg) { | 3691 const char* Assembler::FpuRegisterName(FpuRegister reg) { |
| 3691 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters)); | 3692 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters)); |
| 3692 return fpu_reg_names[reg]; | 3693 return fpu_reg_names[reg]; |
| 3693 } | 3694 } |
| 3694 | 3695 |
| 3695 } // namespace dart | 3696 } // namespace dart |
| 3696 | 3697 |
| 3697 #endif // defined TARGET_ARCH_ARM | 3698 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |