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

Unified Diff: runtime/vm/object.cc

Issue 2572543003: Treat dispatchers and implicit accessors the same for inlining decisions. (Closed)
Patch Set: Created 4 years 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 f60ab345f95fa026c43b842d891884eb83e7c579..19a2197c4bf67f291f6d128b3b268c8baccc232b 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -13441,13 +13441,12 @@ bool ICData::HasOneTarget() const {
}
-bool ICData::HasOnlyDispatcherTargets() const {
+bool ICData::HasOnlyDispatcherOrImplicitAccessorTargets() 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()) {
+ if (!target.IsDispatcherOrImplicitAccessor()) {
return false;
}
}
« 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