Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(569)

Side by Side Diff: sdk/lib/_internal/compiler/implementation/js_backend/backend.dart

Issue 54293008: Set runtime type on list and map literals. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698