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

Side by Side Diff: pkg/compiler/lib/src/js_backend/js_backend.dart

Issue 1892093003: Support deserialized compilation of the empty program. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments Created 4 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 js_backend; 5 library js_backend;
6 6
7 import 'dart:async' show Future; 7 import 'dart:async' show Future;
8 import 'dart:collection' show HashMap; 8 import 'dart:collection' show HashMap;
9 9
10 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames; 10 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames;
11 import 'package:js_runtime/shared/embedded_names.dart' show JsGetName; 11 import 'package:js_runtime/shared/embedded_names.dart' show JsGetName;
12 12
13 import '../closure.dart'; 13 import '../closure.dart';
14 import '../common.dart'; 14 import '../common.dart';
15 import '../common/backend_api.dart' 15 import '../common/backend_api.dart'
16 show Backend, ImpactTransformer, ForeignResolver; 16 show Backend, ImpactTransformer, ForeignResolver;
17 import '../common/codegen.dart' show CodegenImpact, CodegenWorkItem; 17 import '../common/codegen.dart' show CodegenImpact, CodegenWorkItem;
18 import '../common/names.dart' show Identifiers, Names, Selectors, Uris; 18 import '../common/names.dart' show Identifiers, Names, Selectors, Uris;
19 import '../common/registry.dart' show EagerRegistry, Registry; 19 import '../common/registry.dart' show EagerRegistry, Registry;
20 import '../common/resolution.dart' 20 import '../common/resolution.dart'
21 show Feature, ListLiteralUse, MapLiteralUse, Resolution, ResolutionImpact; 21 show
22 Feature,
23 Frontend,
24 ListLiteralUse,
25 MapLiteralUse,
26 Resolution,
27 ResolutionImpact;
22 import '../common/tasks.dart' show CompilerTask; 28 import '../common/tasks.dart' show CompilerTask;
23 import '../common/work.dart' show ItemCompilationContext; 29 import '../common/work.dart' show ItemCompilationContext;
24 import '../compile_time_constants.dart'; 30 import '../compile_time_constants.dart';
25 import '../compiler.dart' show Compiler; 31 import '../compiler.dart' show Compiler;
26 import '../constants/constant_system.dart'; 32 import '../constants/constant_system.dart';
27 import '../constants/expressions.dart'; 33 import '../constants/expressions.dart';
28 import '../constants/values.dart'; 34 import '../constants/values.dart';
29 import '../core_types.dart' show CoreClasses, CoreTypes; 35 import '../core_types.dart' show CoreClasses, CoreTypes;
30 import '../dart_types.dart'; 36 import '../dart_types.dart';
31 import '../deferred_load.dart' show DeferredLoadTask; 37 import '../deferred_load.dart' show DeferredLoadTask;
32 import '../diagnostics/invariant.dart' show DEBUG_MODE; 38 import '../diagnostics/invariant.dart' show DEBUG_MODE;
33 import '../dump_info.dart' show DumpInfoTask; 39 import '../dump_info.dart' show DumpInfoTask;
34 import '../elements/elements.dart'; 40 import '../elements/elements.dart';
41 import '../elements/modelx.dart' show ConstructorBodyElementX;
35 import '../elements/visitor.dart' show BaseElementVisitor; 42 import '../elements/visitor.dart' show BaseElementVisitor;
36 import '../enqueue.dart' show Enqueuer, ResolutionEnqueuer; 43 import '../enqueue.dart' show Enqueuer, ResolutionEnqueuer;
37 import '../io/code_output.dart'; 44 import '../io/code_output.dart';
38 import '../io/position_information.dart' show PositionSourceInformationStrategy; 45 import '../io/position_information.dart' show PositionSourceInformationStrategy;
39 import '../io/source_information.dart' show SourceInformationStrategy; 46 import '../io/source_information.dart' show SourceInformationStrategy;
40 import '../io/start_end_information.dart' 47 import '../io/start_end_information.dart'
41 show StartEndSourceInformationStrategy; 48 show StartEndSourceInformationStrategy;
42 import '../js/js.dart' as jsAst; 49 import '../js/js.dart' as jsAst;
43 import '../js/js.dart' show js; 50 import '../js/js.dart' show js;
44 import '../js/js_source_mapping.dart' show JavaScriptSourceInformationStrategy; 51 import '../js/js_source_mapping.dart' show JavaScriptSourceInformationStrategy;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 part 'constant_handler_javascript.dart'; 91 part 'constant_handler_javascript.dart';
85 part 'custom_elements_analysis.dart'; 92 part 'custom_elements_analysis.dart';
86 part 'field_naming_mixin.dart'; 93 part 'field_naming_mixin.dart';
87 part 'frequency_namer.dart'; 94 part 'frequency_namer.dart';
88 part 'minify_namer.dart'; 95 part 'minify_namer.dart';
89 part 'namer.dart'; 96 part 'namer.dart';
90 part 'namer_names.dart'; 97 part 'namer_names.dart';
91 part 'no_such_method_registry.dart'; 98 part 'no_such_method_registry.dart';
92 part 'runtime_types.dart'; 99 part 'runtime_types.dart';
93 part 'type_variable_handler.dart'; 100 part 'type_variable_handler.dart';
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698