Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 5a5aca2ad157bcf11025bda3ebea3f37c50c60e2..e9ecffd540ef17c5176da5a01da0bc6b864ec582 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -3086,6 +3086,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 { |
@@ -3101,13 +3106,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) + |