| Index: runtime/vm/isolate.h
|
| diff --git a/runtime/vm/isolate.h b/runtime/vm/isolate.h
|
| index 908e64171e16736a7d3ffc659865359589f4cf6c..cf61c05b8348f1669a6a840a50548cf436eb2339 100644
|
| --- a/runtime/vm/isolate.h
|
| +++ b/runtime/vm/isolate.h
|
| @@ -614,10 +614,10 @@ class Isolate : public BaseIsolate {
|
| }
|
| void set_compilation_function_queue(const GrowableObjectArray& value);
|
|
|
| - RawGrowableObjectArray* compilation_code_queue() const {
|
| - return compilation_code_queue_;
|
| + RawGrowableObjectArray* compilation_result_queue() const {
|
| + return compilation_result_queue_;
|
| }
|
| - void set_compilation_code_queue(const GrowableObjectArray& value);
|
| + void set_compilation_result_queue(const GrowableObjectArray& value);
|
|
|
| Metric* metrics_list_head() {
|
| return metrics_list_head_;
|
| @@ -644,6 +644,18 @@ class Isolate : public BaseIsolate {
|
| all_classes_finalized_ = value;
|
| }
|
|
|
| + void IncrCHAInvalidationGen() { cha_invalidation_gen_++; }
|
| + void ResetCHAInvalidationGen() { cha_invalidation_gen_ = 0; }
|
| + intptr_t cha_invalidation_gen() const { return cha_invalidation_gen_; }
|
| +
|
| + void IncrFieldInvalidationGen() { field_invalidation_gen_++; }
|
| + void ResetFieldInvalidationGen() { field_invalidation_gen_ = 0; }
|
| + intptr_t field_invalidation_gen() const { return field_invalidation_gen_; }
|
| +
|
| + void IncrPrefixInvalidationGen() { prefix_invalidation_gen_++; }
|
| + void ResetPrefixInvalidationGen() { prefix_invalidation_gen_ = 0; }
|
| + intptr_t prefix_invalidation_gen() const { return prefix_invalidation_gen_; }
|
| +
|
| RawObject* InvokePendingServiceExtensionCalls();
|
| void AppendServiceExtensionCall(const Instance& closure,
|
| const String& method_name,
|
| @@ -805,7 +817,7 @@ class Isolate : public BaseIsolate {
|
| // Background compilation.
|
| BackgroundCompiler* background_compiler_;
|
| RawGrowableObjectArray* compilation_function_queue_;
|
| - RawGrowableObjectArray* compilation_code_queue_;
|
| + RawGrowableObjectArray* compilation_result_queue_;
|
|
|
| // We use 6 list entries for each pending service extension calls.
|
| enum {
|
| @@ -838,6 +850,12 @@ class Isolate : public BaseIsolate {
|
| // Used to wake the isolate when it is in the pause event loop.
|
| Monitor* pause_loop_monitor_;
|
|
|
| + // Invalidation generations; used to track events occuring in parallel
|
| + // to background compilation
|
| + intptr_t cha_invalidation_gen_;
|
| + intptr_t field_invalidation_gen_;
|
| + intptr_t prefix_invalidation_gen_;
|
| +
|
| #define ISOLATE_METRIC_VARIABLE(type, variable, name, unit) \
|
| type metric_##variable##_;
|
| ISOLATE_METRIC_LIST(ISOLATE_METRIC_VARIABLE);
|
|
|