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

Unified Diff: pkg/compiler/lib/src/js_backend/backend_usage.dart

Issue 2960723004: Handle super-method call (Closed)
Patch Set: Updated cf. comments. Created 3 years, 6 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/deferred_load.dart ('k') | pkg/compiler/lib/src/js_backend/mirrors_data.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_backend/backend_usage.dart
diff --git a/pkg/compiler/lib/src/js_backend/backend_usage.dart b/pkg/compiler/lib/src/js_backend/backend_usage.dart
index 7c3134cd343ebcdc4a08b2cd83b7af8545809a35..89ab682dcee91e4f52fcd3e79a48ea061524a836 100644
--- a/pkg/compiler/lib/src/js_backend/backend_usage.dart
+++ b/pkg/compiler/lib/src/js_backend/backend_usage.dart
@@ -40,6 +40,9 @@ abstract class BackendUsage {
/// `true` if `Function.apply` is used.
bool get isFunctionApplyUsed;
+ /// `true` if 'dart:mirrors' features are used.
+ bool get isMirrorsUsed;
+
/// `true` if `noSuchMethod` is used.
bool get isNoSuchMethodUsed;
}
@@ -115,6 +118,9 @@ class BackendUsageBuilderImpl implements BackendUsageBuilder {
/// `true` if `Function.apply` is used.
bool isFunctionApplyUsed = false;
+ /// `true` if 'dart:mirrors' features are used.
+ bool isMirrorsUsed = false;
+
/// `true` if `noSuchMethod` is used.
bool isNoSuchMethodUsed = false;
@@ -241,6 +247,8 @@ class BackendUsageBuilderImpl implements BackendUsageBuilder {
isInvokeOnUsed = true;
} else if (_commonElements.isFunctionApplyMethod(member)) {
isFunctionApplyUsed = true;
+ } else if (member.library == _commonElements.mirrorsLibrary) {
+ isMirrorsUsed = true;
}
}
@@ -273,6 +281,7 @@ class BackendUsageBuilderImpl implements BackendUsageBuilder {
isRuntimeTypeUsed: isRuntimeTypeUsed,
isIsolateInUse: isIsolateInUse,
isFunctionApplyUsed: isFunctionApplyUsed,
+ isMirrorsUsed: isMirrorsUsed,
isNoSuchMethodUsed: isNoSuchMethodUsed);
}
}
@@ -306,6 +315,9 @@ class BackendUsageImpl implements BackendUsage {
/// `true` if `Function.apply` is used.
final bool isFunctionApplyUsed;
+ /// `true` if 'dart:mirrors' features are used.
+ final bool isMirrorsUsed;
+
/// `true` if `noSuchMethod` is used.
final bool isNoSuchMethodUsed;
@@ -321,6 +333,7 @@ class BackendUsageImpl implements BackendUsage {
this.isRuntimeTypeUsed,
this.isIsolateInUse,
this.isFunctionApplyUsed,
+ this.isMirrorsUsed,
this.isNoSuchMethodUsed})
: this._globalFunctionDependencies = globalFunctionDependencies,
this._globalClassDependencies = globalClassDependencies,
« no previous file with comments | « pkg/compiler/lib/src/deferred_load.dart ('k') | pkg/compiler/lib/src/js_backend/mirrors_data.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698