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

Unified Diff: src/objects.h

Issue 2196533003: [api] Cleaning up: Replace NeanderArray with FixedArray implementation (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: mind the pointers Created 4 years, 5 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/messages.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 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 {
« no previous file with comments | « src/messages.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698