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

Unified Diff: runtime/vm/object.cc

Issue 11361225: In optimized code use IC calls for instance calls that have no IC data instead of deoptimizing. The… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
===================================================================
--- runtime/vm/object.cc (revision 14858)
+++ runtime/vm/object.cc (working copy)
@@ -7450,7 +7450,11 @@
raw_ptr()->deopt_reason_ = deopt_reason;
}
+void ICData::set_is_closure_call(bool value) const {
+ raw_ptr()->is_closure_call_ = value ? 1 : 0;
+}
+
intptr_t ICData::TestEntryLength() const {
return num_args_tested() + 1 /* target function*/;
}
@@ -7726,6 +7730,7 @@
result.set_deopt_id(deopt_id);
result.set_num_args_tested(num_args_tested);
result.set_deopt_reason(kDeoptUnknown);
+ result.set_is_closure_call(false);
// Number of array elements in one test entry (num_args_tested + 1)
intptr_t len = result.TestEntryLength();
// IC data array must be null terminated (sentinel entry).
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698