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

Unified Diff: src/v8globals.h

Issue 61623004: Add signed/unsigned 8-bit and 16-bit Representations (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: White space Created 7 years, 1 month 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 4910cb7358de7e019a41010126fceb651b75a5f1..4f05ce7871115afa0793c81fc51917eb0f893fd6 100644
--- a/src/v8globals.h
+++ b/src/v8globals.h
@@ -575,6 +575,15 @@ enum MinusZeroMode {
FAIL_ON_MINUS_ZERO
};
+const int kMaxInteger8 = (1 << 7) - 1;
+const int kMinInteger8 = -(1 << 7);
+const int kMaxUInteger8 = (1 << 8) - 1;
+const int kMinUInteger8 = 0;
+const int kMaxInteger16 = (1 << 15) - 1;
+const int kMinInteger16 = -(1 << 15);
+const int kMaxUInteger16 = (1 << 16) - 1;
+const int kMinUInteger16 = 0;
+
Yang 2013/11/08 08:45:59 I actually had globals.h in mind, not v8globals. W
danno 2013/11/08 10:49:12 Done.
} } // namespace v8::internal
#endif // V8_V8GLOBALS_H_

Powered by Google App Engine
This is Rietveld 408576698