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

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

Issue 56003002: Revert "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
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/ssa/builder.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 = 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
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).
1112 } 1113 }
1113 1114
1114 void registerClassUsingVariableExpression(ClassElement cls) { 1115 void registerClassUsingVariableExpression(ClassElement cls) {
1115 rti.classesUsingTypeVariableExpression.add(cls); 1116 rti.classesUsingTypeVariableExpression.add(cls);
1116 } 1117 }
1117 1118
1118 bool classNeedsRti(ClassElement cls) { 1119 bool classNeedsRti(ClassElement cls) {
1119 return rti.classesNeedingRti.contains(cls.declaration) || 1120 return rti.classesNeedingRti.contains(cls.declaration) ||
1120 compiler.enabledRuntimeType; 1121 compiler.enabledRuntimeType;
1121 } 1122 }
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after
1860 copy(constant.values); 1861 copy(constant.values);
1861 copy(constant.protoValue); 1862 copy(constant.protoValue);
1862 copy(constant); 1863 copy(constant);
1863 } 1864 }
1864 1865
1865 void visitConstructed(ConstructedConstant constant) { 1866 void visitConstructed(ConstructedConstant constant) {
1866 copy(constant.fields); 1867 copy(constant.fields);
1867 copy(constant); 1868 copy(constant);
1868 } 1869 }
1869 } 1870 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/ssa/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698