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