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

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

Issue 12223036: Always explicitely give a type to HInvokeStatic, and make the literal map know it's a map. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 months 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/native_handler.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 typedef void Recompile(Element element); 7 typedef void Recompile(Element element);
8 8
9 class ReturnInfo { 9 class ReturnInfo {
10 HType returnType; 10 HType returnType;
(...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after
886 } else if (cls == compiler.functionClass) { 886 } else if (cls == compiler.functionClass) {
887 addInterceptors(jsFunctionClass, enqueuer); 887 addInterceptors(jsFunctionClass, enqueuer);
888 } else if (cls == compiler.boolClass) { 888 } else if (cls == compiler.boolClass) {
889 addInterceptors(jsBoolClass, enqueuer); 889 addInterceptors(jsBoolClass, enqueuer);
890 } else if (cls == compiler.nullClass) { 890 } else if (cls == compiler.nullClass) {
891 addInterceptors(jsNullClass, enqueuer); 891 addInterceptors(jsNullClass, enqueuer);
892 } else if (cls == compiler.numClass) { 892 } else if (cls == compiler.numClass) {
893 addInterceptors(jsIntClass, enqueuer); 893 addInterceptors(jsIntClass, enqueuer);
894 addInterceptors(jsDoubleClass, enqueuer); 894 addInterceptors(jsDoubleClass, enqueuer);
895 addInterceptors(jsNumberClass, enqueuer); 895 addInterceptors(jsNumberClass, enqueuer);
896 } else if (cls == compiler.mapClass) {
897 // The backend will use a literal list to initialize the entries
898 // of the map.
899 if (enqueuer.isResolutionQueue) {
900 enqueuer.registerInstantiatedClass(compiler.listClass);
901 }
896 } 902 }
897 } 903 }
898 904
899 Element get cyclicThrowHelper { 905 Element get cyclicThrowHelper {
900 return compiler.findHelper(const SourceString("throwCyclicInit")); 906 return compiler.findHelper(const SourceString("throwCyclicInit"));
901 } 907 }
902 908
903 JavaScriptItemCompilationContext createItemCompilationContext() { 909 JavaScriptItemCompilationContext createItemCompilationContext() {
904 return new JavaScriptItemCompilationContext(); 910 return new JavaScriptItemCompilationContext();
905 } 911 }
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
1210 } 1216 }
1211 1217
1212 Element getSetRuntimeTypeInfo() { 1218 Element getSetRuntimeTypeInfo() {
1213 return compiler.findHelper(const SourceString('setRuntimeTypeInfo')); 1219 return compiler.findHelper(const SourceString('setRuntimeTypeInfo'));
1214 } 1220 }
1215 1221
1216 Element getGetRuntimeTypeInfo() { 1222 Element getGetRuntimeTypeInfo() {
1217 return compiler.findHelper(const SourceString('getRuntimeTypeInfo')); 1223 return compiler.findHelper(const SourceString('getRuntimeTypeInfo'));
1218 } 1224 }
1219 } 1225 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/native_handler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698