OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <limits.h> // For LONG_MIN, LONG_MAX. | 5 #include <limits.h> // For LONG_MIN, LONG_MAX. |
6 | 6 |
7 #if V8_TARGET_ARCH_ARM | 7 #if V8_TARGET_ARCH_ARM |
8 | 8 |
9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/base/division-by-constant.h" | 10 #include "src/base/division-by-constant.h" |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 } | 261 } |
262 } | 262 } |
263 | 263 |
264 | 264 |
265 void MacroAssembler::Move(Register dst, Register src, Condition cond) { | 265 void MacroAssembler::Move(Register dst, Register src, Condition cond) { |
266 if (!dst.is(src)) { | 266 if (!dst.is(src)) { |
267 mov(dst, src, LeaveCC, cond); | 267 mov(dst, src, LeaveCC, cond); |
268 } | 268 } |
269 } | 269 } |
270 | 270 |
| 271 void MacroAssembler::Move(SwVfpRegister dst, SwVfpRegister src) { |
| 272 if (!dst.is(src)) { |
| 273 vmov(dst, src); |
| 274 } |
| 275 } |
271 | 276 |
272 void MacroAssembler::Move(DwVfpRegister dst, DwVfpRegister src) { | 277 void MacroAssembler::Move(DwVfpRegister dst, DwVfpRegister src) { |
273 if (!dst.is(src)) { | 278 if (!dst.is(src)) { |
274 vmov(dst, src); | 279 vmov(dst, src); |
275 } | 280 } |
276 } | 281 } |
277 | 282 |
278 | |
279 void MacroAssembler::Mls(Register dst, Register src1, Register src2, | 283 void MacroAssembler::Mls(Register dst, Register src1, Register src2, |
280 Register srcA, Condition cond) { | 284 Register srcA, Condition cond) { |
281 if (CpuFeatures::IsSupported(ARMv7)) { | 285 if (CpuFeatures::IsSupported(ARMv7)) { |
282 CpuFeatureScope scope(this, ARMv7); | 286 CpuFeatureScope scope(this, ARMv7); |
283 mls(dst, src1, src2, srcA, cond); | 287 mls(dst, src1, src2, srcA, cond); |
284 } else { | 288 } else { |
285 DCHECK(!srcA.is(ip)); | 289 DCHECK(!srcA.is(ip)); |
286 mul(ip, src1, src2, LeaveCC, cond); | 290 mul(ip, src1, src2, LeaveCC, cond); |
287 sub(dst, srcA, ip, LeaveCC, cond); | 291 sub(dst, srcA, ip, LeaveCC, cond); |
288 } | 292 } |
(...skipping 3744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4033 } | 4037 } |
4034 } | 4038 } |
4035 if (mag.shift > 0) mov(result, Operand(result, ASR, mag.shift)); | 4039 if (mag.shift > 0) mov(result, Operand(result, ASR, mag.shift)); |
4036 add(result, result, Operand(dividend, LSR, 31)); | 4040 add(result, result, Operand(dividend, LSR, 31)); |
4037 } | 4041 } |
4038 | 4042 |
4039 } // namespace internal | 4043 } // namespace internal |
4040 } // namespace v8 | 4044 } // namespace v8 |
4041 | 4045 |
4042 #endif // V8_TARGET_ARCH_ARM | 4046 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |