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 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 case HType.NUMBER: type = "number"; break; | 412 case HType.NUMBER: type = "number"; break; |
413 case HType.STRING: type = "string"; break; | 413 case HType.STRING: type = "string"; break; |
414 case HType.STRING_OR_ARRAY: type = "string_or_array"; break; | 414 case HType.STRING_OR_ARRAY: type = "string_or_array"; break; |
415 case HType.UNKNOWN: type = 'unknown'; break; | 415 case HType.UNKNOWN: type = 'unknown'; break; |
416 default: unreachable(); | 416 default: unreachable(); |
417 } | 417 } |
418 return "TypeGuard: ${temporaryId(node.inputs[0])} is $type"; | 418 return "TypeGuard: ${temporaryId(node.inputs[0])} is $type"; |
419 } | 419 } |
420 | 420 |
421 String visitIs(HIs node) { | 421 String visitIs(HIs node) { |
422 String type = node.typeExpression.toString(); | 422 String type = node.typeName.toString(); |
423 return "TypeTest: ${temporaryId(node.expression)} is $type"; | 423 return "TypeTest: ${temporaryId(node.expression)} is $type"; |
424 } | 424 } |
425 } | 425 } |
OLD | NEW |