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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 51 |
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.backend.rtiNeed, | 62 compiler.backend.rtiNeed, |
62 compiler.backend.rtiEncoder, | 63 compiler.backend.rtiEncoder, |
63 namer, | 64 namer, |
64 task, | 65 task, |
65 this.generateConstantReference, | 66 this.generateConstantReference, |
66 constantListGenerator); | 67 constantListGenerator); |
67 } | 68 } |
68 | 69 |
69 InterceptorData get _interceptorData => _closedWorld.interceptorData; | 70 InterceptorData get _interceptorData => _closedWorld.interceptorData; |
70 | 71 |
(...skipping 1218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1289 #eagerClasses; | 1290 #eagerClasses; |
1290 | 1291 |
1291 var end = Date.now(); | 1292 var end = Date.now(); |
1292 // print('Setup: ' + (end - start) + ' ms.'); | 1293 // print('Setup: ' + (end - start) + ' ms.'); |
1293 | 1294 |
1294 #invokeMain; // Start main. | 1295 #invokeMain; // Start main. |
1295 | 1296 |
1296 })(Date.now(), #code) | 1297 })(Date.now(), #code) |
1297 }"""; | 1298 }"""; |
1298 } | 1299 } |
OLD | NEW |