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

Side by Side Diff: pkg/compiler/lib/src/cps_ir/cps_ir_tracer.dart

Issue 1584543002: dart2js cps: Support inlining constructors with type arguments. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update status files and unit tests 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 unified diff | Download patch
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart ('k') | pkg/compiler/lib/src/cps_ir/inline.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 dart2js.ir_tracer; 5 library dart2js.ir_tracer;
6 6
7 import 'dart:async' show EventSink; 7 import 'dart:async' show EventSink;
8 import 'cps_ir_nodes.dart' as cps_ir; 8 import 'cps_ir_nodes.dart' as cps_ir;
9 import '../tracer.dart'; 9 import '../tracer.dart';
10 10
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 visitGetLazyStatic(cps_ir.GetLazyStatic node) { 294 visitGetLazyStatic(cps_ir.GetLazyStatic node) {
295 String element = node.element.name; 295 String element = node.element.name;
296 return "GetLazyStatic $element"; 296 return "GetLazyStatic $element";
297 } 297 }
298 298
299 visitCreateBox(cps_ir.CreateBox node) { 299 visitCreateBox(cps_ir.CreateBox node) {
300 return 'CreateBox'; 300 return 'CreateBox';
301 } 301 }
302 302
303 visitCreateInstance(cps_ir.CreateInstance node) { 303 visitCreateInstance(cps_ir.CreateInstance node) {
304 String className = node.classElement.name; 304 String name = '${node.dartType}';
305 String arguments = node.arguments.map(formatReference).join(', '); 305 String arguments = node.arguments.map(formatReference).join(', ');
306 String typeInformation = 306 String typeInformation =
307 node.typeInformation.map(formatReference).join(', '); 307 node.typeInformation.map(formatReference).join(', ');
308 return 'CreateInstance $className ($arguments) <$typeInformation>'; 308 return 'CreateInstance $name ($arguments) <$typeInformation>';
309 } 309 }
310 310
311 visitInterceptor(cps_ir.Interceptor node) { 311 visitInterceptor(cps_ir.Interceptor node) {
312 return 'Interceptor(${formatReference(node.input)}, ' 312 return 'Interceptor(${formatReference(node.input)}, '
313 '${node.interceptedClasses})'; 313 '${node.interceptedClasses})';
314 } 314 }
315 315
316 visitGetMutable(cps_ir.GetMutable node) { 316 visitGetMutable(cps_ir.GetMutable node) {
317 String variable = names.name(node.variable.definition); 317 String variable = names.name(node.variable.definition);
318 return 'GetMutable $variable'; 318 return 'GetMutable $variable';
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
691 } 691 }
692 692
693 visitBoundsCheck(cps_ir.BoundsCheck node) { 693 visitBoundsCheck(cps_ir.BoundsCheck node) {
694 unexpectedNode(node); 694 unexpectedNode(node);
695 } 695 }
696 696
697 visitNullCheck(cps_ir.NullCheck node) { 697 visitNullCheck(cps_ir.NullCheck node) {
698 unexpectedNode(node); 698 unexpectedNode(node);
699 } 699 }
700 } 700 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart ('k') | pkg/compiler/lib/src/cps_ir/inline.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698