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

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

Issue 2871583002: Pass InterceptorData through ResolutionWorldBuilder and access it through ClosedWorld (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « pkg/compiler/lib/src/common/codegen.dart ('k') | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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.frontend_strategy; 5 library dart2js.frontend_strategy;
6 6
7 import 'common.dart'; 7 import 'common.dart';
8 import 'common_elements.dart'; 8 import 'common_elements.dart';
9 import 'common/backend_api.dart'; 9 import 'common/backend_api.dart';
10 import 'common/tasks.dart'; 10 import 'common/tasks.dart';
11 import 'elements/entities.dart'; 11 import 'elements/entities.dart';
12 import 'environment.dart'; 12 import 'environment.dart';
13 import 'enqueue.dart'; 13 import 'enqueue.dart';
14 import 'js_backend/backend.dart'; 14 import 'js_backend/backend.dart';
15 import 'js_backend/backend_usage.dart'; 15 import 'js_backend/backend_usage.dart';
16 import 'js_backend/custom_elements_analysis.dart'; 16 import 'js_backend/custom_elements_analysis.dart';
17 import 'js_backend/interceptor_data.dart';
17 import 'js_backend/mirrors_analysis.dart'; 18 import 'js_backend/mirrors_analysis.dart';
18 import 'js_backend/mirrors_data.dart'; 19 import 'js_backend/mirrors_data.dart';
19 import 'js_backend/native_data.dart'; 20 import 'js_backend/native_data.dart';
20 import 'js_backend/no_such_method_registry.dart'; 21 import 'js_backend/no_such_method_registry.dart';
21 import 'library_loader.dart'; 22 import 'library_loader.dart';
22 import 'native/resolver.dart'; 23 import 'native/resolver.dart';
23 import 'serialization/task.dart'; 24 import 'serialization/task.dart';
24 import 'patch_parser.dart'; 25 import 'patch_parser.dart';
25 import 'resolved_uri_translator.dart'; 26 import 'resolved_uri_translator.dart';
26 import 'universe/world_builder.dart'; 27 import 'universe/world_builder.dart';
(...skipping 26 matching lines...) Expand all
53 54
54 /// Creates the [NoSuchMethodResolver] corresponding the resolved model of 55 /// Creates the [NoSuchMethodResolver] corresponding the resolved model of
55 /// this strategy. 56 /// this strategy.
56 NoSuchMethodResolver createNoSuchMethodResolver(); 57 NoSuchMethodResolver createNoSuchMethodResolver();
57 58
58 /// Creates the [ResolutionWorldBuilder] corresponding to the element model 59 /// Creates the [ResolutionWorldBuilder] corresponding to the element model
59 /// used in this strategy. 60 /// used in this strategy.
60 ResolutionWorldBuilder createResolutionWorldBuilder( 61 ResolutionWorldBuilder createResolutionWorldBuilder(
61 NativeBasicData nativeBasicData, 62 NativeBasicData nativeBasicData,
62 NativeDataBuilder nativeDataBuilder, 63 NativeDataBuilder nativeDataBuilder,
64 InterceptorDataBuilder interceptorDataBuilder,
63 SelectorConstraintsStrategy selectorConstraintsStrategy); 65 SelectorConstraintsStrategy selectorConstraintsStrategy);
64 66
65 /// Creates the [WorkItemBuilder] corresponding to how a resolved model for 67 /// Creates the [WorkItemBuilder] corresponding to how a resolved model for
66 /// a single member is obtained in this strategy. 68 /// a single member is obtained in this strategy.
67 WorkItemBuilder createResolutionWorkItemBuilder( 69 WorkItemBuilder createResolutionWorkItemBuilder(
68 ImpactTransformer impactTransformer); 70 ImpactTransformer impactTransformer);
69 71
70 /// Computes the main function from [mainLibrary] adding additional world 72 /// Computes the main function from [mainLibrary] adding additional world
71 /// impact to [impactBuilder]. 73 /// impact to [impactBuilder].
72 FunctionEntity computeMain( 74 FunctionEntity computeMain(
(...skipping 21 matching lines...) Expand all
94 abstract class AnnotationProcessor { 96 abstract class AnnotationProcessor {
95 void extractNativeAnnotations( 97 void extractNativeAnnotations(
96 LibraryEntity library, NativeBasicDataBuilder nativeBasicDataBuilder); 98 LibraryEntity library, NativeBasicDataBuilder nativeBasicDataBuilder);
97 99
98 void extractJsInteropAnnotations( 100 void extractJsInteropAnnotations(
99 LibraryEntity library, NativeBasicDataBuilder nativeBasicDataBuilder); 101 LibraryEntity library, NativeBasicDataBuilder nativeBasicDataBuilder);
100 102
101 void processJsInteropAnnotations( 103 void processJsInteropAnnotations(
102 NativeBasicData nativeBasicData, NativeDataBuilder nativeDataBuilder); 104 NativeBasicData nativeBasicData, NativeDataBuilder nativeDataBuilder);
103 } 105 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/common/codegen.dart ('k') | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698