Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index c8654e65d33608698376fb53d828c92226b4727a..8a1bcd2d658ca252a0da62ca2c935b2fb1239c6f 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -7398,6 +7398,9 @@ class Name: public HeapObject { |
// ES6 symbols. |
class Symbol: public Name { |
public: |
+ // [name]: the print name of a symbol, or undefined if none. |
+ DECL_ACCESSORS(name, Object) |
+ |
// Casting. |
static inline Symbol* cast(Object* obj); |
@@ -7406,7 +7409,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); |