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

Unified Diff: pkg/compiler/lib/src/universe/use.dart

Issue 2724223005: Register inlining as a StaticUse (Closed)
Patch Set: Created 3 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
« no previous file with comments | « pkg/compiler/lib/src/universe/resolution_world_builder.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/universe/use.dart
diff --git a/pkg/compiler/lib/src/universe/use.dart b/pkg/compiler/lib/src/universe/use.dart
index d54815c4da07aa6e838fcb4985fd2aca7dcc4b59..9f5482be1b6ecba16d83e0cd4a924789fe4e669a 100644
--- a/pkg/compiler/lib/src/universe/use.dart
+++ b/pkg/compiler/lib/src/universe/use.dart
@@ -81,6 +81,7 @@ enum StaticUseKind {
REDIRECTION,
DIRECT_INVOKE,
DIRECT_USE,
+ INLINING,
}
/// Statically known use of an [Element].
@@ -338,6 +339,11 @@ class StaticUse {
return new StaticUse.internal(element, StaticUseKind.DIRECT_USE);
}
+ /// Inlining of [element].
+ factory StaticUse.inlining(FunctionEntity element) {
+ return new StaticUse.internal(element, StaticUseKind.INLINING);
+ }
+
bool operator ==(other) {
if (identical(this, other)) return true;
if (other is! StaticUse) return false;
« no previous file with comments | « pkg/compiler/lib/src/universe/resolution_world_builder.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698