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

Unified Diff: runtime/vm/isolate.h

Issue 1418863003: Precompilation: Generate instance calls as IC calls that can switch to Megamoprhic calls. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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 9f06cc73a1962ff065f02ef333356598898697eb..5d2daae64a46d91fe1e46b25c94c87d6167906a1 100644
--- a/runtime/vm/isolate.h
+++ b/runtime/vm/isolate.h
@@ -138,6 +138,10 @@ class Isolate : public BaseIsolate {
return OFFSET_OF(Isolate, class_table_);
}
+ static intptr_t ic_miss_function_offset() {
+ return OFFSET_OF(Isolate, ic_miss_function_);
+ }
+
Dart_MessageNotifyCallback message_notify_callback() const {
return message_notify_callback_;
}
@@ -594,6 +598,8 @@ class Isolate : public BaseIsolate {
RawUserTag* default_tag() const { return default_tag_; }
void set_default_tag(const UserTag& tag);
+ void set_ic_miss_function(const Function& func);
+
Metric* metrics_list_head() {
return metrics_list_head_;
}
@@ -724,6 +730,7 @@ class Isolate : public BaseIsolate {
uword user_tag_;
RawUserTag* current_tag_;
RawUserTag* default_tag_;
+ RawFunction* ic_miss_function_;
ClassTable class_table_;
bool single_step_;

Powered by Google App Engine
This is Rietveld 408576698