| 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 1153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1164 | 1164 |
| 1165 // Moved to ARM23::AssemblerARM32::vcmpsz(). | 1165 // Moved to ARM23::AssemblerARM32::vcmpsz(). |
| 1166 void Assembler::vcmpsz(SRegister sd, Condition cond) { | 1166 void Assembler::vcmpsz(SRegister sd, Condition cond) { |
| 1167 EmitVFPsss(cond, B23 | B21 | B20 | B18 | B16 | B6, sd, S0, S0); | 1167 EmitVFPsss(cond, B23 | B21 | B20 | B18 | B16 | B6, sd, S0, S0); |
| 1168 } | 1168 } |
| 1169 | 1169 |
| 1170 // Moved to ARM23::AssemblerARM32::vcmpdz(). | 1170 // Moved to ARM23::AssemblerARM32::vcmpdz(). |
| 1171 void Assembler::vcmpdz(DRegister dd, Condition cond) { | 1171 void Assembler::vcmpdz(DRegister dd, Condition cond) { |
| 1172 EmitVFPddd(cond, B23 | B21 | B20 | B18 | B16 | B6, dd, D0, D0); | 1172 EmitVFPddd(cond, B23 | B21 | B20 | B18 | B16 | B6, dd, D0, D0); |
| 1173 } | 1173 } |
| 1174 #endif | |
| 1175 | 1174 |
| 1175 // APSR_nzcv version moved to ARM32::AssemblerARM32::vmrsAPSR_nzcv() |
| 1176 void Assembler::vmrs(Register rd, Condition cond) { | 1176 void Assembler::vmrs(Register rd, Condition cond) { |
| 1177 ASSERT(TargetCPUFeatures::vfp_supported()); | 1177 ASSERT(TargetCPUFeatures::vfp_supported()); |
| 1178 ASSERT(cond != kNoCondition); | 1178 ASSERT(cond != kNoCondition); |
| 1179 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) | | 1179 int32_t encoding = (static_cast<int32_t>(cond) << kConditionShift) | |
| 1180 B27 | B26 | B25 | B23 | B22 | B21 | B20 | B16 | | 1180 B27 | B26 | B25 | B23 | B22 | B21 | B20 | B16 | |
| 1181 (static_cast<int32_t>(rd)*B12) | | 1181 (static_cast<int32_t>(rd)*B12) | |
| 1182 B11 | B9 | B4; | 1182 B11 | B9 | B4; |
| 1183 Emit(encoding); | 1183 Emit(encoding); |
| 1184 } | 1184 } |
| 1185 | 1185 #endif |
| 1186 | 1186 |
| 1187 void Assembler::vmstat(Condition cond) { | 1187 void Assembler::vmstat(Condition cond) { |
| 1188 vmrs(APSR, cond); | 1188 vmrs(APSR, cond); |
| 1189 } | 1189 } |
| 1190 | 1190 |
| 1191 | 1191 |
| 1192 static inline int ShiftOfOperandSize(OperandSize size) { | 1192 static inline int ShiftOfOperandSize(OperandSize size) { |
| 1193 switch (size) { | 1193 switch (size) { |
| 1194 case kByte: | 1194 case kByte: |
| 1195 case kUnsignedByte: | 1195 case kUnsignedByte: |
| (...skipping 2492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3688 | 3688 |
| 3689 | 3689 |
| 3690 const char* Assembler::FpuRegisterName(FpuRegister reg) { | 3690 const char* Assembler::FpuRegisterName(FpuRegister reg) { |
| 3691 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters)); | 3691 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters)); |
| 3692 return fpu_reg_names[reg]; | 3692 return fpu_reg_names[reg]; |
| 3693 } | 3693 } |
| 3694 | 3694 |
| 3695 } // namespace dart | 3695 } // namespace dart |
| 3696 | 3696 |
| 3697 #endif // defined TARGET_ARCH_ARM | 3697 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |