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

Unified Diff: pkg/compiler/lib/src/kernel/kernel_visitor.dart

Issue 2411793007: Revert "Build CFG for various JS() foreign methods" (Closed)
Patch Set: Redo "Build CFG for various JS() foreign methods" Created 4 years, 2 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 | « no previous file | pkg/compiler/lib/src/ssa/builder_kernel.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/kernel/kernel_visitor.dart
diff --git a/pkg/compiler/lib/src/kernel/kernel_visitor.dart b/pkg/compiler/lib/src/kernel/kernel_visitor.dart
index e6ed1e475a1b2cc5d6d200fa58713f8de56e429d..06d6f460b85ad6eff8307d7df69808004f15c98d 100644
--- a/pkg/compiler/lib/src/kernel/kernel_visitor.dart
+++ b/pkg/compiler/lib/src/kernel/kernel_visitor.dart
@@ -1930,7 +1930,7 @@ class KernelVisitor extends Object
@override
ir.Expression handleStaticFieldGet(Send node, FieldElement field, _) {
- return buildStaticGet(field);
+ return associateNode(buildStaticGet(field), node);
}
@override
@@ -2137,7 +2137,8 @@ class KernelVisitor extends Object
NodeList arguments,
CallStructure callStructure,
_) {
- return buildStaticInvoke(function, arguments, isConst: false);
+ return associateNode(
+ buildStaticInvoke(function, arguments, isConst: false), node);
}
@override
@@ -2762,7 +2763,7 @@ class KernelVisitor extends Object
FieldElement field = currentElement;
return field.isMalformed
? new ir.InvalidExpression()
- : visitForValue(field.initializer);
+ : associateNode(visitForValue(field.initializer), field.initializer);
});
}
}
« no previous file with comments | « no previous file | pkg/compiler/lib/src/ssa/builder_kernel.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698