| 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 part of js_backend; | 5 part of js_backend; |
| 6 | 6 |
| 7 class JavaScriptItemCompilationContext extends ItemCompilationContext { | 7 class JavaScriptItemCompilationContext extends ItemCompilationContext { |
| 8 final Set<HInstruction> boundsChecked; | 8 final Set<HInstruction> boundsChecked; |
| 9 | 9 |
| 10 JavaScriptItemCompilationContext() | 10 JavaScriptItemCompilationContext() |
| (...skipping 1110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1121 }); | 1121 }); |
| 1122 } | 1122 } |
| 1123 } | 1123 } |
| 1124 | 1124 |
| 1125 if (type is InterfaceType) { | 1125 if (type is InterfaceType) { |
| 1126 InterfaceType itf = type; | 1126 InterfaceType itf = type; |
| 1127 itf.typeArguments.forEach((DartType argument) { | 1127 itf.typeArguments.forEach((DartType argument) { |
| 1128 analyzeTypeArgument(type, argument); | 1128 analyzeTypeArgument(type, argument); |
| 1129 }); | 1129 }); |
| 1130 } | 1130 } |
| 1131 // TODO(ngeoffray): Also handle T a (in checked mode). | |
| 1132 } | 1131 } |
| 1133 | 1132 |
| 1134 void registerClassUsingVariableExpression(ClassElement cls) { | 1133 void registerClassUsingVariableExpression(ClassElement cls) { |
| 1135 rti.classesUsingTypeVariableExpression.add(cls); | 1134 rti.classesUsingTypeVariableExpression.add(cls); |
| 1136 } | 1135 } |
| 1137 | 1136 |
| 1138 bool classNeedsRti(ClassElement cls) { | 1137 bool classNeedsRti(ClassElement cls) { |
| 1139 return rti.classesNeedingRti.contains(cls.declaration) || | 1138 return rti.classesNeedingRti.contains(cls.declaration) || |
| 1140 compiler.enabledRuntimeType; | 1139 compiler.enabledRuntimeType; |
| 1141 } | 1140 } |
| (...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1880 copy(constant.values); | 1879 copy(constant.values); |
| 1881 copy(constant.protoValue); | 1880 copy(constant.protoValue); |
| 1882 copy(constant); | 1881 copy(constant); |
| 1883 } | 1882 } |
| 1884 | 1883 |
| 1885 void visitConstructed(ConstructedConstant constant) { | 1884 void visitConstructed(ConstructedConstant constant) { |
| 1886 copy(constant.fields); | 1885 copy(constant.fields); |
| 1887 copy(constant); | 1886 copy(constant); |
| 1888 } | 1887 } |
| 1889 } | 1888 } |
| OLD | NEW |