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

Side by Side Diff: pkg/compiler/lib/src/js_backend/codegen/js_tree_builder.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: Update comment. 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library js_tree_ir_builder; 5 library js_tree_ir_builder;
6 6
7 import '../../tree_ir/tree_ir_builder.dart' show Builder; 7 import '../../tree_ir/tree_ir_builder.dart' show Builder;
8 import 'glue.dart' show Glue; 8 import 'glue.dart' show Glue;
9 import '../../dart2jslib.dart' show Selector, InternalErrorFunction; 9 import '../../dart2jslib.dart' show Selector, InternalErrorFunction;
10 import '../../elements/elements.dart'; 10 import '../../elements/elements.dart';
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 visit(node.body)); 62 visit(node.body));
63 } 63 }
64 64
65 Expression visitCreateBox(cps_ir.CreateBox node) { 65 Expression visitCreateBox(cps_ir.CreateBox node) {
66 return new CreateBox(); 66 return new CreateBox();
67 } 67 }
68 68
69 Expression visitCreateInstance(cps_ir.CreateInstance node) { 69 Expression visitCreateInstance(cps_ir.CreateInstance node) {
70 return new CreateInstance( 70 return new CreateInstance(
71 node.classElement, 71 node.classElement,
72 node.arguments.map(getVariableUse).toList()); 72 node.arguments.map(getVariableUse).toList(),
73 node.hasTypeInformation
74 ? node.typeInformation.map(getVariableUse).toList()
75 : null);
73 } 76 }
74 } 77 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698