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

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: Add parameter for each type variable to the JS-factory. 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..c77e5f2abe89a3b49ee6c3dccf9663c2e9da03c6 100644
--- a/pkg/compiler/lib/src/cps_ir/shrinking_reductions.dart
+++ b/pkg/compiler/lib/src/cps_ir/shrinking_reductions.dart
@@ -657,6 +657,9 @@ class ParentVisitor extends RecursiveVisitor {
processCreateInstance(CreateInstance node) {
node.arguments.forEach((Reference ref) => ref.parent = node);
+ if (node.hasTypeInformation) {
+ node.typeInformation.forEach((Reference ref) => ref.parent = node);
+ }
}
processCreateBox(CreateBox node) {
@@ -669,6 +672,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