Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index cffad132a96765722dfb14f9f3b93d3363563157..e9145b1c69dde6052321824fdea7bd8108b65b0b 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -1943,6 +1943,13 @@ Object* DescriptorArray::GetValue(int descriptor_number) { |
} |
+void DescriptorArray::SetNullValueUnchecked(int descriptor_number, Heap* heap) { |
+ ASSERT(descriptor_number < number_of_descriptors()); |
+ ASSERT(!HEAP->InNewSpace(heap->null_value())); |
Michael Starzinger
2012/06/01 09:00:33
That assertion is already in FixedArray::set_null_
|
+ GetContentArray()->set_null_unchecked(heap, ToValueIndex(descriptor_number)); |
+} |
+ |
+ |
PropertyDetails DescriptorArray::GetDetails(int descriptor_number) { |
ASSERT(descriptor_number < number_of_descriptors()); |
Object* details = GetContentArray()->get(ToDetailsIndex(descriptor_number)); |
@@ -1950,6 +1957,12 @@ PropertyDetails DescriptorArray::GetDetails(int descriptor_number) { |
} |
+void DescriptorArray::SetDetailsUnchecked(int descriptor_number, Smi* value) { |
+ ASSERT(descriptor_number < number_of_descriptors()); |
+ GetContentArray()->set_unchecked(ToDetailsIndex(descriptor_number), value); |
+} |
+ |
+ |
PropertyType DescriptorArray::GetType(int descriptor_number) { |
return GetDetails(descriptor_number).type(); |
} |