Chromium Code Reviews| Index: src/objects.h |
| diff --git a/src/objects.h b/src/objects.h |
| index c8654e65d33608698376fb53d828c92226b4727a..9d39157ec2c329f236e43a3bb84a2e01e561e696 100644 |
| --- a/src/objects.h |
| +++ b/src/objects.h |
| @@ -7398,6 +7398,8 @@ class Name: public HeapObject { |
| // ES6 symbols. |
| class Symbol: public Name { |
| public: |
| + DECL_ACCESSORS(name, Object) |
|
Michael Starzinger
2013/03/22 12:03:25
Maybe it might make sense to add a short one-line
rossberg
2013/03/22 13:02:42
Done.
|
| + |
| // Casting. |
| static inline Symbol* cast(Object* obj); |
| @@ -7406,7 +7408,11 @@ class Symbol: public Name { |
| DECLARE_VERIFIER(Symbol) |
| // Layout description. |
| - static const int kSize = Name::kSize; |
| + static const int kNameOffset = Name::kSize; |
| + static const int kSize = kNameOffset + kPointerSize; |
| + |
| + typedef FixedBodyDescriptor<kNameOffset, kNameOffset + kPointerSize, kSize> |
| + BodyDescriptor; |
| private: |
| DISALLOW_IMPLICIT_CONSTRUCTORS(Symbol); |