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

Unified Diff: pkg/compiler/lib/src/ssa/builder.dart

Issue 962703004: Add "force inline" to internal annotations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove mustInline. It's not used. Created 5 years, 10 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
Index: pkg/compiler/lib/src/ssa/builder.dart
diff --git a/pkg/compiler/lib/src/ssa/builder.dart b/pkg/compiler/lib/src/ssa/builder.dart
index d26f6ec7a641ee1a41396286166a28115be66caf..a3e510b2fcdb6165241b66f7b10809870bcb9ab3 100644
--- a/pkg/compiler/lib/src/ssa/builder.dart
+++ b/pkg/compiler/lib/src/ssa/builder.dart
@@ -1363,10 +1363,9 @@ class SsaBuilder extends ResolvedVisitor {
return reductiveHeuristic();
}
- if (cachedCanBeInlined == true) return cachedCanBeInlined;
-
- if (backend.functionsToAlwaysInline.contains(function)) {
- // Inline this function regardless of it's size.
+ if (cachedCanBeInlined == true) {
+ // We may have forced the inlining of some methods. Therefore check
+ // if we can inline this method regardless of size.
assert(InlineWeeder.canBeInlined(function, -1, false,
allowLoops: true));
return true;

Powered by Google App Engine
This is Rietveld 408576698