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

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

Issue 1284673003: Move dart2jslib parts into separate libraries. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix try. Created 5 years, 4 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 EventSink, Future; 7 import 'dart:async' show EventSink, 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 '../compile_time_constants.dart'; 14 import '../compile_time_constants.dart';
15 import '../constants/constant_system.dart'; 15 import '../constants/constant_system.dart';
16 import '../constants/expressions.dart'; 16 import '../constants/expressions.dart';
17 import '../constants/values.dart'; 17 import '../constants/values.dart';
18 import '../dart2jslib.dart'; 18 import '../dart2jslib.dart';
19 import '../dart_types.dart'; 19 import '../dart_types.dart';
20 import '../elements/elements.dart'; 20 import '../elements/elements.dart';
21 import '../elements/visitor.dart' show
22 BaseElementVisitor;
23 import '../enqueue.dart' show
24 Enqueuer,
25 ResolutionEnqueuer,
26 WorldImpact;
21 import '../io/code_output.dart'; 27 import '../io/code_output.dart';
22 import '../io/source_information.dart' show 28 import '../io/source_information.dart' show
23 SourceInformationStrategy, 29 SourceInformationStrategy,
24 useNewSourceInfo; 30 useNewSourceInfo;
25 import '../io/position_information.dart' show 31 import '../io/position_information.dart' show
26 PositionSourceInformationStrategy; 32 PositionSourceInformationStrategy;
27 import '../io/start_end_information.dart' show 33 import '../io/start_end_information.dart' show
28 StartEndSourceInformationStrategy; 34 StartEndSourceInformationStrategy;
29 import '../js/js.dart' as jsAst; 35 import '../js/js.dart' as jsAst;
30 import '../js/js.dart' show js; 36 import '../js/js.dart' show js;
31 import '../js/js_source_mapping.dart' show 37 import '../js/js_source_mapping.dart' show
32 JavaScriptSourceInformationStrategy; 38 JavaScriptSourceInformationStrategy;
33 import '../js_emitter/js_emitter.dart' 39 import '../js/rewrite_async.dart';
34 show ClassBuilder, CodeEmitterTask, Emitter, MetadataCollector, Placeholder, 40 import '../js_emitter/js_emitter.dart' show
35 TokenFinalizer, USE_LAZY_EMITTER; 41 ClassBuilder,
36 42 CodeEmitterTask,
43 Emitter,
44 MetadataCollector,
45 Placeholder,
46 TokenFinalizer,
47 USE_LAZY_EMITTER;
37 import '../library_loader.dart' show LibraryLoader, LoadedLibraries; 48 import '../library_loader.dart' show LibraryLoader, LoadedLibraries;
49 import '../messages.dart' show MessageKind;
38 import '../native/native.dart' as native; 50 import '../native/native.dart' as native;
51 import '../resolution/resolution.dart' show
52 ResolutionRegistry,
53 TreeElements;
39 import '../ssa/ssa.dart'; 54 import '../ssa/ssa.dart';
40 import '../tree/tree.dart'; 55 import '../tree/tree.dart';
41 import '../types/types.dart'; 56 import '../types/types.dart';
42 import '../universe/universe.dart'; 57 import '../universe/universe.dart';
43 import '../util/characters.dart'; 58 import '../util/characters.dart';
44 import '../util/util.dart'; 59 import '../util/util.dart';
60 import '../world.dart' show
61 ClassWorld;
45 62
46 import '../elements/visitor.dart' show 63 import 'codegen/task.dart';
47 BaseElementVisitor;
48
49 import '../js_backend/codegen/task.dart';
50 import '../resolution/resolution.dart' show ResolutionRegistry;
51
52 import 'constant_system_javascript.dart'; 64 import 'constant_system_javascript.dart';
53 import 'patch_resolver.dart'; 65 import 'patch_resolver.dart';
54 import '../js/rewrite_async.dart';
55 66
56 part 'backend.dart'; 67 part 'backend.dart';
57 part 'checked_mode_helpers.dart'; 68 part 'checked_mode_helpers.dart';
58 part 'constant_emitter.dart'; 69 part 'constant_emitter.dart';
59 part 'constant_handler_javascript.dart'; 70 part 'constant_handler_javascript.dart';
60 part 'custom_elements_analysis.dart'; 71 part 'custom_elements_analysis.dart';
61 part 'frequency_namer.dart'; 72 part 'frequency_namer.dart';
62 part 'field_naming_mixin.dart'; 73 part 'field_naming_mixin.dart';
63 part 'minify_namer.dart'; 74 part 'minify_namer.dart';
64 part 'namer.dart'; 75 part 'namer.dart';
65 part 'namer_names.dart'; 76 part 'namer_names.dart';
66 part 'no_such_method_registry.dart'; 77 part 'no_such_method_registry.dart';
67 part 'runtime_types.dart'; 78 part 'runtime_types.dart';
68 part 'type_variable_handler.dart'; 79 part 'type_variable_handler.dart';
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/codegen/unsugar.dart ('k') | pkg/compiler/lib/src/js_backend/patch_resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698