mirror of
https://github.com/dart-lang/sdk
synced 2024-11-05 18:22:09 +00:00
[dart2js] cleanup backend usage (I)
Change-Id: Id2fcc83ef3ae68b00693a13b186ffc406886972c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/318880 Reviewed-by: Stephen Adams <sra@google.com>
This commit is contained in:
parent
66b18bce40
commit
ab0b4fcbe2
4 changed files with 1 additions and 20 deletions
|
@ -1441,7 +1441,6 @@ class DumpInfoTask extends CompilerTask implements InfoReporter {
|
|||
isRuntimeTypeUsed: closedWorld.backendUsage.isRuntimeTypeUsed,
|
||||
isIsolateInUse: false,
|
||||
isFunctionApplyUsed: closedWorld.backendUsage.isFunctionApplyUsed,
|
||||
isMirrorsUsed: closedWorld.backendUsage.isMirrorsUsed,
|
||||
minified: compiler.options.enableMinification);
|
||||
|
||||
return result;
|
||||
|
@ -1525,7 +1524,6 @@ class DumpInfoTask extends CompilerTask implements InfoReporter {
|
|||
isRuntimeTypeUsed: closedWorld.backendUsage.isRuntimeTypeUsed,
|
||||
isIsolateInUse: false,
|
||||
isFunctionApplyUsed: closedWorld.backendUsage.isFunctionApplyUsed,
|
||||
isMirrorsUsed: closedWorld.backendUsage.isMirrorsUsed,
|
||||
minified: compiler.options.enableMinification);
|
||||
|
||||
return result;
|
||||
|
|
|
@ -48,9 +48,6 @@ abstract class BackendUsage {
|
|||
/// `true` if `Function.apply` is used.
|
||||
bool get isFunctionApplyUsed;
|
||||
|
||||
/// `true` if 'dart:mirrors' features are used.
|
||||
bool get isMirrorsUsed;
|
||||
|
||||
/// `true` if startup timestamps are used.
|
||||
bool get requiresStartupMetrics;
|
||||
|
||||
|
@ -129,9 +126,6 @@ class BackendUsageBuilderImpl implements BackendUsageBuilder {
|
|||
@override
|
||||
bool isFunctionApplyUsed = false;
|
||||
|
||||
/// `true` if 'dart:mirrors' features are used.
|
||||
bool isMirrorsUsed = false;
|
||||
|
||||
@override
|
||||
bool isNoSuchMethodUsed = false;
|
||||
|
||||
|
@ -246,8 +240,6 @@ class BackendUsageBuilderImpl implements BackendUsageBuilder {
|
|||
requiresPreamble = true;
|
||||
} else if (_commonElements.isFunctionApplyMethod(member)) {
|
||||
isFunctionApplyUsed = true;
|
||||
} else if (member.library == _commonElements.mirrorsLibrary) {
|
||||
isMirrorsUsed = true;
|
||||
} else if (member == _commonElements.rawStartupMetrics) {
|
||||
requiresStartupMetrics = true;
|
||||
}
|
||||
|
@ -288,7 +280,6 @@ class BackendUsageBuilderImpl implements BackendUsageBuilder {
|
|||
requiresStartupMetrics: requiresStartupMetrics,
|
||||
runtimeTypeUses: _runtimeTypeUses,
|
||||
isFunctionApplyUsed: isFunctionApplyUsed,
|
||||
isMirrorsUsed: isMirrorsUsed,
|
||||
isNoSuchMethodUsed: isNoSuchMethodUsed,
|
||||
isHtmlLoaded: isHtmlLoaded);
|
||||
}
|
||||
|
@ -325,9 +316,6 @@ class BackendUsageImpl implements BackendUsage {
|
|||
@override
|
||||
final bool isFunctionApplyUsed;
|
||||
|
||||
@override
|
||||
final bool isMirrorsUsed;
|
||||
|
||||
@override
|
||||
final bool isNoSuchMethodUsed;
|
||||
|
||||
|
@ -345,7 +333,6 @@ class BackendUsageImpl implements BackendUsage {
|
|||
required this.requiresStartupMetrics,
|
||||
required Set<RuntimeTypeUse> runtimeTypeUses,
|
||||
required this.isFunctionApplyUsed,
|
||||
required this.isMirrorsUsed,
|
||||
required this.isNoSuchMethodUsed,
|
||||
required this.isHtmlLoaded})
|
||||
: this._globalFunctionDependencies = globalFunctionDependencies,
|
||||
|
@ -373,7 +360,6 @@ class BackendUsageImpl implements BackendUsage {
|
|||
bool requiresPreamble = source.readBool();
|
||||
bool requiresStartupMetrics = source.readBool();
|
||||
bool isFunctionApplyUsed = source.readBool();
|
||||
bool isMirrorsUsed = source.readBool();
|
||||
bool isNoSuchMethodUsed = source.readBool();
|
||||
bool isHtmlLoaded = source.readBool();
|
||||
source.end(tag);
|
||||
|
@ -388,7 +374,6 @@ class BackendUsageImpl implements BackendUsage {
|
|||
requiresPreamble: requiresPreamble,
|
||||
requiresStartupMetrics: requiresStartupMetrics,
|
||||
isFunctionApplyUsed: isFunctionApplyUsed,
|
||||
isMirrorsUsed: isMirrorsUsed,
|
||||
isNoSuchMethodUsed: isNoSuchMethodUsed,
|
||||
isHtmlLoaded: isHtmlLoaded);
|
||||
}
|
||||
|
@ -410,7 +395,6 @@ class BackendUsageImpl implements BackendUsage {
|
|||
sink.writeBool(requiresPreamble);
|
||||
sink.writeBool(requiresStartupMetrics);
|
||||
sink.writeBool(isFunctionApplyUsed);
|
||||
sink.writeBool(isMirrorsUsed);
|
||||
sink.writeBool(isNoSuchMethodUsed);
|
||||
sink.writeBool(isHtmlLoaded);
|
||||
sink.end(tag);
|
||||
|
|
|
@ -286,7 +286,6 @@ class JClosedWorldBuilder {
|
|||
requiresStartupMetrics: backendUsage.requiresStartupMetrics,
|
||||
runtimeTypeUses: runtimeTypeUses,
|
||||
isFunctionApplyUsed: backendUsage.isFunctionApplyUsed,
|
||||
isMirrorsUsed: backendUsage.isMirrorsUsed,
|
||||
isNoSuchMethodUsed: backendUsage.isNoSuchMethodUsed,
|
||||
isHtmlLoaded: backendUsage.isHtmlLoaded);
|
||||
}
|
||||
|
|
|
@ -182,7 +182,7 @@ class ProgramInfo {
|
|||
required this.isRuntimeTypeUsed,
|
||||
required this.isIsolateInUse,
|
||||
required this.isFunctionApplyUsed,
|
||||
required this.isMirrorsUsed,
|
||||
this.isMirrorsUsed = false,
|
||||
required this.minified});
|
||||
|
||||
T accept<T>(InfoVisitor<T> visitor) => visitor.visitProgram(this);
|
||||
|
|
Loading…
Reference in a new issue