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

Unified Diff: src/mips/constants-mips.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/compiler/mips64/instruction-selector-mips64.cc ('k') | src/mips/macro-assembler-mips.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/mips/constants-mips.h
diff --git a/src/mips/constants-mips.h b/src/mips/constants-mips.h
index f50a84927af4eeab18aa718f4bfa0023faa1a9ee..211ddb6d9f0dc3c45265f80d5196c7f77fef743d 100644
--- a/src/mips/constants-mips.h
+++ b/src/mips/constants-mips.h
@@ -196,6 +196,22 @@ const int32_t kPrefHintStoreRetained = 7;
const int32_t kPrefHintWritebackInvalidate = 25;
const int32_t kPrefHintPrepareForStore = 30;
+class FloatConstants {
+ public:
+ static const uint32_t kExponentMask = 0x7f800000;
+ static const uint32_t kMantissaMask = 0x007fffff;
+ static const uint32_t kNanTypeMask = 0x00400000;
+ static const uint32_t kSignMask = 0x80000000;
+};
+
+class DoubleConstants {
+ public:
+ static const uint32_t kExponentMask = 0x7ff00000;
+ static const uint32_t kMantissaMask = 0x000fffff;
+ static const uint32_t kNanTypeMask = 0x00080000;
+ static const uint32_t kSignMask = 0x80000000;
+};
+
// Helper functions for converting between register numbers and names.
class Registers {
public:
« no previous file with comments | « src/compiler/mips64/instruction-selector-mips64.cc ('k') | src/mips/macro-assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698