Index: bleeding_edge/src/objects.h |
=================================================================== |
--- bleeding_edge/src/objects.h (revision 3473) |
+++ bleeding_edge/src/objects.h (working copy) |
@@ -1662,6 +1662,7 @@ |
public: |
// Is this the singleton empty_descriptor_array? |
inline bool IsEmpty(); |
+ |
// Returns the number of descriptors in the array. |
int number_of_descriptors() { |
return IsEmpty() ? 0 : length() - kFirstIndex; |
@@ -1801,13 +1802,15 @@ |
static int ToKeyIndex(int descriptor_number) { |
return descriptor_number+kFirstIndex; |
} |
- static int ToValueIndex(int descriptor_number) { |
- return descriptor_number << 1; |
- } |
+ |
static int ToDetailsIndex(int descriptor_number) { |
return( descriptor_number << 1) + 1; |
Mads Ager (chromium)
2009/12/16 16:13:24
Not your code, but move parenthesis.
|
} |
+ static int ToValueIndex(int descriptor_number) { |
+ return descriptor_number << 1; |
+ } |
+ |
bool is_null_descriptor(int descriptor_number) { |
return PropertyDetails(GetDetails(descriptor_number)).type() == |
NULL_DESCRIPTOR; |