| 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.lazy_emitter.model_emitter; | 5 library dart2js.js_emitter.lazy_emitter.model_emitter; |
| 6 | 6 |
| 7 import 'package:js_runtime/shared/embedded_names.dart' | 7 import 'package:js_runtime/shared/embedded_names.dart' |
| 8 show | 8 show |
| 9 CREATE_NEW_ISOLATE, | 9 CREATE_NEW_ISOLATE, |
| 10 DEFERRED_LIBRARY_URIS, | 10 DEFERRED_LIBRARY_URIS, |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 static const String deferredExtension = "part.js"; | 52 static const String deferredExtension = "part.js"; |
| 53 | 53 |
| 54 static const String typeNameProperty = r"builtin$cls"; | 54 static const String typeNameProperty = r"builtin$cls"; |
| 55 | 55 |
| 56 ModelEmitter(this.compiler, this.namer, this.nativeEmitter, this._closedWorld, | 56 ModelEmitter(this.compiler, this.namer, this.nativeEmitter, this._closedWorld, |
| 57 CodeEmitterTask task) { | 57 CodeEmitterTask task) { |
| 58 this.constantEmitter = new ConstantEmitter( | 58 this.constantEmitter = new ConstantEmitter( |
| 59 compiler.options, | 59 compiler.options, |
| 60 _closedWorld.commonElements, | 60 _closedWorld.commonElements, |
| 61 compiler.codegenWorldBuilder, | 61 compiler.codegenWorldBuilder, |
| 62 compiler.backend.rtiNeed, | 62 _closedWorld.rtiNeed, |
| 63 compiler.backend.rtiEncoder, | 63 compiler.backend.rtiEncoder, |
| 64 namer, | 64 namer, |
| 65 task, | 65 task, |
| 66 this.generateConstantReference, | 66 this.generateConstantReference, |
| 67 constantListGenerator); | 67 constantListGenerator); |
| 68 } | 68 } |
| 69 | 69 |
| 70 InterceptorData get _interceptorData => _closedWorld.interceptorData; | 70 InterceptorData get _interceptorData => _closedWorld.interceptorData; |
| 71 | 71 |
| 72 js.Expression constantListGenerator(js.Expression array) { | 72 js.Expression constantListGenerator(js.Expression array) { |
| (...skipping 1215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1288 #eagerClasses; | 1288 #eagerClasses; |
| 1289 | 1289 |
| 1290 var end = Date.now(); | 1290 var end = Date.now(); |
| 1291 // print('Setup: ' + (end - start) + ' ms.'); | 1291 // print('Setup: ' + (end - start) + ' ms.'); |
| 1292 | 1292 |
| 1293 #invokeMain; // Start main. | 1293 #invokeMain; // Start main. |
| 1294 | 1294 |
| 1295 })(Date.now(), #code) | 1295 })(Date.now(), #code) |
| 1296 }"""; | 1296 }"""; |
| 1297 } | 1297 } |
| OLD | NEW |