| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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('ssa'); | 5 #library('ssa'); |
| 6 | 6 |
| 7 #import('../closure.dart'); | 7 #import('../closure.dart'); |
| 8 #import('../js/js.dart', prefix: 'js'); | 8 #import('../js/js.dart', prefix: 'js'); |
| 9 #import('../leg.dart'); | 9 #import('../leg.dart'); |
| 10 #import('../source_file.dart'); | 10 #import('../source_file.dart'); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #source('builder.dart'); | 22 #source('builder.dart'); |
| 23 #source('codegen.dart'); | 23 #source('codegen.dart'); |
| 24 #source('codegen_helpers.dart'); | 24 #source('codegen_helpers.dart'); |
| 25 #source('js_names.dart'); | 25 #source('js_names.dart'); |
| 26 #source('nodes.dart'); | 26 #source('nodes.dart'); |
| 27 #source('optimize.dart'); | 27 #source('optimize.dart'); |
| 28 #source('types.dart'); | 28 #source('types.dart'); |
| 29 #source('types_propagation.dart'); | 29 #source('types_propagation.dart'); |
| 30 #source('validate.dart'); | 30 #source('validate.dart'); |
| 31 #source('variable_allocator.dart'); | 31 #source('variable_allocator.dart'); |
| 32 #source('value_range_analyzer.dart'); |
| 32 #source('value_set.dart'); | 33 #source('value_set.dart'); |
| 33 | 34 |
| 34 class RuntimeTypeInformation { | 35 class RuntimeTypeInformation { |
| 35 bool hasTypeArguments(DartType type) { | 36 bool hasTypeArguments(DartType type) { |
| 36 if (type is InterfaceType) { | 37 if (type is InterfaceType) { |
| 37 InterfaceType interfaceType = type; | 38 InterfaceType interfaceType = type; |
| 38 return !interfaceType.arguments.isEmpty(); | 39 return !interfaceType.arguments.isEmpty(); |
| 39 } | 40 } |
| 40 return false; | 41 return false; |
| 41 } | 42 } |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 */ | 89 */ |
| 89 static String generateTypeVariableString(ClassElement element, | 90 static String generateTypeVariableString(ClassElement element, |
| 90 int numberOfInputs) { | 91 int numberOfInputs) { |
| 91 String stringify(TypeVariableType variable, bool hasValue) { | 92 String stringify(TypeVariableType variable, bool hasValue) { |
| 92 return "'${variable.name.slowToString()}': #"; | 93 return "'${variable.name.slowToString()}': #"; |
| 93 } | 94 } |
| 94 return stringifyTypeVariables(element.typeVariables, numberOfInputs, | 95 return stringifyTypeVariables(element.typeVariables, numberOfInputs, |
| 95 stringify); | 96 stringify); |
| 96 } | 97 } |
| 97 } | 98 } |
| OLD | NEW |