Index: src/elements.h |
diff --git a/src/elements.h b/src/elements.h |
index 615d5f90a381d747319db4fce24f6d0091cb58da..c6d2d4b3bb340a18d3f3da1101859125ebfc7e59 100644 |
--- a/src/elements.h |
+++ b/src/elements.h |
@@ -37,8 +37,11 @@ namespace internal { |
// ElementsKinds. |
class ElementsAccessor { |
public: |
- ElementsAccessor() { } |
+ explicit ElementsAccessor(const char* name) : name_(name) { } |
virtual ~ElementsAccessor() { } |
+ |
+ virtual const char* name() const { return name_; } |
+ |
virtual MaybeObject* Get(FixedArrayBase* backing_store, |
uint32_t key, |
JSObject* holder, |
@@ -104,6 +107,7 @@ class ElementsAccessor { |
private: |
static ElementsAccessor** elements_accessors_; |
+ const char* name_; |
DISALLOW_COPY_AND_ASSIGN(ElementsAccessor); |
}; |