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

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

Issue 2857333003: Handle const Symbol(...) in closed_world2_test (Closed)
Patch Set: Created 3 years, 7 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/resolution/members.dart ('k') | tests/compiler/dart2js/kernel/closed_world2_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/ssa/kernel_impact.dart
diff --git a/pkg/compiler/lib/src/ssa/kernel_impact.dart b/pkg/compiler/lib/src/ssa/kernel_impact.dart
index a564ca5e7df1974f4b12bc61997baefc6cea766c..a697b5dd611c2a34d59bf3689df002d64b1b01c7 100644
--- a/pkg/compiler/lib/src/ssa/kernel_impact.dart
+++ b/pkg/compiler/lib/src/ssa/kernel_impact.dart
@@ -270,6 +270,9 @@ class KernelImpactBuilder extends ir.Visitor {
{bool isConst: false}) {
_visitArguments(node.arguments);
ConstructorEntity constructor = elementAdapter.getConstructor(target);
+ if (commonElements.isSymbolConstructor(constructor)) {
+ impactBuilder.registerFeature(Feature.SYMBOL_CONSTRUCTOR);
+ }
InterfaceType type = elementAdapter.createInterfaceType(
target.enclosingClass, node.arguments.types);
CallStructure callStructure =
« no previous file with comments | « pkg/compiler/lib/src/resolution/members.dart ('k') | tests/compiler/dart2js/kernel/closed_world2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698