Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Side by Side Diff: pkg/compiler/lib/src/js_emitter/lazy_emitter/model_emitter.dart

Issue 2975433002: Assert that we don't mix K and J elements (Closed)
Patch Set: Updated cf. comments Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698