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

Unified Diff: src/objects-inl.h

Issue 10411067: TraversableMap only dependent on DescriptorArray (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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
« src/objects.cc ('K') | « 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 544443866efc52a82fdb20f9b84db8540c1334fb..93cb0fc809c5d6cd83c6adb5346b14cd926fa8f9 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -1934,13 +1934,28 @@ Object* DescriptorArray::GetValue(int descriptor_number) {
return GetContentArray()->get(ToValueIndex(descriptor_number));
}
-
PropertyDetails DescriptorArray::GetDetails(int descriptor_number) {
ASSERT(descriptor_number < number_of_descriptors());
Object* details = GetContentArray()->get(ToDetailsIndex(descriptor_number));
return PropertyDetails(Smi::cast(details));
}
+FixedArray* DescriptorArray::RawGetContentArray() {
+ Object* array = this->get(DescriptorArray::kContentArrayIndex);
+ return static_cast<FixedArray*>(array);
+}
+
Michael Starzinger 2012/05/24 14:02:25 Two empty lines between top-level methods.
Toon Verwaest 2012/05/25 11:36:46 Done.
+Object* DescriptorArray::RawGetValue(int descriptor_number) {
+ ASSERT(descriptor_number < number_of_descriptors());
+ return RawGetContentArray()->get(ToValueIndex(descriptor_number));
+}
+
+PropertyDetails DescriptorArray::RawGetDetails(int descriptor_number) {
+ ASSERT(descriptor_number < number_of_descriptors());
+ Object* details = RawGetContentArray()->get(ToDetailsIndex(descriptor_number));
Michael Starzinger 2012/05/24 14:02:25 More than 80 characters.
Toon Verwaest 2012/05/25 11:36:46 Done.
+ return PropertyDetails(Smi::cast(details));
+}
+
PropertyType DescriptorArray::GetType(int descriptor_number) {
return GetDetails(descriptor_number).type();
« src/objects.cc ('K') | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698