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

Unified Diff: src/mark-compact.h

Issue 6529055: [Isolates] Merge crankshaft (r5922 from bleeding_edge). (Closed)
Patch Set: Win32 port Created 9 years, 10 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/log.cc ('k') | src/mark-compact.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/mark-compact.h
diff --git a/src/mark-compact.h b/src/mark-compact.h
index 10932ff5574d9c4f9f4cc041907c4da1f70a07a5..d6b649f28461ff4241e39342d8741b0565c148ff 100644
--- a/src/mark-compact.h
+++ b/src/mark-compact.h
@@ -39,9 +39,10 @@ namespace internal {
typedef bool (*IsAliveFunction)(HeapObject* obj, int* size, int* offset);
// Forward declarations.
+class CodeFlusher;
class GCTracer;
-class RootMarkingVisitor;
class MarkingVisitor;
+class RootMarkingVisitor;
// ----------------------------------------------------------------------------
@@ -190,8 +191,13 @@ class MarkCompactCollector {
inline Heap* heap() const { return heap_; }
+ CodeFlusher* code_flusher() { return code_flusher_; }
+ inline bool is_code_flushing_enabled() const { return code_flusher_ != NULL; }
+ void EnableCodeFlushing(bool enable);
+
private:
MarkCompactCollector();
+ ~MarkCompactCollector();
#ifdef DEBUG
enum CollectorState {
@@ -487,6 +493,8 @@ class MarkCompactCollector {
Heap* heap_;
MarkingStack marking_stack_;
+ CodeFlusher* code_flusher_;
+
friend class Heap;
friend class OverflowedObjectsScanner;
};
« no previous file with comments | « src/log.cc ('k') | src/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698