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

Side by Side Diff: src/x64/assembler-x64.h

Issue 6835021: X64: Use roundsd for DoMathFloor. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed review comments Created 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/x64/assembler-x64.cc » ('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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 1318 matching lines...) Expand 10 before | Expand all | Expand 10 after
1329 void divsd(XMMRegister dst, XMMRegister src); 1329 void divsd(XMMRegister dst, XMMRegister src);
1330 1330
1331 void andpd(XMMRegister dst, XMMRegister src); 1331 void andpd(XMMRegister dst, XMMRegister src);
1332 void orpd(XMMRegister dst, XMMRegister src); 1332 void orpd(XMMRegister dst, XMMRegister src);
1333 void xorpd(XMMRegister dst, XMMRegister src); 1333 void xorpd(XMMRegister dst, XMMRegister src);
1334 void sqrtsd(XMMRegister dst, XMMRegister src); 1334 void sqrtsd(XMMRegister dst, XMMRegister src);
1335 1335
1336 void ucomisd(XMMRegister dst, XMMRegister src); 1336 void ucomisd(XMMRegister dst, XMMRegister src);
1337 void ucomisd(XMMRegister dst, const Operand& src); 1337 void ucomisd(XMMRegister dst, const Operand& src);
1338 1338
1339 enum RoundingMode {
1340 kRoundToNearest = 0x0,
1341 kRoundDown = 0x1,
1342 kRoundUp = 0x2,
1343 kRoundToZero = 0x3
1344 };
1345
1346 void roundsd(XMMRegister dst, XMMRegister src, RoundingMode mode);
1347
1339 void movmskpd(Register dst, XMMRegister src); 1348 void movmskpd(Register dst, XMMRegister src);
1340 1349
1341 // The first argument is the reg field, the second argument is the r/m field. 1350 // The first argument is the reg field, the second argument is the r/m field.
1342 void emit_sse_operand(XMMRegister dst, XMMRegister src); 1351 void emit_sse_operand(XMMRegister dst, XMMRegister src);
1343 void emit_sse_operand(XMMRegister reg, const Operand& adr); 1352 void emit_sse_operand(XMMRegister reg, const Operand& adr);
1344 void emit_sse_operand(XMMRegister dst, Register src); 1353 void emit_sse_operand(XMMRegister dst, Register src);
1345 void emit_sse_operand(Register dst, XMMRegister src); 1354 void emit_sse_operand(Register dst, XMMRegister src);
1346 1355
1347 // Debugging 1356 // Debugging
1348 void Print(); 1357 void Print();
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
1621 private: 1630 private:
1622 Assembler* assembler_; 1631 Assembler* assembler_;
1623 #ifdef DEBUG 1632 #ifdef DEBUG
1624 int space_before_; 1633 int space_before_;
1625 #endif 1634 #endif
1626 }; 1635 };
1627 1636
1628 } } // namespace v8::internal 1637 } } // namespace v8::internal
1629 1638
1630 #endif // V8_X64_ASSEMBLER_X64_H_ 1639 #endif // V8_X64_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « no previous file | src/x64/assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698