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 = new Set<HInstruction>(); | 8 final Set<HInstruction> boundsChecked = new Set<HInstruction>(); |
9 final Set<HInstruction> allocatedFixedLists = new Set<HInstruction>(); | 9 final Set<HInstruction> allocatedFixedLists = new Set<HInstruction>(); |
10 } | 10 } |
(...skipping 1091 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1102 }); | 1102 }); |
1103 } | 1103 } |
1104 } | 1104 } |
1105 | 1105 |
1106 if (type is InterfaceType) { | 1106 if (type is InterfaceType) { |
1107 InterfaceType itf = type; | 1107 InterfaceType itf = type; |
1108 itf.typeArguments.forEach((DartType argument) { | 1108 itf.typeArguments.forEach((DartType argument) { |
1109 analyzeTypeArgument(type, argument); | 1109 analyzeTypeArgument(type, argument); |
1110 }); | 1110 }); |
1111 } | 1111 } |
1112 // TODO(ngeoffray): Also handle T a (in checked mode). | |
1113 } | 1112 } |
1114 | 1113 |
1115 void registerClassUsingVariableExpression(ClassElement cls) { | 1114 void registerClassUsingVariableExpression(ClassElement cls) { |
1116 rti.classesUsingTypeVariableExpression.add(cls); | 1115 rti.classesUsingTypeVariableExpression.add(cls); |
1117 } | 1116 } |
1118 | 1117 |
1119 bool classNeedsRti(ClassElement cls) { | 1118 bool classNeedsRti(ClassElement cls) { |
1120 return rti.classesNeedingRti.contains(cls.declaration) || | 1119 return rti.classesNeedingRti.contains(cls.declaration) || |
1121 compiler.enabledRuntimeType; | 1120 compiler.enabledRuntimeType; |
1122 } | 1121 } |
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1861 copy(constant.values); | 1860 copy(constant.values); |
1862 copy(constant.protoValue); | 1861 copy(constant.protoValue); |
1863 copy(constant); | 1862 copy(constant); |
1864 } | 1863 } |
1865 | 1864 |
1866 void visitConstructed(ConstructedConstant constant) { | 1865 void visitConstructed(ConstructedConstant constant) { |
1867 copy(constant.fields); | 1866 copy(constant.fields); |
1868 copy(constant); | 1867 copy(constant); |
1869 } | 1868 } |
1870 } | 1869 } |
OLD | NEW |