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

Unified Diff: src/objects-visiting.h

Issue 10919294: Integrate map marking into static marking visitor. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 3 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/objects-visiting.h
diff --git a/src/objects-visiting.h b/src/objects-visiting.h
index 76a0f74e8603c8819be9d1cd0300819fa3fc6416..7a3b3f4a935a82c9e649ebc63be641cae3ecebc7 100644
--- a/src/objects-visiting.h
+++ b/src/objects-visiting.h
@@ -398,9 +398,15 @@ class StaticMarkingVisitor : public StaticVisitorBase {
static inline void VisitNativeContext(Map* map, HeapObject* object);
protected:
+ static inline void VisitMap(Map* map, HeapObject* object);
static inline void VisitCode(Map* map, HeapObject* object);
static inline void VisitJSRegExp(Map* map, HeapObject* object);
+ // Mark pointers in a Map and its TransitionArray together, possibly
+ // treating transitions or back pointers weak.
+ static void MarkMapContents(Heap* heap, Map* map);
+ static void MarkTransitionArray(Heap* heap, TransitionArray* transitions);
+
class DataObjectVisitor {
public:
template<int size>

Powered by Google App Engine
This is Rietveld 408576698