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

Unified Diff: include/v8.h

Issue 22350005: Introduce SmiValuesAre31Bits and SmiValuesAre32Bits global predicate functions (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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
« no previous file with comments | « no previous file | src/hydrogen-instructions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8.h
diff --git a/include/v8.h b/include/v8.h
index 24ee60f1bb4dcec1934b5d1a486f41bc734dd2f0..ee5aff685f91d68ccf1c1a3734fb85bee0bb9eac 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -5450,6 +5450,9 @@ template <> struct SmiTagging<8> {
};
typedef SmiTagging<kApiPointerSize> PlatformSmiTagging;
+V8_INLINE(static bool SmiValuesAre31Bits()) { return kApiPointerSize == 4; }
+V8_INLINE(static bool SmiValuesAre32Bits()) { return kApiPointerSize == 8; }
danno 2013/08/13 09:41:36 Please put this after "const int kSmiValueSize..."
haitao.feng 2013/08/13 10:37:53 Done.
+
const int kSmiShiftSize = PlatformSmiTagging::kSmiShiftSize;
const int kSmiValueSize = PlatformSmiTagging::kSmiValueSize;
« no previous file with comments | « no previous file | src/hydrogen-instructions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698