Index: src/v8globals.h |
diff --git a/src/v8globals.h b/src/v8globals.h |
index a23ca194aa61fd0983b58d4efdcf6fe06c20a36e..e07d409f094a77af209bdf1d5307416945f89f7f 100644 |
--- a/src/v8globals.h |
+++ b/src/v8globals.h |
@@ -507,6 +507,21 @@ enum CallKind { |
CALL_AS_FUNCTION |
}; |
+ |
+static const uint32_t kHoleNanUpper32 = 0x7FFFFFFF; |
+static const uint32_t kHoleNanLower32 = 0xFFFFFFFF; |
+static const uint32_t kCanonicalNonHoleNanUpper32 = 0x7FF10000; |
+static const uint32_t kCanonicalNonHoleNanLower32 = 0xFFFFFFFF; |
+static const uint32_t kNaNOrInfinityLowerBoundUpper32 = 0x7FF00000; |
+ |
+const uint64_t kHoleNanInt64 = |
+ (static_cast<uint64_t>(kHoleNanUpper32) << 32) | kHoleNanLower32; |
+const uint64_t kCanonicalNonHoleNanInt64 = |
+ (static_cast<uint64_t>(kCanonicalNonHoleNanUpper32) << 32) | |
+ kCanonicalNonHoleNanLower32; |
+const uint64_t kLastNonNaNInt64 = |
+ (static_cast<uint64_t>(kNaNOrInfinityLowerBoundUpper32) << 32); |
+ |
} } // namespace v8::internal |
#endif // V8_V8GLOBALS_H_ |