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

Unified Diff: runtime/vm/isolate.cc

Issue 1261673004: Non-tree-shaking --precompile. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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') | runtime/vm/native_api_impl.cc » ('j') | 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 070186bb3387eee30abadbefa472121e6b16f647..5071b6cd5f367ffdded29b40407fdda3d7df080a 100644
--- a/runtime/vm/isolate.cc
+++ b/runtime/vm/isolate.cc
@@ -681,8 +681,10 @@ Isolate::Isolate(const Dart_IsolateFlags& api_flags)
tag_table_(GrowableObjectArray::null()),
current_tag_(UserTag::null()),
default_tag_(UserTag::null()),
+ collected_closures_(GrowableObjectArray::null()),
deoptimized_code_array_(GrowableObjectArray::null()),
metrics_list_head_(NULL),
+ compilation_allowed_(true),
cha_(NULL),
next_(NULL),
pause_loop_monitor_(NULL),
@@ -1605,6 +1607,9 @@ void Isolate::VisitObjectPointers(ObjectPointerVisitor* visitor,
// Visit the tag table which is stored in the isolate.
visitor->VisitPointer(reinterpret_cast<RawObject**>(&tag_table_));
+ // Visit array of closures pending precompilation.
+ visitor->VisitPointer(reinterpret_cast<RawObject**>(&collected_closures_));
+
// Visit the deoptimized code array which is stored in the isolate.
visitor->VisitPointer(
reinterpret_cast<RawObject**>(&deoptimized_code_array_));
@@ -1805,6 +1810,11 @@ void Isolate::set_default_tag(const UserTag& tag) {
}
+void Isolate::set_collected_closures(const GrowableObjectArray& value) {
+ collected_closures_ = value.raw();
+}
+
+
void Isolate::set_deoptimized_code_array(const GrowableObjectArray& value) {
deoptimized_code_array_ = value.raw();
}
« no previous file with comments | « runtime/vm/isolate.h ('k') | runtime/vm/native_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698