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

Unified Diff: runtime/vm/isolate.cc

Issue 1418813008: This adds a mechanism to invalidate code that was generated in the background. The invalidation can… (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: sync 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') | runtime/vm/object.h » ('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 328624b87f05c6b2649b7974d757506d5ddc776d..b1d5a4c27aa32941583cd997033d5eff93f3c655 100644
--- a/runtime/vm/isolate.cc
+++ b/runtime/vm/isolate.cc
@@ -789,14 +789,17 @@ Isolate::Isolate(const Dart_IsolateFlags& api_flags)
deoptimized_code_array_(GrowableObjectArray::null()),
background_compiler_(NULL),
compilation_function_queue_(GrowableObjectArray::null()),
- compilation_code_queue_(GrowableObjectArray::null()),
+ compilation_result_queue_(GrowableObjectArray::null()),
pending_service_extension_calls_(GrowableObjectArray::null()),
registered_service_extension_handlers_(GrowableObjectArray::null()),
metrics_list_head_(NULL),
compilation_allowed_(true),
all_classes_finalized_(false),
next_(NULL),
- pause_loop_monitor_(NULL) {
+ pause_loop_monitor_(NULL),
+ cha_invalidation_gen_(0),
+ field_invalidation_gen_(0),
+ prefix_invalidation_gen_(0) {
flags_.CopyFrom(api_flags);
Thread::Current()->set_vm_tag(VMTag::kEmbedderTagId);
set_user_tag(UserTags::kDefaultUserTag);
@@ -1774,7 +1777,7 @@ void Isolate::VisitObjectPointers(ObjectPointerVisitor* visitor,
&compilation_function_queue_));
visitor->VisitPointer(reinterpret_cast<RawObject**>(
- &compilation_code_queue_));
+ &compilation_result_queue_));
// Visit the deoptimized code array which is stored in the isolate.
visitor->VisitPointer(
@@ -2007,9 +2010,9 @@ void Isolate::set_compilation_function_queue(
}
-void Isolate::set_compilation_code_queue(
+void Isolate::set_compilation_result_queue(
const GrowableObjectArray& value) {
- compilation_code_queue_ = value.raw();
+ compilation_result_queue_ = value.raw();
}
« no previous file with comments | « runtime/vm/isolate.h ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698