| Index: src/objects.h
|
| ===================================================================
|
| --- src/objects.h (revision 3935)
|
| +++ src/objects.h (working copy)
|
| @@ -179,7 +179,7 @@
|
| class TypeField: public BitField<PropertyType, 0, 3> {};
|
| class AttributesField: public BitField<PropertyAttributes, 3, 3> {};
|
| class DeletedField: public BitField<uint32_t, 6, 1> {};
|
| - class IndexField: public BitField<uint32_t, 7, 31-7> {};
|
| + class IndexField: public BitField<uint32_t, 7, 32-7> {};
|
|
|
| static const int kInitialIndex = 1;
|
| private:
|
| @@ -1161,6 +1161,7 @@
|
| inline bool HasExternalIntElements();
|
| inline bool HasExternalUnsignedIntElements();
|
| inline bool HasExternalFloatElements();
|
| + inline bool AllowsSetElementsLength();
|
| inline NumberDictionary* element_dictionary(); // Gets slow elements.
|
|
|
| // Collects elements starting at index 0.
|
| @@ -1301,6 +1302,9 @@
|
| // Return the object's prototype (might be Heap::null_value()).
|
| inline Object* GetPrototype();
|
|
|
| + // Set the object's prototype (only JSObject and null are allowed).
|
| + Object* SetPrototype(Object* value, bool skip_hidden_prototypes);
|
| +
|
| // Tells whether the index'th element is present.
|
| inline bool HasElement(uint32_t index);
|
| bool HasElementWithReceiver(JSObject* receiver, uint32_t index);
|
| @@ -3200,6 +3204,10 @@
|
| inline bool try_full_codegen();
|
| inline void set_try_full_codegen(bool flag);
|
|
|
| + // Check whether a inlined constructor can be generated with the given
|
| + // prototype.
|
| + bool CanGenerateInlineConstructor(Object* prototype);
|
| +
|
| // For functions which only contains this property assignments this provides
|
| // access to the names for the properties assigned.
|
| DECL_ACCESSORS(this_property_assignments, Object)
|
|
|