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

Unified Diff: runtime/vm/isolate.h

Issue 1386503002: Initial design for background compilation (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Address Comments 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/gc_marker.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/isolate.h
diff --git a/runtime/vm/isolate.h b/runtime/vm/isolate.h
index 5ab9fccead4515fafd4411cdbc3befc42420c1e4..7f149af30f2cbfe8c16e8fa0809caaed8adcdf97 100644
--- a/runtime/vm/isolate.h
+++ b/runtime/vm/isolate.h
@@ -27,6 +27,7 @@ namespace dart {
class AbstractType;
class ApiState;
class Array;
+class BackgroundCompiler;
class Capability;
class CHA;
class Class;
@@ -600,6 +601,13 @@ class Isolate : public BaseIsolate {
deopt_context_ = value;
}
+ BackgroundCompiler* background_compiler() const {
+ return background_compiler_;
+ }
+ void set_background_compiler(BackgroundCompiler* value) {
+ background_compiler_ = value;
+ }
+
void UpdateLastAllocationProfileAccumulatorResetTimestamp() {
last_allocationprofile_accumulator_reset_timestamp_ =
OS::GetCurrentTimeMillis();
@@ -696,6 +704,11 @@ class Isolate : public BaseIsolate {
}
void set_collected_closures(const GrowableObjectArray& value);
+ RawGrowableObjectArray* background_compilation_queue() const {
+ return background_compilation_queue_;
+ }
+ void set_background_compilation_queue(const GrowableObjectArray& value);
+
Metric* metrics_list_head() {
return metrics_list_head_;
}
@@ -874,6 +887,7 @@ class Isolate : public BaseIsolate {
Dart_GcEpilogueCallback gc_epilogue_callback_;
intptr_t defer_finalization_count_;
DeoptContext* deopt_context_;
+ BackgroundCompiler* background_compiler_;
CompilerStats* compiler_stats_;
@@ -902,6 +916,7 @@ class Isolate : public BaseIsolate {
RawGrowableObjectArray* collected_closures_;
RawGrowableObjectArray* deoptimized_code_array_;
+ RawGrowableObjectArray* background_compilation_queue_;
// We use 6 list entries for each pending service extension calls.
enum {
« no previous file with comments | « runtime/vm/gc_marker.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698