Index: src/objects-visiting.h |
diff --git a/src/objects-visiting.h b/src/objects-visiting.h |
index 26e79ae5eddf4b1bde097ff62d9c4c54b150787f..f0ce213549e5300eed6feb8b3bb86d81b4402598 100644 |
--- a/src/objects-visiting.h |
+++ b/src/objects-visiting.h |
@@ -289,6 +289,20 @@ class StaticNewSpaceVisitor : public StaticVisitorBase { |
} |
private: |
+ static inline int VisitJSFunction(Map* map, HeapObject* object) { |
+ Heap* heap = map->GetHeap(); |
+ VisitPointers(heap, |
+ HeapObject::RawField(object, JSFunction::kPropertiesOffset), |
+ HeapObject::RawField(object, JSFunction::kCodeEntryOffset)); |
Michael Starzinger
2012/04/17 09:53:18
Can we put a comment here saying that we don't vis
|
+ VisitPointers( |
+ heap, |
+ HeapObject::RawField(object, |
+ JSFunction::kCodeEntryOffset + kPointerSize), |
+ HeapObject::RawField(object, |
+ JSFunction::kNonWeakFieldsEndOffset)); |
+ return JSFunction::kSize; |
+ } |
+ |
static inline int VisitByteArray(Map* map, HeapObject* object) { |
return reinterpret_cast<ByteArray*>(object)->ByteArraySize(); |
} |