Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/mips64/macro-assembler-mips64.cc

Issue 1052653003: MIPS: Rename BranchF functions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/mips64/macro-assembler-mips64.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_MIPS64 9 #if V8_TARGET_ARCH_MIPS64
10 10
(...skipping 1611 matching lines...) Expand 10 before | Expand all | Expand 10 after
1622 madd_d(fd, fr, fs, ft); 1622 madd_d(fd, fr, fs, ft);
1623 } else { 1623 } else {
1624 // Can not change source regs's value. 1624 // Can not change source regs's value.
1625 DCHECK(!fr.is(scratch) && !fs.is(scratch) && !ft.is(scratch)); 1625 DCHECK(!fr.is(scratch) && !fs.is(scratch) && !ft.is(scratch));
1626 mul_d(scratch, fs, ft); 1626 mul_d(scratch, fs, ft);
1627 add_d(fd, fr, scratch); 1627 add_d(fd, fr, scratch);
1628 } 1628 }
1629 } 1629 }
1630 1630
1631 1631
1632 void MacroAssembler::BranchFSize(SecondaryField sizeField, Label* target, 1632 void MacroAssembler::BranchFCommon(SecondaryField sizeField, Label* target,
1633 Label* nan, Condition cc, FPURegister cmp1, 1633 Label* nan, Condition cc, FPURegister cmp1,
1634 FPURegister cmp2, BranchDelaySlot bd) { 1634 FPURegister cmp2, BranchDelaySlot bd) {
1635 BlockTrampolinePoolScope block_trampoline_pool(this); 1635 BlockTrampolinePoolScope block_trampoline_pool(this);
1636 if (cc == al) { 1636 if (cc == al) {
1637 Branch(bd, target); 1637 Branch(bd, target);
1638 return; 1638 return;
1639 } 1639 }
1640 1640
1641 if (kArchVariant == kMips64r6) { 1641 if (kArchVariant == kMips64r6) {
1642 sizeField = sizeField == D ? L : W; 1642 sizeField = sizeField == D ? L : W;
1643 } 1643 }
1644 DCHECK(nan || target); 1644 DCHECK(nan || target);
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
1742 } 1742 }
1743 } 1743 }
1744 } 1744 }
1745 1745
1746 if (bd == PROTECT) { 1746 if (bd == PROTECT) {
1747 nop(); 1747 nop();
1748 } 1748 }
1749 } 1749 }
1750 1750
1751 1751
1752 void MacroAssembler::BranchF(Label* target, Label* nan, Condition cc,
1753 FPURegister cmp1, FPURegister cmp2,
1754 BranchDelaySlot bd) {
1755 BranchFSize(D, target, nan, cc, cmp1, cmp2, bd);
1756 }
1757
1758
1759 void MacroAssembler::BranchFS(Label* target, Label* nan, Condition cc,
1760 FPURegister cmp1, FPURegister cmp2,
1761 BranchDelaySlot bd) {
1762 BranchFSize(S, target, nan, cc, cmp1, cmp2, bd);
1763 }
1764
1765
1766 void MacroAssembler::FmoveLow(FPURegister dst, Register src_low) { 1752 void MacroAssembler::FmoveLow(FPURegister dst, Register src_low) {
1767 DCHECK(!src_low.is(at)); 1753 DCHECK(!src_low.is(at));
1768 mfhc1(at, dst); 1754 mfhc1(at, dst);
1769 mtc1(src_low, dst); 1755 mtc1(src_low, dst);
1770 mthc1(at, dst); 1756 mthc1(at, dst);
1771 } 1757 }
1772 1758
1773 1759
1774 void MacroAssembler::Move(FPURegister dst, float imm) { 1760 void MacroAssembler::Move(FPURegister dst, float imm) {
1775 li(at, Operand(bit_cast<int32_t>(imm))); 1761 li(at, Operand(bit_cast<int32_t>(imm)));
(...skipping 4368 matching lines...) Expand 10 before | Expand all | Expand 10 after
6144 } 6130 }
6145 if (mag.shift > 0) sra(result, result, mag.shift); 6131 if (mag.shift > 0) sra(result, result, mag.shift);
6146 srl(at, dividend, 31); 6132 srl(at, dividend, 31);
6147 Addu(result, result, Operand(at)); 6133 Addu(result, result, Operand(at));
6148 } 6134 }
6149 6135
6150 6136
6151 } } // namespace v8::internal 6137 } } // namespace v8::internal
6152 6138
6153 #endif // V8_TARGET_ARCH_MIPS64 6139 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips64/macro-assembler-mips64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698