Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index ff0706b7d1f96d3b337704a4892fcfbbe8edc3d6..92487371e32efa8f1caab4e3d6fb3bf8ce1e46ef 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -3088,6 +3088,11 @@ class DescriptorArray: public FixedArray { |
kDescriptorDetails; |
} |
+ // Conversion from descriptor number to array indices. |
+ static int ToKeyIndex(int descriptor_number) { |
+ return kFirstIndex + (descriptor_number * kDescriptorSize) + kDescriptorKey; |
+ } |
+ |
private: |
// An entry in a DescriptorArray, represented as an (array, index) pair. |
class Entry { |
@@ -3103,13 +3108,6 @@ class DescriptorArray: public FixedArray { |
int index_; |
}; |
- // Conversion from descriptor number to array indices. |
- static int ToKeyIndex(int descriptor_number) { |
- return kFirstIndex + |
- (descriptor_number * kDescriptorSize) + |
- kDescriptorKey; |
- } |
- |
static int ToValueIndex(int descriptor_number) { |
return kFirstIndex + |
(descriptor_number * kDescriptorSize) + |