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

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

Issue 2999723002: Add stub versions of KernelInferrerEngine and friends (Closed)
Patch Set: Updated cf. comments Created 3 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/inferrer/kernel_inferrer_engine.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.backend_strategy; 5 library dart2js.backend_strategy;
6 6
7 import 'closure.dart' show ClosureConversionTask; 7 import 'closure.dart' show ClosureConversionTask;
8 import 'common.dart'; 8 import 'common.dart';
9 import 'common/tasks.dart'; 9 import 'common/tasks.dart';
10 import 'enqueue.dart'; 10 import 'enqueue.dart';
11 import 'elements/entities.dart'; 11 import 'elements/entities.dart';
12 import 'io/source_information.dart'; 12 import 'io/source_information.dart';
13 import 'js_backend/js_backend.dart'; 13 import 'js_backend/js_backend.dart';
14 import 'js_backend/native_data.dart'; 14 import 'js_backend/native_data.dart';
15 import 'js_emitter/sorter.dart'; 15 import 'js_emitter/sorter.dart';
16 import 'ssa/ssa.dart'; 16 import 'ssa/ssa.dart';
17 import 'types/types.dart';
17 import 'universe/world_builder.dart'; 18 import 'universe/world_builder.dart';
18 import 'world.dart'; 19 import 'world.dart';
19 20
20 /// Strategy pattern that defines the element model used in type inference 21 /// Strategy pattern that defines the element model used in type inference
21 /// and code generation. 22 /// and code generation.
22 abstract class BackendStrategy { 23 abstract class BackendStrategy {
23 /// Create the [ClosedWorldRefiner] for [closedWorld]. 24 /// Create the [ClosedWorldRefiner] for [closedWorld].
24 ClosedWorldRefiner createClosedWorldRefiner(ClosedWorld closedWorld); 25 ClosedWorldRefiner createClosedWorldRefiner(ClosedWorld closedWorld);
25 26
26 /// Create the task that analyzes the code to see what closures need to be 27 /// Create the task that analyzes the code to see what closures need to be
(...skipping 14 matching lines...) Expand all
41 42
42 /// Creates the [SsaBuilder] used for the element model. 43 /// Creates the [SsaBuilder] used for the element model.
43 SsaBuilder createSsaBuilder(CompilerTask task, JavaScriptBackend backend, 44 SsaBuilder createSsaBuilder(CompilerTask task, JavaScriptBackend backend,
44 SourceInformationStrategy sourceInformationStrategy); 45 SourceInformationStrategy sourceInformationStrategy);
45 46
46 /// Returns the [SourceInformationStrategy] use for the element model. 47 /// Returns the [SourceInformationStrategy] use for the element model.
47 SourceInformationStrategy get sourceInformationStrategy; 48 SourceInformationStrategy get sourceInformationStrategy;
48 49
49 /// Creates a [SourceSpan] from [spannable] in context of [currentElement]. 50 /// Creates a [SourceSpan] from [spannable] in context of [currentElement].
50 SourceSpan spanFromSpannable(Spannable spannable, Entity currentElement); 51 SourceSpan spanFromSpannable(Spannable spannable, Entity currentElement);
52
53 /// Creates the [TypesInferrer] used by this strategy.
54 TypesInferrer createTypesInferrer(ClosedWorldRefiner closedWorldRefiner,
55 {bool disableTypeInference: false});
51 } 56 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/inferrer/kernel_inferrer_engine.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698