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

Unified Diff: runtime/vm/isolate.h

Issue 1392893003: In precompilation, finalize all classes eagerly. Use the stable class hierarchy for doing CHA based… (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
Index: runtime/vm/isolate.h
diff --git a/runtime/vm/isolate.h b/runtime/vm/isolate.h
index 6921919acfa831429c824a8e2cec7c7805687d73..84e5969b5c47b77d7a00d68ed112a14252e03c8a 100644
--- a/runtime/vm/isolate.h
+++ b/runtime/vm/isolate.h
@@ -659,6 +659,12 @@ class Isolate : public BaseIsolate {
compilation_allowed_ = allowed;
}
+ // In precompilation we finalize all regular classes before compiling.
+ bool all_classes_finalized() const { return all_classes_finalized_; }
+ void set_all_classes_finalized(bool value) {
+ all_classes_finalized_ = value;
+ }
+
RawObject* InvokePendingServiceExtensionCalls();
void AppendServiceExtensionCall(const Instance& closure,
const String& method_name,
@@ -850,6 +856,7 @@ class Isolate : public BaseIsolate {
Metric* metrics_list_head_;
bool compilation_allowed_;
+ bool all_classes_finalized_;
// TODO(23153): Move this out of Isolate/Thread.
CHA* cha_;

Powered by Google App Engine
This is Rietveld 408576698