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

Side by Side Diff: pkg/compiler/lib/src/js_emitter/full_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) 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.full_emitter; 5 library dart2js.js_emitter.full_emitter;
6 6
7 import 'dart:collection' show HashMap; 7 import 'dart:collection' show HashMap;
8 import 'dart:convert'; 8 import 'dart:convert';
9 9
10 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames; 10 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 part 'declarations.dart'; 73 part 'declarations.dart';
74 part 'deferred_output_unit_hash.dart'; 74 part 'deferred_output_unit_hash.dart';
75 part 'setup_program_builder.dart'; 75 part 'setup_program_builder.dart';
76 76
77 class EmitterFactory implements js_emitter.EmitterFactory { 77 class EmitterFactory implements js_emitter.EmitterFactory {
78 final bool generateSourceMap; 78 final bool generateSourceMap;
79 79
80 EmitterFactory({this.generateSourceMap}); 80 EmitterFactory({this.generateSourceMap});
81 81
82 @override 82 @override
83 String get patchVersion => "full";
84
85 @override
86 bool get supportsReflection => true; 83 bool get supportsReflection => true;
87 84
88 @override 85 @override
89 Emitter createEmitter( 86 Emitter createEmitter(
90 CodeEmitterTask task, Namer namer, ClosedWorld closedWorld) { 87 CodeEmitterTask task, Namer namer, ClosedWorld closedWorld) {
91 return new Emitter( 88 return new Emitter(
92 task.compiler, namer, closedWorld, generateSourceMap, task); 89 task.compiler, namer, closedWorld, generateSourceMap, task);
93 } 90 }
94 } 91 }
95 92
(...skipping 1834 matching lines...) Expand 10 before | Expand all | Expand 10 after
1930 // data. 1927 // data.
1931 mapping["_comment"] = "This mapping shows which compiled `.js` files are " 1928 mapping["_comment"] = "This mapping shows which compiled `.js` files are "
1932 "needed for a given deferred library import."; 1929 "needed for a given deferred library import.";
1933 mapping.addAll(compiler.deferredLoadTask.computeDeferredMap()); 1930 mapping.addAll(compiler.deferredLoadTask.computeDeferredMap());
1934 compiler.outputProvider( 1931 compiler.outputProvider(
1935 compiler.options.deferredMapUri.path, '', OutputType.info) 1932 compiler.options.deferredMapUri.path, '', OutputType.info)
1936 ..add(const JsonEncoder.withIndent(" ").convert(mapping)) 1933 ..add(const JsonEncoder.withIndent(" ").convert(mapping))
1937 ..close(); 1934 ..close();
1938 } 1935 }
1939 } 1936 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/code_emitter_task.dart ('k') | pkg/compiler/lib/src/js_emitter/lazy_emitter/emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698