Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Unified Diff: src/objects.h

Issue 12459026: ES6 symbols: implement name property (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/log.cc ('k') | src/objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « src/log.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698