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

Unified Diff: runtime/vm/intermediate_language.h

Issue 2055263002: VM: Improve specialization of calls on receiver in AOT mode. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 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
« runtime/vm/aot_optimizer.cc ('K') | « runtime/vm/aot_optimizer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language.h
diff --git a/runtime/vm/intermediate_language.h b/runtime/vm/intermediate_language.h
index 27fe9a107431eadbd9e0f6596ea51c2b08a787a1..d048c0e93d9fd5eb9aea1454679b13e432dc4ceb 100644
--- a/runtime/vm/intermediate_language.h
+++ b/runtime/vm/intermediate_language.h
@@ -3267,6 +3267,25 @@ class StaticCallInstr : public TemplateDefinition<0, Throws> {
ASSERT(argument_names.IsZoneHandle() || argument_names.InVMHeap());
}
+ StaticCallInstr(TokenPosition token_pos,
+ const Function& function,
+ const Array& argument_names,
+ ZoneGrowableArray<PushArgumentInstr*>* arguments,
+ intptr_t deopt_id)
+ : TemplateDefinition(deopt_id),
+ ic_data_(NULL),
+ token_pos_(token_pos),
+ function_(function),
+ argument_names_(argument_names),
+ arguments_(arguments),
+ result_cid_(kDynamicCid),
+ is_known_list_constructor_(false),
+ is_native_list_factory_(false),
+ identity_(AliasIdentity::Unknown()) {
+ ASSERT(function.IsZoneHandle());
+ ASSERT(argument_names.IsZoneHandle() || argument_names.InVMHeap());
+ }
+
// ICData for static calls carries call count.
const ICData* ic_data() const { return ic_data_; }
bool HasICData() const {
« runtime/vm/aot_optimizer.cc ('K') | « runtime/vm/aot_optimizer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698