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 #include "src/v8.h" | 7 #include "src/v8.h" |
8 | 8 |
9 #if V8_TARGET_ARCH_MIPS | 9 #if V8_TARGET_ARCH_MIPS |
10 | 10 |
(...skipping 1412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1423 | 1423 |
1424 void MacroAssembler::Mfhc1(Register rt, FPURegister fs) { | 1424 void MacroAssembler::Mfhc1(Register rt, FPURegister fs) { |
1425 if (IsFp64Mode()) { | 1425 if (IsFp64Mode()) { |
1426 mfhc1(rt, fs); | 1426 mfhc1(rt, fs); |
1427 } else { | 1427 } else { |
1428 mfc1(rt, fs.high()); | 1428 mfc1(rt, fs.high()); |
1429 } | 1429 } |
1430 } | 1430 } |
1431 | 1431 |
1432 | 1432 |
1433 void MacroAssembler::BranchFSize(SecondaryField sizeField, Label* target, | 1433 void MacroAssembler::BranchFCommon(SecondaryField sizeField, Label* target, |
1434 Label* nan, Condition cc, FPURegister cmp1, | 1434 Label* nan, Condition cc, FPURegister cmp1, |
1435 FPURegister cmp2, BranchDelaySlot bd) { | 1435 FPURegister cmp2, BranchDelaySlot bd) { |
1436 BlockTrampolinePoolScope block_trampoline_pool(this); | 1436 BlockTrampolinePoolScope block_trampoline_pool(this); |
1437 if (cc == al) { | 1437 if (cc == al) { |
1438 Branch(bd, target); | 1438 Branch(bd, target); |
1439 return; | 1439 return; |
1440 } | 1440 } |
1441 | 1441 |
1442 if (IsMipsArchVariant(kMips32r6)) { | 1442 if (IsMipsArchVariant(kMips32r6)) { |
1443 sizeField = sizeField == D ? L : W; | 1443 sizeField = sizeField == D ? L : W; |
1444 } | 1444 } |
1445 DCHECK(nan || target); | 1445 DCHECK(nan || target); |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1544 } | 1544 } |
1545 } | 1545 } |
1546 } | 1546 } |
1547 | 1547 |
1548 if (bd == PROTECT) { | 1548 if (bd == PROTECT) { |
1549 nop(); | 1549 nop(); |
1550 } | 1550 } |
1551 } | 1551 } |
1552 | 1552 |
1553 | 1553 |
1554 void MacroAssembler::BranchF(Label* target, Label* nan, Condition cc, | |
1555 FPURegister cmp1, FPURegister cmp2, | |
1556 BranchDelaySlot bd) { | |
1557 BranchFSize(D, target, nan, cc, cmp1, cmp2, bd); | |
1558 } | |
1559 | |
1560 | |
1561 void MacroAssembler::BranchFS(Label* target, Label* nan, Condition cc, | |
1562 FPURegister cmp1, FPURegister cmp2, | |
1563 BranchDelaySlot bd) { | |
1564 BranchFSize(S, target, nan, cc, cmp1, cmp2, bd); | |
1565 } | |
1566 | |
1567 | |
1568 void MacroAssembler::FmoveLow(FPURegister dst, Register src_low) { | 1554 void MacroAssembler::FmoveLow(FPURegister dst, Register src_low) { |
1569 if (IsFp64Mode()) { | 1555 if (IsFp64Mode()) { |
1570 DCHECK(!src_low.is(at)); | 1556 DCHECK(!src_low.is(at)); |
1571 mfhc1(at, dst); | 1557 mfhc1(at, dst); |
1572 mtc1(src_low, dst); | 1558 mtc1(src_low, dst); |
1573 mthc1(at, dst); | 1559 mthc1(at, dst); |
1574 } else { | 1560 } else { |
1575 mtc1(src_low, dst); | 1561 mtc1(src_low, dst); |
1576 } | 1562 } |
1577 } | 1563 } |
(...skipping 4501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6079 } | 6065 } |
6080 if (mag.shift > 0) sra(result, result, mag.shift); | 6066 if (mag.shift > 0) sra(result, result, mag.shift); |
6081 srl(at, dividend, 31); | 6067 srl(at, dividend, 31); |
6082 Addu(result, result, Operand(at)); | 6068 Addu(result, result, Operand(at)); |
6083 } | 6069 } |
6084 | 6070 |
6085 | 6071 |
6086 } } // namespace v8::internal | 6072 } } // namespace v8::internal |
6087 | 6073 |
6088 #endif // V8_TARGET_ARCH_MIPS | 6074 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |