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

Unified Diff: src/property.h

Issue 10695120: Ensure that all descriptors have a valid enumeration index, and replace NextEnumIndex with LastAdde… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comment. 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') | src/transitions-inl.h » ('j') | 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 720028008dfb4bfc6681737bc1c1c16cc2cc454a..f783dc2e9a03dd6967fa7bdca4759df88cfb1066 100644
--- a/src/property.h
+++ b/src/property.h
@@ -92,7 +92,7 @@ class Descriptor BASE_EMBEDDED {
Object* value,
PropertyAttributes attributes,
PropertyType type,
- int index = 0)
+ int index)
: key_(key),
value_(value),
details_(attributes, type, index) { }
@@ -106,7 +106,7 @@ class FieldDescriptor: public Descriptor {
FieldDescriptor(String* key,
int field_index,
PropertyAttributes attributes,
- int index = 0)
+ int index)
: Descriptor(key, Smi::FromInt(field_index), attributes, FIELD, index) {}
};
@@ -116,7 +116,7 @@ class ConstantFunctionDescriptor: public Descriptor {
ConstantFunctionDescriptor(String* key,
JSFunction* function,
PropertyAttributes attributes,
- int index = 0)
+ int index)
: Descriptor(key, function, attributes, CONSTANT_FUNCTION, index) {}
};
@@ -126,7 +126,7 @@ class CallbacksDescriptor: public Descriptor {
CallbacksDescriptor(String* key,
Object* foreign,
PropertyAttributes attributes,
- int index = 0)
+ int index)
: Descriptor(key, foreign, attributes, CALLBACKS, index) {}
};
« no previous file with comments | « src/objects-inl.h ('k') | src/transitions-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698