| Index: src/objects.h
|
| diff --git a/src/objects.h b/src/objects.h
|
| index 16b85540a1744db94b81135b412c5c015e4b4baa..a9c2439e61bbf077ad484031025d9fff7d03369e 100644
|
| --- a/src/objects.h
|
| +++ b/src/objects.h
|
| @@ -89,8 +89,9 @@
|
| // - Context
|
| // - TypeFeedbackMetadata
|
| // - TypeFeedbackVector
|
| -// - ScopeInfo
|
| +// - TemplateList
|
| // - TransitionArray
|
| +// - ScopeInfo
|
| // - ScriptContextTable
|
| // - WeakFixedArray
|
| // - FixedDoubleArray
|
| @@ -885,7 +886,7 @@ class TypeFeedbackMetadata;
|
| class TypeFeedbackVector;
|
| class WeakCell;
|
| class TransitionArray;
|
| -
|
| +class TemplateList;
|
|
|
| // A template-ized version of the IsXXX functions.
|
| template <class C> inline bool Is(Object* obj);
|
| @@ -1023,6 +1024,7 @@ template <class C> inline bool Is(Object* obj);
|
| V(External) \
|
| V(Struct) \
|
| V(Cell) \
|
| + V(TemplateList) \
|
| V(PropertyCell) \
|
| V(WeakCell) \
|
| V(ObjectHashTable) \
|
| @@ -4953,6 +4955,20 @@ class HandlerTable : public FixedArray {
|
| class HandlerOffsetField : public BitField<int, 2, 30> {};
|
| };
|
|
|
| +class TemplateList : public FixedArray {
|
| + public:
|
| + static Handle<TemplateList> New(Isolate* isolate, int size);
|
| + inline int length() const;
|
| + inline Object* get(int index) const;
|
| + inline void set(int index, Object* value);
|
| + static Handle<TemplateList> Add(Isolate* isolate, Handle<TemplateList> list,
|
| + Handle<Object> value);
|
| + DECLARE_CAST(TemplateList)
|
| + private:
|
| + static const int kLengthIndex = 0;
|
| + static const int kFirstElementIndex = kLengthIndex + 1;
|
| + DISALLOW_IMPLICIT_CONSTRUCTORS(TemplateList);
|
| +};
|
|
|
| // Code describes objects with on-the-fly generated machine code.
|
| class Code: public HeapObject {
|
|
|