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

Unified Diff: src/objects.h

Issue 113023: X64: Made hash computation in serializer accept 64-bit pointers. (Closed)
Patch Set: Created 11 years, 7 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 | « src/api.cc ('k') | src/objects-inl.h » ('j') | src/objects-inl.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index b5b7cbe4f4abbeb60100f802b93c3bfc364e66b9..19d748b2664162cc6db6e4efaea2085b6230430f 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -782,9 +782,13 @@ class Smi: public Object {
// Convert a value to a Smi object.
static inline Smi* FromInt(int value);
+ static inline Smi* FromIntptr(intptr_t value);
+
// Returns whether value can be represented in a Smi.
static inline bool IsValid(int value);
+ static inline bool IsPtrValid(intptr_t);
William Hesse 2009/05/06 07:42:37 Perhaps this should be IsIntptrValid, and we may o
Lasse Reichstein 2009/05/12 08:16:38 Done.
+
// Casting.
static inline Smi* cast(Object* object);
« no previous file with comments | « src/api.cc ('k') | src/objects-inl.h » ('j') | src/objects-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698