| 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 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |