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

Unified Diff: src/mips64/constants-mips64.h

Issue 2019693002: MIPS: Fix '[turbofan] Introduce new operators Float32SubPreserveNan and Float64SubPreserveNan'. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix instruction selector mips64. Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/mips/macro-assembler-mips.cc ('k') | src/mips64/macro-assembler-mips64.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/mips64/constants-mips64.h
diff --git a/src/mips64/constants-mips64.h b/src/mips64/constants-mips64.h
index 82724201d9fea0f4370dcb8cce8d58abe7b5a221..60754210b84c8deb8caad9625eff7df38572a95d 100644
--- a/src/mips64/constants-mips64.h
+++ b/src/mips64/constants-mips64.h
@@ -159,6 +159,22 @@ const int32_t kPrefHintStoreRetained = 7;
const int32_t kPrefHintWritebackInvalidate = 25;
const int32_t kPrefHintPrepareForStore = 30;
+class FloatConstants {
+ public:
+ static const uint64_t kExponentMask = 0x7f800000;
+ static const uint64_t kMantissaMask = 0x007fffff;
+ static const uint64_t kNanTypeMask = 0x00400000;
+ static const uint64_t kSignMask = 0x80000000;
+};
+
+class DoubleConstants {
+ public:
+ static const uint64_t kExponentMask = 0x7ff0000000000000;
+ static const uint64_t kMantissaMask = 0x000fffffffffffff;
+ static const uint64_t kNanTypeMask = 0x0008000000000000;
+ static const uint64_t kSignMask = 0x8000000000000000;
+};
+
// Helper functions for converting between register numbers and names.
class Registers {
public:
« no previous file with comments | « src/mips/macro-assembler-mips.cc ('k') | src/mips64/macro-assembler-mips64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698