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

Unified Diff: runtime/vm/compiler.h

Issue 1412463007: Move compilation queues into BackgroundCompiler class (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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 | « no previous file | runtime/vm/compiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/compiler.h
diff --git a/runtime/vm/compiler.h b/runtime/vm/compiler.h
index 88b53d57fc3f6b0db546a4730c23685a21063896..fe7f7e96c3b7b5a64486f1c83f0c66ec3cdbf4f8 100644
--- a/runtime/vm/compiler.h
+++ b/runtime/vm/compiler.h
@@ -173,9 +173,14 @@ class BackgroundCompiler : public ThreadPool::Task {
function_queue_length_ = value;
}
+ void VisitPointers(ObjectPointerVisitor* visitor);
+
private:
explicit BackgroundCompiler(Isolate* isolate);
+ void set_compilation_function_queue(const GrowableObjectArray& value);
+ void set_compilation_result_queue(const GrowableObjectArray& value);
+
GrowableObjectArray* FunctionsQueue() const;
GrowableObjectArray* ResultQueue() const;
@@ -196,6 +201,9 @@ class BackgroundCompiler : public ThreadPool::Task {
// Lightweight access to length of compiler queue.
intptr_t function_queue_length_;
+ RawGrowableObjectArray* compilation_function_queue_;
+ RawGrowableObjectArray* compilation_result_queue_;
+
DISALLOW_IMPLICIT_CONSTRUCTORS(BackgroundCompiler);
};
« no previous file with comments | « no previous file | runtime/vm/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698