| Index: src/objects.h
|
| ===================================================================
|
| --- src/objects.h (revision 5007)
|
| +++ src/objects.h (working copy)
|
| @@ -1516,6 +1516,10 @@
|
| // Casting.
|
| static inline JSObject* cast(Object* obj);
|
|
|
| + // Disalow further properties to be added to the object.
|
| + Object* PreventExtensions();
|
| +
|
| +
|
| // Dispatched behavior.
|
| void JSObjectIterateBody(int object_size, ObjectVisitor* v);
|
| void JSObjectShortPrint(StringStream* accumulator);
|
| @@ -2980,14 +2984,9 @@
|
| return ((1 << kHasInstanceCallHandler) & bit_field()) != 0;
|
| }
|
|
|
| - inline void set_is_extensible() {
|
| - set_bit_field2(bit_field2() | (1 << kIsExtensible));
|
| - }
|
| + inline void set_is_extensible(bool value);
|
| + inline bool is_extensible();
|
|
|
| - inline bool is_extensible() {
|
| - return ((1 << kIsExtensible) & bit_field2()) != 0;
|
| - }
|
| -
|
| // Tells whether the instance has fast elements.
|
| void set_has_fast_elements(bool value) {
|
| if (value) {
|
|
|