Index: src/transitions-inl.h |
diff --git a/src/transitions-inl.h b/src/transitions-inl.h |
index 17c42edce2e50daf51a7a9c212cf33e4cde30807..95a400e52ac8071699b7e305f4360ed3ce02e404 100644 |
--- a/src/transitions-inl.h |
+++ b/src/transitions-inl.h |
@@ -84,27 +84,20 @@ void TransitionArray::set_elements_transition(Map* transition_map, |
} |
-DescriptorArray* TransitionArray::descriptors() { |
- return DescriptorArray::cast(descriptors_pointer()->value()); |
-} |
- |
- |
-void TransitionArray::set_descriptors(DescriptorArray* descriptors) { |
- ASSERT(!this->descriptors()->IsDescriptorArray() || |
- descriptors->number_of_descriptors() == 0 || |
- descriptors->HasEnumCache() || |
- !this->descriptors()->HasEnumCache()); |
- descriptors_pointer()->set_value(descriptors); |
+Object** TransitionArray::GetDescriptorsSlot() { |
+ return HeapObject::RawField(reinterpret_cast<HeapObject*>(this), |
+ kDescriptorsOffset); |
} |
-JSGlobalPropertyCell* TransitionArray::descriptors_pointer() { |
- return JSGlobalPropertyCell::cast(get(kDescriptorsPointerIndex)); |
+DescriptorArray* TransitionArray::descriptors() { |
+ return DescriptorArray::cast(get(kDescriptorsIndex)); |
} |
-void TransitionArray::set_descriptors_pointer(JSGlobalPropertyCell* pointer) { |
- set(kDescriptorsPointerIndex, pointer); |
+void TransitionArray::set_descriptors(DescriptorArray* descriptors) { |
+ ASSERT(descriptors->IsDescriptorArray()); |
+ set(kDescriptorsIndex, descriptors); |
} |