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

Unified Diff: src/heap/objects-visiting.h

Issue 1230753004: [Interpreter] Add BytecodeArray class and add to SharedFunctionInfo. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Avoid outputting junk data in BytecodeArray::Print() and ByteArray::Print(). Created 5 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
Index: src/heap/objects-visiting.h
diff --git a/src/heap/objects-visiting.h b/src/heap/objects-visiting.h
index 1b788e893b7b23d0236d4acbe5e59ef61bee4f23..1bb2e1d80daf486eab4ccdcd322f8ce61dba7edc 100644
--- a/src/heap/objects-visiting.h
+++ b/src/heap/objects-visiting.h
@@ -29,6 +29,7 @@ class StaticVisitorBase : public AllStatic {
V(SeqTwoByteString) \
V(ShortcutCandidate) \
V(ByteArray) \
+ V(BytecodeArray) \
V(FreeSpace) \
V(FixedArray) \
V(FixedDoubleArray) \
@@ -320,6 +321,10 @@ class StaticNewSpaceVisitor : public StaticVisitorBase {
return reinterpret_cast<ByteArray*>(object)->ByteArraySize();
}
+ INLINE(static int VisitBytecodeArray(Map* map, HeapObject* object)) {
+ return reinterpret_cast<BytecodeArray*>(object)->BytecodeArraySize();
+ }
+
INLINE(static int VisitFixedDoubleArray(Map* map, HeapObject* object)) {
int length = reinterpret_cast<FixedDoubleArray*>(object)->length();
return FixedDoubleArray::SizeFor(length);

Powered by Google App Engine
This is Rietveld 408576698