| OLD | NEW |
| 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 | 8 |
| 9 import '../tracer.dart'; | 9 import '../tracer.dart'; |
| 10 import 'cps_ir_nodes.dart' as cps_ir; | 10 import 'cps_ir_nodes.dart' as cps_ir; |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 tag("states", () { | 76 tag("states", () { |
| 77 tag("locals", () { | 77 tag("locals", () { |
| 78 printProperty("size", 0); | 78 printProperty("size", 0); |
| 79 printProperty("method", "None"); | 79 printProperty("method", "None"); |
| 80 }); | 80 }); |
| 81 }); | 81 }); |
| 82 tag("HIR", () { | 82 tag("HIR", () { |
| 83 String formatParameter(cps_ir.Parameter param) { | 83 String formatParameter(cps_ir.Parameter param) { |
| 84 return '${names.name(param)} ${param.type}'; | 84 return '${names.name(param)} ${param.type}'; |
| 85 } | 85 } |
| 86 |
| 86 if (entryPoint != null) { | 87 if (entryPoint != null) { |
| 87 String thisParam = entryPoint.receiverParameter != null | 88 String thisParam = entryPoint.receiverParameter != null |
| 88 ? formatParameter(entryPoint.receiverParameter) | 89 ? formatParameter(entryPoint.receiverParameter) |
| 89 : 'no receiver'; | 90 : 'no receiver'; |
| 90 String interceptorParam = entryPoint.interceptorParameter != null | 91 String interceptorParam = entryPoint.interceptorParameter != null |
| 91 ? formatParameter(entryPoint.interceptorParameter) | 92 ? formatParameter(entryPoint.interceptorParameter) |
| 92 : 'no interceptor'; | 93 : 'no interceptor'; |
| 93 String params = entryPoint.parameters.map(formatParameter).join(', '); | 94 String params = entryPoint.parameters.map(formatParameter).join(', '); |
| 94 printStmt('x0', 'Entry ($interceptorParam) ($thisParam) ($params)'); | 95 printStmt('x0', 'Entry ($interceptorParam) ($thisParam) ($params)'); |
| 95 } | 96 } |
| (...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 675 } | 676 } |
| 676 | 677 |
| 677 visitBoundsCheck(cps_ir.BoundsCheck node) { | 678 visitBoundsCheck(cps_ir.BoundsCheck node) { |
| 678 unexpectedNode(node); | 679 unexpectedNode(node); |
| 679 } | 680 } |
| 680 | 681 |
| 681 visitReceiverCheck(cps_ir.ReceiverCheck node) { | 682 visitReceiverCheck(cps_ir.ReceiverCheck node) { |
| 682 unexpectedNode(node); | 683 unexpectedNode(node); |
| 683 } | 684 } |
| 684 } | 685 } |
| OLD | NEW |