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

Unified Diff: include/v8.h

Issue 21014003: Optionally use 31-bits SMI value for 64-bit system (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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: include/v8.h
diff --git a/include/v8.h b/include/v8.h
index 36077402a287046e84cf5f4dc8c1d6bd120a3ab3..01b9124cfacbdda198b47f03be45237739794ece 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -5347,6 +5347,7 @@ template <> struct SmiTagging<4> {
}
};
+#if !V8_USE_31_BITS_SMI_VALUE
danno 2013/07/29 13:02:23 I also see no reason to put the SmiTagging<8> defi
haitao.feng 2013/07/30 08:56:43 Done.
// Smi constants for 64-bit systems.
template <> struct SmiTagging<8> {
static const int kSmiShiftSize = 31;
@@ -5366,6 +5367,10 @@ template <> struct SmiTagging<8> {
};
typedef SmiTagging<kApiPointerSize> PlatformSmiTagging;
+#else
+typedef SmiTagging<4> PlatformSmiTagging;
+#endif
+
const int kSmiShiftSize = PlatformSmiTagging::kSmiShiftSize;
const int kSmiValueSize = PlatformSmiTagging::kSmiValueSize;

Powered by Google App Engine
This is Rietveld 408576698