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

Unified Diff: runtime/vm/isolate.cc

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 | « runtime/vm/isolate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/isolate.cc
diff --git a/runtime/vm/isolate.cc b/runtime/vm/isolate.cc
index b1d5a4c27aa32941583cd997033d5eff93f3c655..f0122ddf614fa94be0f0e8e1e86292e041bef99f 100644
--- a/runtime/vm/isolate.cc
+++ b/runtime/vm/isolate.cc
@@ -788,8 +788,6 @@ Isolate::Isolate(const Dart_IsolateFlags& api_flags)
tag_table_(GrowableObjectArray::null()),
deoptimized_code_array_(GrowableObjectArray::null()),
background_compiler_(NULL),
- compilation_function_queue_(GrowableObjectArray::null()),
- compilation_result_queue_(GrowableObjectArray::null()),
pending_service_extension_calls_(GrowableObjectArray::null()),
registered_service_extension_handlers_(GrowableObjectArray::null()),
metrics_list_head_(NULL),
@@ -1773,11 +1771,9 @@ void Isolate::VisitObjectPointers(ObjectPointerVisitor* visitor,
// Visit the tag table which is stored in the isolate.
visitor->VisitPointer(reinterpret_cast<RawObject**>(&tag_table_));
- visitor->VisitPointer(reinterpret_cast<RawObject**>(
- &compilation_function_queue_));
-
- visitor->VisitPointer(reinterpret_cast<RawObject**>(
- &compilation_result_queue_));
+ if (background_compiler() != NULL) {
+ background_compiler()->VisitPointers(visitor);
+ }
// Visit the deoptimized code array which is stored in the isolate.
visitor->VisitPointer(
@@ -2004,18 +2000,6 @@ void Isolate::set_deoptimized_code_array(const GrowableObjectArray& value) {
}
-void Isolate::set_compilation_function_queue(
- const GrowableObjectArray& value) {
- compilation_function_queue_ = value.raw();
-}
-
-
-void Isolate::set_compilation_result_queue(
- const GrowableObjectArray& value) {
- compilation_result_queue_ = value.raw();
-}
-
-
void Isolate::TrackDeoptimizedCode(const Code& code) {
ASSERT(!code.IsNull());
const GrowableObjectArray& deoptimized_code =
« no previous file with comments | « runtime/vm/isolate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698