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

Unified Diff: pkg/compiler/lib/src/resolution/resolution.dart

Issue 1424923004: Add StaticUse for more precise registration of statically known element use. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 5 years, 1 month 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/resolution/registry.dart ('k') | pkg/compiler/lib/src/ssa/builder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/resolution/resolution.dart
diff --git a/pkg/compiler/lib/src/resolution/resolution.dart b/pkg/compiler/lib/src/resolution/resolution.dart
index c04735c852d27b00f251a9fa10792380fee72ad8..c1d783d9419b776060a9d48a30310dfb21a3d196 100644
--- a/pkg/compiler/lib/src/resolution/resolution.dart
+++ b/pkg/compiler/lib/src/resolution/resolution.dart
@@ -46,6 +46,10 @@ import '../tokens/token.dart' show
isUnaryOperator,
isUserDefinableOperator;
import '../tree/tree.dart';
+import '../universe/call_structure.dart' show
+ CallStructure;
+import '../universe/use.dart' show
+ StaticUse;
import '../universe/world_impact.dart' show
WorldImpact;
import '../util/util.dart' show
@@ -305,7 +309,9 @@ class ResolverTask extends CompilerTask {
// seeing this element.
element.computeType(resolution);
if (!target.isMalformed) {
- registry.registerImplicitSuperCall(target);
+ registry.registerStaticUse(
+ new StaticUse.superConstructorInvoke(
+ target, CallStructure.NO_ARGS));
}
return registry.worldImpact;
} else {
« no previous file with comments | « pkg/compiler/lib/src/resolution/registry.dart ('k') | pkg/compiler/lib/src/ssa/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698