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

Unified Diff: pkg/compiler/lib/src/cps_ir/shrinking_reductions.dart

Issue 1011403003: cps-ir: Set runtime type information for new objects that require it. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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/cps_ir/shrinking_reductions.dart
diff --git a/pkg/compiler/lib/src/cps_ir/shrinking_reductions.dart b/pkg/compiler/lib/src/cps_ir/shrinking_reductions.dart
index e91d58e64a5fde9fe1caa1a52b58b4e7000ae546..2957c474de0804cd4567045c23535a986b738608 100644
--- a/pkg/compiler/lib/src/cps_ir/shrinking_reductions.dart
+++ b/pkg/compiler/lib/src/cps_ir/shrinking_reductions.dart
@@ -568,6 +568,7 @@ class ParentVisitor extends RecursiveVisitor {
processInvokeConstructor(InvokeConstructor node) {
node.continuation.parent = node;
node.arguments.forEach((Reference ref) => ref.parent = node);
+ node.typeArguments.forEach((Reference ref) => ref.parent = node);
}
processConcatenateStrings(ConcatenateStrings node) {
@@ -669,6 +670,10 @@ class ParentVisitor extends RecursiveVisitor {
processReadTypeVariable(ReadTypeVariable node) {
node.target.parent = node;
}
+
+ processTypeExpression(TypeExpression node) {
+ node.arguments.forEach((Reference ref) => ref.parent = node);
+ }
}
class _ReductionKind {

Powered by Google App Engine
This is Rietveld 408576698