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

Side by Side Diff: pkg/compiler/lib/src/js_emitter/startup_emitter/emitter.dart

Issue 2836733002: dart2js: patch file support cleanup (Closed)
Patch Set: remove js_array change Created 3 years, 8 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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.startup_emitter; 5 library dart2js.js_emitter.startup_emitter;
6 6
7 import 'package:js_runtime/shared/embedded_names.dart' 7 import 'package:js_runtime/shared/embedded_names.dart'
8 show JsBuiltin, METADATA, STATIC_FUNCTION_NAME_TO_CLOSURE, TYPES; 8 show JsBuiltin, METADATA, STATIC_FUNCTION_NAME_TO_CLOSURE, TYPES;
9 9
10 import '../../common.dart'; 10 import '../../common.dart';
(...skipping 10 matching lines...) Expand all
21 import '../model.dart'; 21 import '../model.dart';
22 import '../program_builder/program_builder.dart' show ProgramBuilder; 22 import '../program_builder/program_builder.dart' show ProgramBuilder;
23 import 'model_emitter.dart'; 23 import 'model_emitter.dart';
24 24
25 class EmitterFactory implements emitterTask.EmitterFactory { 25 class EmitterFactory implements emitterTask.EmitterFactory {
26 final bool generateSourceMap; 26 final bool generateSourceMap;
27 27
28 EmitterFactory({this.generateSourceMap}); 28 EmitterFactory({this.generateSourceMap});
29 29
30 @override 30 @override
31 String get patchVersion => "startup";
32
33 @override
34 bool get supportsReflection => false; 31 bool get supportsReflection => false;
35 32
36 @override 33 @override
37 Emitter createEmitter( 34 Emitter createEmitter(
38 CodeEmitterTask task, Namer namer, ClosedWorld closedWorld) { 35 CodeEmitterTask task, Namer namer, ClosedWorld closedWorld) {
39 return new Emitter( 36 return new Emitter(
40 task.compiler, namer, task.nativeEmitter, generateSourceMap); 37 task.compiler, namer, task.nativeEmitter, generateSourceMap);
41 } 38 }
42 } 39 }
43 40
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 } 192 }
196 } 193 }
197 194
198 @override 195 @override
199 int generatedSize(OutputUnit unit) { 196 int generatedSize(OutputUnit unit) {
200 Fragment key = _emitter.outputBuffers.keys 197 Fragment key = _emitter.outputBuffers.keys
201 .firstWhere((Fragment fragment) => fragment.outputUnit == unit); 198 .firstWhere((Fragment fragment) => fragment.outputUnit == unit);
202 return _emitter.outputBuffers[key].length; 199 return _emitter.outputBuffers[key].length;
203 } 200 }
204 } 201 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/lazy_emitter/emitter.dart ('k') | pkg/compiler/lib/src/patch_parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698