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

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

Issue 1637843002: typeInformation in CreateInstance is a kind of TypeExpression (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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/gvn.dart
diff --git a/pkg/compiler/lib/src/cps_ir/gvn.dart b/pkg/compiler/lib/src/cps_ir/gvn.dart
index a4a591f3ae2811db3ca1dd12abcc77a5bc15858e..2d154989215c9dab0f14d1a1e6cd8eebaf1beae4 100644
--- a/pkg/compiler/lib/src/cps_ir/gvn.dart
+++ b/pkg/compiler/lib/src/cps_ir/gvn.dart
@@ -729,7 +729,11 @@ class GvnVectorBuilder extends DeepRecursiveVisitor {
}
processTypeExpression(TypeExpression node) {
- vector = [GvnCode.TYPE_EXPRESSION, node.dartType];
+ if (node.isForInstance) {
+ vector = [GvnCode.TYPE_EXPRESSION, null]; // dartType unused.
+ } else {
+ vector = [GvnCode.TYPE_EXPRESSION, node.dartType];
+ }
}
processInterceptor(Interceptor node) {

Powered by Google App Engine
This is Rietveld 408576698