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

Unified Diff: src/v8globals.h

Issue 7307030: Implement ICs for FastDoubleArray loads and stores (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: review feedback Created 9 years, 5 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
Index: src/v8globals.h
diff --git a/src/v8globals.h b/src/v8globals.h
index a23ca194aa61fd0983b58d4efdcf6fe06c20a36e..0e5390e5df881ade9664b41722baa0875ef92a17 100644
--- a/src/v8globals.h
+++ b/src/v8globals.h
@@ -507,6 +507,18 @@ 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;
+
+const uint64_t kHoleNanInt64 =
+ (static_cast<uint64_t>(kHoleNanUpper32) << 32) | kHoleNanLower32;
+const uint64_t kCanonicalNonHoleNanInt64 =
+ (static_cast<uint64_t>(kCanonicalNonHoleNanUpper32) << 32) |
+ kCanonicalNonHoleNanLower32;
+
} } // namespace v8::internal
#endif // V8_V8GLOBALS_H_
« src/ia32/stub-cache-ia32.cc ('K') | « src/stub-cache.h ('k') | src/x64/stub-cache-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698