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

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

Issue 1581853002: dart2js cps: Copy allocation site type when cloning. (Closed) Base URL: git@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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
diff --git a/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart b/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
index 96b094540f230ffe0a00a57bc5e15785336c88c6..49c8a6b1117ba98f416c521d72fc2407718a4fa5 100644
--- a/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
+++ b/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
@@ -2535,7 +2535,8 @@ class DefinitionCopyingVisitor extends Visitor<Definition> {
Definition visitInvokeConstructor(InvokeConstructor node) {
return new InvokeConstructor(node.dartType, node.target, node.selector,
getList(node.arguments),
- node.sourceInformation);
+ node.sourceInformation)
+ ..allocationSiteType = node.allocationSiteType;
}
Definition visitTypeCast(TypeCast node) {
@@ -2569,7 +2570,8 @@ class DefinitionCopyingVisitor extends Visitor<Definition> {
}
Definition visitLiteralList(LiteralList node) {
- return new LiteralList(node.dartType, getList(node.values));
+ return new LiteralList(node.dartType, getList(node.values))
+ ..allocationSiteType = node.allocationSiteType;
}
Definition visitLiteralMap(LiteralMap node) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698