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

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

Issue 980073003: MIPS: [turbofan] Support for %_DoubleHi, %_DoubleLo and %_ConstructDouble. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix shifts. Created 5 years, 9 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/mips/macro-assembler-mips.h ('k') | src/mips64/macro-assembler-mips64.h » ('j') | 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_MIPS 9 #if V8_TARGET_ARCH_MIPS
10 10
(...skipping 1531 matching lines...) Expand 10 before | Expand all | Expand 10 after
1542 } 1542 }
1543 } 1543 }
1544 } 1544 }
1545 1545
1546 if (bd == PROTECT) { 1546 if (bd == PROTECT) {
1547 nop(); 1547 nop();
1548 } 1548 }
1549 } 1549 }
1550 1550
1551 1551
1552 void MacroAssembler::FmoveLow(FPURegister dst, Register src_low) {
1553 if (IsFp64Mode()) {
1554 DCHECK(!src_low.is(at));
1555 mfhc1(at, dst);
1556 mtc1(src_low, dst);
1557 mthc1(at, dst);
1558 } else {
1559 mtc1(src_low, dst);
1560 }
1561 }
1562
1563
1552 void MacroAssembler::Move(FPURegister dst, float imm) { 1564 void MacroAssembler::Move(FPURegister dst, float imm) {
1553 li(at, Operand(bit_cast<int32_t>(imm))); 1565 li(at, Operand(bit_cast<int32_t>(imm)));
1554 mtc1(at, dst); 1566 mtc1(at, dst);
1555 } 1567 }
1556 1568
1557 1569
1558 void MacroAssembler::Move(FPURegister dst, double imm) { 1570 void MacroAssembler::Move(FPURegister dst, double imm) {
1559 static const DoubleRepresentation minus_zero(-0.0); 1571 static const DoubleRepresentation minus_zero(-0.0);
1560 static const DoubleRepresentation zero(0.0); 1572 static const DoubleRepresentation zero(0.0);
1561 DoubleRepresentation value_rep(imm); 1573 DoubleRepresentation value_rep(imm);
(...skipping 4514 matching lines...) Expand 10 before | Expand all | Expand 10 after
6076 } 6088 }
6077 if (mag.shift > 0) sra(result, result, mag.shift); 6089 if (mag.shift > 0) sra(result, result, mag.shift);
6078 srl(at, dividend, 31); 6090 srl(at, dividend, 31);
6079 Addu(result, result, Operand(at)); 6091 Addu(result, result, Operand(at));
6080 } 6092 }
6081 6093
6082 6094
6083 } } // namespace v8::internal 6095 } } // namespace v8::internal
6084 6096
6085 #endif // V8_TARGET_ARCH_MIPS 6097 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/macro-assembler-mips.h ('k') | src/mips64/macro-assembler-mips64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698