| 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 681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 692 | 692 |
| 693 Element get cyclicThrowHelper { | 693 Element get cyclicThrowHelper { |
| 694 return compiler.findHelper(const SourceString("throwCyclicInit")); | 694 return compiler.findHelper(const SourceString("throwCyclicInit")); |
| 695 } | 695 } |
| 696 | 696 |
| 697 JavaScriptItemCompilationContext createItemCompilationContext() { | 697 JavaScriptItemCompilationContext createItemCompilationContext() { |
| 698 return new JavaScriptItemCompilationContext(); | 698 return new JavaScriptItemCompilationContext(); |
| 699 } | 699 } |
| 700 | 700 |
| 701 Element getInterceptor(Selector selector) { | 701 Element getInterceptor(Selector selector) { |
| 702 return interceptors.getStaticInterceptorBySelector(selector); | 702 return interceptors.getStaticInterceptor(selector); |
| 703 } | 703 } |
| 704 | 704 |
| 705 void enqueueHelpers(Enqueuer world) { | 705 void enqueueHelpers(Enqueuer world) { |
| 706 enqueueAllTopLevelFunctions(compiler.jsHelperLibrary, world); | 706 enqueueAllTopLevelFunctions(compiler.jsHelperLibrary, world); |
| 707 | 707 |
| 708 jsIndexingBehaviorInterface = | 708 jsIndexingBehaviorInterface = |
| 709 compiler.findHelper(const SourceString('JavaScriptIndexingBehavior')); | 709 compiler.findHelper(const SourceString('JavaScriptIndexingBehavior')); |
| 710 if (jsIndexingBehaviorInterface != null) { | 710 if (jsIndexingBehaviorInterface != null) { |
| 711 world.registerIsCheck(jsIndexingBehaviorInterface.computeType(compiler)); | 711 world.registerIsCheck(jsIndexingBehaviorInterface.computeType(compiler)); |
| 712 } | 712 } |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 952 print("Inferred return types:"); | 952 print("Inferred return types:"); |
| 953 print("----------------------"); | 953 print("----------------------"); |
| 954 dumpReturnTypes(); | 954 dumpReturnTypes(); |
| 955 print(""); | 955 print(""); |
| 956 print("Inferred field types:"); | 956 print("Inferred field types:"); |
| 957 print("------------------------"); | 957 print("------------------------"); |
| 958 fieldTypes.dump(); | 958 fieldTypes.dump(); |
| 959 print(""); | 959 print(""); |
| 960 } | 960 } |
| 961 } | 961 } |
| OLD | NEW |