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

Unified Diff: runtime/vm/object.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: f 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/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 34208c73d96d222a668b6cc7a7860ec5fa7d88a0..d29117a3cf16e071bade2f032632910216063d57 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -2890,6 +2890,10 @@ class CHACodeArray : public WeakCodeReferences {
}
}
+ virtual void IncrementInvalidationGen() {
+ Isolate::Current()->IncrCHAInvalidationGen();
+ }
+
private:
const Class& cls_;
DISALLOW_COPY_AND_ASSIGN(CHACodeArray);
@@ -7774,6 +7778,10 @@ class FieldDependentArray : public WeakCodeReferences {
}
}
+ virtual void IncrementInvalidationGen() {
+ Isolate::Current()->IncrFieldInvalidationGen();
+ }
+
private:
const Field& field_;
DISALLOW_COPY_AND_ASSIGN(FieldDependentArray);
@@ -10814,6 +10822,10 @@ class PrefixDependentArray : public WeakCodeReferences {
}
}
+ virtual void IncrementInvalidationGen() {
+ Isolate::Current()->IncrPrefixInvalidationGen();
+ }
+
private:
const LibraryPrefix& prefix_;
DISALLOW_COPY_AND_ASSIGN(PrefixDependentArray);
« runtime/vm/compiler.h ('K') | « runtime/vm/isolate.cc ('k') | runtime/vm/weak_code.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698