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

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

Issue 2045223002: Compute and cache element NativeBehavior during resolution. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Temporarily skip compilation subtest Created 4 years, 6 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, NativeRegistry;
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 21 show
22 Feature, 22 Feature,
23 Frontend, 23 Frontend,
24 ListLiteralUse, 24 ListLiteralUse,
25 MapLiteralUse, 25 MapLiteralUse,
26 Resolution, 26 Resolution,
27 ResolutionImpact; 27 ResolutionImpact;
28 import '../common/tasks.dart' show CompilerTask; 28 import '../common/tasks.dart' show CompilerTask;
29 import '../common/work.dart' show ItemCompilationContext; 29 import '../common/work.dart' show ItemCompilationContext;
30 import '../compile_time_constants.dart'; 30 import '../compile_time_constants.dart';
31 import '../compiler.dart' show Compiler; 31 import '../compiler.dart' show Compiler;
32 import '../constants/constant_system.dart'; 32 import '../constants/constant_system.dart';
33 import '../constants/expressions.dart'; 33 import '../constants/expressions.dart';
34 import '../constants/values.dart'; 34 import '../constants/values.dart';
35 import '../core_types.dart' show CoreClasses, CoreTypes; 35 import '../core_types.dart' show CoreClasses, CoreTypes;
36 import '../dart_types.dart'; 36 import '../dart_types.dart';
37 import '../deferred_load.dart' show DeferredLoadTask; 37 import '../deferred_load.dart' show DeferredLoadTask;
38 import '../diagnostics/invariant.dart' show DEBUG_MODE; 38 import '../diagnostics/invariant.dart' show DEBUG_MODE;
39 import '../dump_info.dart' show DumpInfoTask; 39 import '../dump_info.dart' show DumpInfoTask;
40 import '../elements/elements.dart'; 40 import '../elements/elements.dart';
41 import '../elements/modelx.dart'
42 show ConstructorBodyElementX, FieldElementX, DeferredLoaderGetterElementX;
43 import '../elements/visitor.dart' show BaseElementVisitor; 41 import '../elements/visitor.dart' show BaseElementVisitor;
44 import '../enqueue.dart' show Enqueuer, ResolutionEnqueuer; 42 import '../enqueue.dart' show Enqueuer, ResolutionEnqueuer;
45 import '../io/code_output.dart'; 43 import '../io/code_output.dart';
46 import '../io/position_information.dart' show PositionSourceInformationStrategy; 44 import '../io/position_information.dart' show PositionSourceInformationStrategy;
47 import '../io/source_information.dart' show SourceInformationStrategy; 45 import '../io/source_information.dart' show SourceInformationStrategy;
48 import '../io/start_end_information.dart' 46 import '../io/start_end_information.dart'
49 show StartEndSourceInformationStrategy; 47 show StartEndSourceInformationStrategy;
50 import '../js/js.dart' as jsAst; 48 import '../js/js.dart' as jsAst;
51 import '../js/js.dart' show js; 49 import '../js/js.dart' show js;
52 import '../js/js_source_mapping.dart' show JavaScriptSourceInformationStrategy; 50 import '../js/js_source_mapping.dart' show JavaScriptSourceInformationStrategy;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 part 'constant_handler_javascript.dart'; 90 part 'constant_handler_javascript.dart';
93 part 'custom_elements_analysis.dart'; 91 part 'custom_elements_analysis.dart';
94 part 'field_naming_mixin.dart'; 92 part 'field_naming_mixin.dart';
95 part 'frequency_namer.dart'; 93 part 'frequency_namer.dart';
96 part 'minify_namer.dart'; 94 part 'minify_namer.dart';
97 part 'namer.dart'; 95 part 'namer.dart';
98 part 'namer_names.dart'; 96 part 'namer_names.dart';
99 part 'no_such_method_registry.dart'; 97 part 'no_such_method_registry.dart';
100 part 'runtime_types.dart'; 98 part 'runtime_types.dart';
101 part 'type_variable_handler.dart'; 99 part 'type_variable_handler.dart';
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend.dart ('k') | pkg/compiler/lib/src/js_backend/native_data.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698