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 #include "vm/globals.h" | 5 #include "vm/globals.h" |
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 2155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2166 void Assembler::Ror(Register rd, Register rm, Register rs, Condition cond) { | 2166 void Assembler::Ror(Register rd, Register rm, Register rs, Condition cond) { |
2167 mov(rd, ShifterOperand(rm, ROR, rs), cond); | 2167 mov(rd, ShifterOperand(rm, ROR, rs), cond); |
2168 } | 2168 } |
2169 | 2169 |
2170 | 2170 |
2171 void Assembler::Rrx(Register rd, Register rm, Condition cond) { | 2171 void Assembler::Rrx(Register rd, Register rm, Condition cond) { |
2172 mov(rd, ShifterOperand(rm, ROR, 0), cond); | 2172 mov(rd, ShifterOperand(rm, ROR, 0), cond); |
2173 } | 2173 } |
2174 | 2174 |
2175 | 2175 |
2176 void Assembler::SignFill(Register rd, Register rm) { | 2176 void Assembler::SignFill(Register rd, Register rm, Condition cond) { |
2177 Asr(rd, rm, 31); | 2177 Asr(rd, rm, 31, cond); |
2178 } | 2178 } |
2179 | 2179 |
2180 | 2180 |
2181 void Assembler::Vreciprocalqs(QRegister qd, QRegister qm) { | 2181 void Assembler::Vreciprocalqs(QRegister qd, QRegister qm) { |
2182 ASSERT(qm != QTMP); | 2182 ASSERT(qm != QTMP); |
2183 ASSERT(qd != QTMP); | 2183 ASSERT(qd != QTMP); |
2184 | 2184 |
2185 // Reciprocal estimate. | 2185 // Reciprocal estimate. |
2186 vrecpeqs(qd, qm); | 2186 vrecpeqs(qd, qm); |
2187 // 2 Newton-Raphson steps. | 2187 // 2 Newton-Raphson steps. |
(...skipping 964 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3152 | 3152 |
3153 | 3153 |
3154 const char* Assembler::FpuRegisterName(FpuRegister reg) { | 3154 const char* Assembler::FpuRegisterName(FpuRegister reg) { |
3155 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters)); | 3155 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters)); |
3156 return fpu_reg_names[reg]; | 3156 return fpu_reg_names[reg]; |
3157 } | 3157 } |
3158 | 3158 |
3159 } // namespace dart | 3159 } // namespace dart |
3160 | 3160 |
3161 #endif // defined TARGET_ARCH_ARM | 3161 #endif // defined TARGET_ARCH_ARM |
OLD | NEW |