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

Unified Diff: runtime/vm/visitor.h

Issue 70183010: Fixes a couple problems with GC of unoptimized code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 1 month 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
« runtime/vm/raw_object.cc ('K') | « runtime/vm/stack_frame.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/visitor.h
===================================================================
--- runtime/vm/visitor.h (revision 30197)
+++ runtime/vm/visitor.h (working copy)
@@ -6,6 +6,7 @@
#define VM_VISITOR_H_
#include "vm/globals.h"
+#include "vm/growable_array.h"
namespace dart {
@@ -24,6 +25,11 @@
// Range of pointers to visit 'first' <= pointer <= 'last'.
virtual void VisitPointers(RawObject** first, RawObject** last) = 0;
+ virtual bool visit_function_code() { return true; }
srdjan 2013/11/19 19:18:29 const
zra 2013/11/22 17:18:54 Done.
+ virtual GrowableArray<RawFunction*>* skipped_code_functions() {
+ return NULL;
+ }
+
// len argument is the number of pointers to visit starting from 'p'.
void VisitPointers(RawObject** p, intptr_t len) {
VisitPointers(p, (p + len - 1));
« runtime/vm/raw_object.cc ('K') | « runtime/vm/stack_frame.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698