| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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('tracer'); | 5 #library('tracer'); |
| 6 | 6 |
| 7 #import('dart:io'); | 7 #import('dart:io'); |
| 8 #import('ssa.dart'); | 8 #import('ssa.dart'); |
| 9 #import('../leg.dart'); | 9 #import('../leg.dart'); |
| 10 | 10 |
| (...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 // The last input is the guarded expression. | 426 // The last input is the guarded expression. |
| 427 for (int i = 0; i < inputs.length - 1; i++) { | 427 for (int i = 0; i < inputs.length - 1; i++) { |
| 428 envBuffer.add(" ${temporaryId(inputs[i])}"); | 428 envBuffer.add(" ${temporaryId(inputs[i])}"); |
| 429 } | 429 } |
| 430 String on = node.isOn ? "on" : "off"; | 430 String on = node.isOn ? "on" : "off"; |
| 431 String id = temporaryId(node.guarded); | 431 String id = temporaryId(node.guarded); |
| 432 return "TypeGuard($on): $id is $type env: $envBuffer"; | 432 return "TypeGuard($on): $id is $type env: $envBuffer"; |
| 433 } | 433 } |
| 434 | 434 |
| 435 String visitIs(HIs node) { | 435 String visitIs(HIs node) { |
| 436 String type = node.typeName.toString(); | 436 String type = node.typeExpression.toString(); |
| 437 return "TypeTest: ${temporaryId(node.expression)} is $type"; | 437 return "TypeTest: ${temporaryId(node.expression)} is $type"; |
| 438 } | 438 } |
| 439 } | 439 } |
| OLD | NEW |