| 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 | 172 |
| 173 Emitter(this.compiler, this.namer, this._closedWorld, this.generateSourceMap, | 173 Emitter(this.compiler, this.namer, this._closedWorld, this.generateSourceMap, |
| 174 this.task, this._sorter) | 174 this.task, this._sorter) |
| 175 : classEmitter = new ClassEmitter(_closedWorld), | 175 : classEmitter = new ClassEmitter(_closedWorld), |
| 176 interceptorEmitter = new InterceptorEmitter(_closedWorld), | 176 interceptorEmitter = new InterceptorEmitter(_closedWorld), |
| 177 nsmEmitter = new NsmEmitter(_closedWorld) { | 177 nsmEmitter = new NsmEmitter(_closedWorld) { |
| 178 constantEmitter = new ConstantEmitter( | 178 constantEmitter = new ConstantEmitter( |
| 179 compiler.options, | 179 compiler.options, |
| 180 _closedWorld.commonElements, | 180 _closedWorld.commonElements, |
| 181 compiler.codegenWorldBuilder, | 181 compiler.codegenWorldBuilder, |
| 182 compiler.backend.rtiNeed, | 182 _closedWorld.rtiNeed, |
| 183 compiler.backend.rtiEncoder, | 183 compiler.backend.rtiEncoder, |
| 184 namer, | 184 namer, |
| 185 task, | 185 task, |
| 186 this.constantReference, | 186 this.constantReference, |
| 187 constantListGenerator); | 187 constantListGenerator); |
| 188 containerBuilder.emitter = this; | 188 containerBuilder.emitter = this; |
| 189 classEmitter.emitter = this; | 189 classEmitter.emitter = this; |
| 190 nsmEmitter.emitter = this; | 190 nsmEmitter.emitter = this; |
| 191 interceptorEmitter.emitter = this; | 191 interceptorEmitter.emitter = this; |
| 192 } | 192 } |
| (...skipping 1771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1964 // data. | 1964 // data. |
| 1965 mapping["_comment"] = "This mapping shows which compiled `.js` files are " | 1965 mapping["_comment"] = "This mapping shows which compiled `.js` files are " |
| 1966 "needed for a given deferred library import."; | 1966 "needed for a given deferred library import."; |
| 1967 mapping.addAll(compiler.deferredLoadTask.computeDeferredMap()); | 1967 mapping.addAll(compiler.deferredLoadTask.computeDeferredMap()); |
| 1968 compiler.outputProvider( | 1968 compiler.outputProvider( |
| 1969 compiler.options.deferredMapUri.path, '', OutputType.info) | 1969 compiler.options.deferredMapUri.path, '', OutputType.info) |
| 1970 ..add(const JsonEncoder.withIndent(" ").convert(mapping)) | 1970 ..add(const JsonEncoder.withIndent(" ").convert(mapping)) |
| 1971 ..close(); | 1971 ..close(); |
| 1972 } | 1972 } |
| 1973 } | 1973 } |
| OLD | NEW |