| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 library dart2js.js_emitter.full_emitter; | 5 library dart2js.js_emitter.full_emitter; |
| 6 | 6 |
| 7 import 'dart:collection' show HashMap; | 7 import 'dart:collection' show HashMap; |
| 8 import 'dart:convert'; | 8 import 'dart:convert'; |
| 9 | 9 |
| 10 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames; | 10 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames; |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 new Map<Fragment, Map<Element, ClassBuilder>>(); | 172 new Map<Fragment, Map<Element, ClassBuilder>>(); |
| 173 | 173 |
| 174 final bool generateSourceMap; | 174 final bool generateSourceMap; |
| 175 | 175 |
| 176 Emitter(this.compiler, this.namer, this._closedWorld, this.generateSourceMap, | 176 Emitter(this.compiler, this.namer, this._closedWorld, this.generateSourceMap, |
| 177 this.task, this._sorter) | 177 this.task, this._sorter) |
| 178 : classEmitter = new ClassEmitter(_closedWorld), | 178 : classEmitter = new ClassEmitter(_closedWorld), |
| 179 interceptorEmitter = new InterceptorEmitter(_closedWorld), | 179 interceptorEmitter = new InterceptorEmitter(_closedWorld), |
| 180 nsmEmitter = new NsmEmitter(_closedWorld) { | 180 nsmEmitter = new NsmEmitter(_closedWorld) { |
| 181 constantEmitter = new ConstantEmitter( | 181 constantEmitter = new ConstantEmitter( |
| 182 compiler, namer, this.constantReference, constantListGenerator); | 182 compiler.options, |
| 183 _closedWorld.commonElements, |
| 184 compiler.backend.rtiNeed, |
| 185 compiler.backend.rtiEncoder, |
| 186 namer, |
| 187 task, |
| 188 this.constantReference, |
| 189 constantListGenerator); |
| 183 containerBuilder.emitter = this; | 190 containerBuilder.emitter = this; |
| 184 classEmitter.emitter = this; | 191 classEmitter.emitter = this; |
| 185 nsmEmitter.emitter = this; | 192 nsmEmitter.emitter = this; |
| 186 interceptorEmitter.emitter = this; | 193 interceptorEmitter.emitter = this; |
| 187 } | 194 } |
| 188 | 195 |
| 189 DiagnosticReporter get reporter => compiler.reporter; | 196 DiagnosticReporter get reporter => compiler.reporter; |
| 190 | 197 |
| 191 NativeData get _nativeData => _closedWorld.nativeData; | 198 NativeData get _nativeData => _closedWorld.nativeData; |
| 192 | 199 |
| (...skipping 1737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1930 // data. | 1937 // data. |
| 1931 mapping["_comment"] = "This mapping shows which compiled `.js` files are " | 1938 mapping["_comment"] = "This mapping shows which compiled `.js` files are " |
| 1932 "needed for a given deferred library import."; | 1939 "needed for a given deferred library import."; |
| 1933 mapping.addAll(compiler.deferredLoadTask.computeDeferredMap()); | 1940 mapping.addAll(compiler.deferredLoadTask.computeDeferredMap()); |
| 1934 compiler.outputProvider( | 1941 compiler.outputProvider( |
| 1935 compiler.options.deferredMapUri.path, '', OutputType.info) | 1942 compiler.options.deferredMapUri.path, '', OutputType.info) |
| 1936 ..add(const JsonEncoder.withIndent(" ").convert(mapping)) | 1943 ..add(const JsonEncoder.withIndent(" ").convert(mapping)) |
| 1937 ..close(); | 1944 ..close(); |
| 1938 } | 1945 } |
| 1939 } | 1946 } |
| OLD | NEW |