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

Unified Diff: src/property.h

Issue 10692185: Couple the enumeration index of a property to the size of the descriptor array where it first appea… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Use the enumeration index of the LastAdded descriptor for appending. Created 8 years, 5 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-inl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/property.h
diff --git a/src/property.h b/src/property.h
index f783dc2e9a03dd6967fa7bdca4759df88cfb1066..4ff0b2b6658d796d7749f617796ef92f4debf622 100644
--- a/src/property.h
+++ b/src/property.h
@@ -106,7 +106,7 @@ class FieldDescriptor: public Descriptor {
FieldDescriptor(String* key,
int field_index,
PropertyAttributes attributes,
- int index)
+ int index = 0)
: Descriptor(key, Smi::FromInt(field_index), attributes, FIELD, index) {}
};
@@ -126,7 +126,7 @@ class CallbacksDescriptor: public Descriptor {
CallbacksDescriptor(String* key,
Object* foreign,
PropertyAttributes attributes,
- int index)
+ int index = 0)
: Descriptor(key, foreign, attributes, CALLBACKS, index) {}
};
« no previous file with comments | « src/objects-inl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698