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

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: Addressed danno's comments Created 7 years, 4 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 311ad434de8516dff174558f15dfe8ae45ad8179..2534e7112f29faa495336a5c4e3eb2a0891cbffd 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -5417,7 +5417,15 @@ template <> struct SmiTagging<8> {
}
};
+#if V8_USE_31_BIT_SMI_VALUE
+typedef SmiTagging<4> PlatformSmiTagging;
+V8_INLINE(static bool SmiValuesAre31Bits()) { return true; }
+V8_INLINE(static bool SmiValuesAre32Bits()) { return false; }
+#else
typedef SmiTagging<kApiPointerSize> PlatformSmiTagging;
+V8_INLINE(static bool SmiValuesAre31Bits()) { return (kApiPointerSize == 4); }
+V8_INLINE(static bool SmiValuesAre32Bits()) { return (kApiPointerSize == 8); }
+#endif
const int kSmiShiftSize = PlatformSmiTagging::kSmiShiftSize;
const int kSmiValueSize = PlatformSmiTagging::kSmiValueSize;
« no previous file with comments | « build/features.gypi ('k') | src/hydrogen-instructions.h » ('j') | src/x64/full-codegen-x64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698