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

Unified Diff: runtime/vm/object.cc

Issue 2325753002: Fix bug in AOT compiler where we would propogate a result type for instances calls where the target… (Closed)
Patch Set: review Created 4 years, 3 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
« no previous file with comments | « runtime/vm/object.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index b78a45279e14ebc914ea0cd0dbe4f3ee74655282..7858abe9696671e9b7ae1f4a0e18183c1daa07a3 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -13411,6 +13411,20 @@ bool ICData::HasOneTarget() const {
}
+bool ICData::HasOnlyDispatcherTargets() const {
+ const intptr_t len = NumberOfChecks();
+ Function& target = Function::Handle();
+ for (intptr_t i = 0; i < len; i++) {
+ target = GetTargetAt(i);
+ if (!target.IsNoSuchMethodDispatcher() &&
+ !target.IsInvokeFieldDispatcher()) {
+ return false;
+ }
+ }
+ return true;
+}
+
+
void ICData::GetUsedCidsForTwoArgs(GrowableArray<intptr_t>* first,
GrowableArray<intptr_t>* second) const {
ASSERT(NumArgsTested() == 2);
« no previous file with comments | « runtime/vm/object.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698