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

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

Issue 2851163002: Handle symbol literals in closed_world2_test (Closed)
Patch Set: Reinsert test code Created 3 years, 8 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
Index: pkg/compiler/lib/src/ssa/builder.dart
diff --git a/pkg/compiler/lib/src/ssa/builder.dart b/pkg/compiler/lib/src/ssa/builder.dart
index e0e89b3f8e258297020fa018e257e3b3add6e7c9..621fd6d3241be32b3b8ce6e8fa5ce8b2aebac74f 100644
--- a/pkg/compiler/lib/src/ssa/builder.dart
+++ b/pkg/compiler/lib/src/ssa/builder.dart
@@ -3873,12 +3873,12 @@ class SsaBuilder extends ast.Visitor
@override
void bulkHandleNew(ast.NewExpression node, [_]) {
Element element = elements[node.send];
- final bool isSymbolConstructor =
- element == commonElements.symbolConstructor;
if (!Elements.isMalformed(element)) {
ConstructorElement function = element;
element = function.effectiveTarget;
}
+ final bool isSymbolConstructor =
+ element == commonElements.symbolConstructorTarget;
if (Elements.isError(element)) {
ErroneousElement error = element;
if (error.messageKind == MessageKind.CANNOT_FIND_CONSTRUCTOR ||
« no previous file with comments | « pkg/compiler/lib/src/resolution/resolution_strategy.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