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); |