Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index a2ff1ecde645e68da95807872fa3f578243df26b..97c0dc4cd0d3d733d6af2bf35bbd035d59860c22 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -3092,6 +3092,11 @@ class DescriptorArray: public FixedArray { |
return kFirstIndex + (descriptor_number * kDescriptorSize) + kDescriptorKey; |
} |
+ static int ToValueIndex(int descriptor_number) { |
+ return kFirstIndex + (descriptor_number * kDescriptorSize) + |
+ kDescriptorValue; |
+ } |
+ |
private: |
// An entry in a DescriptorArray, represented as an (array, index) pair. |
class Entry { |
@@ -3107,12 +3112,6 @@ class DescriptorArray: public FixedArray { |
int index_; |
}; |
- static int ToValueIndex(int descriptor_number) { |
- return kFirstIndex + |
- (descriptor_number * kDescriptorSize) + |
- kDescriptorValue; |
- } |
- |
// Transfer a complete descriptor from the src descriptor array to this |
// descriptor array. |
void CopyFrom(int index, DescriptorArray* src); |