OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 dart2js_incremental; | 5 part of dart2js_incremental; |
6 | 6 |
7 /// Do not call this method directly. It will be made private. | 7 /// Do not call this method directly. It will be made private. |
8 // TODO(ahe): Make this method private. | 8 // TODO(ahe): Make this method private. |
9 Future<Compiler> reuseCompiler( | 9 Future<Compiler> reuseCompiler( |
10 {DiagnosticHandler diagnosticHandler, | 10 {DiagnosticHandler diagnosticHandler, |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 } | 53 } |
54 } | 54 } |
55 oldTag.makeCurrent(); | 55 oldTag.makeCurrent(); |
56 compiler = new Compiler( | 56 compiler = new Compiler( |
57 inputProvider, | 57 inputProvider, |
58 outputProvider, | 58 outputProvider, |
59 diagnosticHandler, | 59 diagnosticHandler, |
60 libraryRoot, | 60 libraryRoot, |
61 packageRoot, | 61 packageRoot, |
62 options, | 62 options, |
63 environment); | 63 environment, |
| 64 null, |
| 65 null); |
64 JavaScriptBackend backend = compiler.backend; | 66 JavaScriptBackend backend = compiler.backend; |
65 | 67 |
66 // Much like a scout, an incremental compiler is always prepared. For | 68 // Much like a scout, an incremental compiler is always prepared. For |
67 // mixins, classes, and lazy statics, at least. | 69 // mixins, classes, and lazy statics, at least. |
68 backend.emitter.oldEmitter | 70 backend.emitter.oldEmitter |
69 ..needsClassSupport = true | 71 ..needsClassSupport = true |
70 ..needsMixinSupport = true | 72 ..needsMixinSupport = true |
71 ..needsLazyInitializer = true | 73 ..needsLazyInitializer = true |
72 ..needsStructuredMemberInfo = true; | 74 ..needsStructuredMemberInfo = true; |
73 | 75 |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 final Map<String, String> output = new Map<String, String>(); | 196 final Map<String, String> output = new Map<String, String>(); |
195 | 197 |
196 EventSink<String> call(String name, String extension) { | 198 EventSink<String> call(String name, String extension) { |
197 return new StringEventSink((String data) { | 199 return new StringEventSink((String data) { |
198 output['$name.$extension'] = data; | 200 output['$name.$extension'] = data; |
199 }); | 201 }); |
200 } | 202 } |
201 | 203 |
202 String operator[] (String key) => output[key]; | 204 String operator[] (String key) => output[key]; |
203 } | 205 } |
OLD | NEW |