Chromium Code Reviews| Index: src/objects-inl.h |
| =================================================================== |
| --- src/objects-inl.h (revision 1484) |
| +++ src/objects-inl.h (working copy) |
| @@ -52,6 +52,13 @@ |
| } |
| +PropertyDetails PropertyDetails::AsDeleted() { |
| + PropertyDetails d(DONT_ENUM, NORMAL); |
| + Smi* smi = Smi::FromInt(AsSmi()->value() | DeletedField::encode(1)); |
| + return PropertyDetails(smi); |
| +} |
| + |
| + |
| #define CAST_ACCESSOR(type) \ |
| type* type::cast(Object* object) { \ |
| ASSERT(object->Is##type()); \ |