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

Unified Diff: src/objects-inl.h

Issue 10387231: ClearNonLiveTransitions indepedent of ContentArray (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebase Created 8 years, 7 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.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 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();
}
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698