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

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: Add missing scavenge visitor 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') | src/objects.cc » ('J')
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..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);
« no previous file with comments | « src/log.cc ('k') | src/objects.cc » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698