Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(798)

Unified Diff: src/objects-inl.h

Issue 10559032: Implementing weak referencing elements transition maps. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/objects-debug.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index 8a8f5d9b5d4ee8988dfc391d991ec073f97192a8..93e0b39ddd40a19a026f206d057053f32a303105 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -1958,6 +1958,11 @@ void DescriptorArray::set_elements_transition_map(
}
+void DescriptorArray::ClearElementsTransition() {
+ WRITE_FIELD(this, kTransitionsOffset, Smi::FromInt(0));
+}
+
+
Object** DescriptorArray::GetKeySlot(int descriptor_number) {
ASSERT(descriptor_number < number_of_descriptors());
return HeapObject::RawField(
« no previous file with comments | « src/objects-debug.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698