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

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

Issue 2278213003: Rename the global inference task and reduce it's API surface by introducing the (Closed)
Patch Set: cl comments Created 4 years, 3 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/ssa/locals_handler.dart ('k') | pkg/compiler/lib/src/ssa/types.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) 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 ssa; 5 library ssa;
6 6
7 import '../common/codegen.dart' show CodegenWorkItem; 7 import '../common/codegen.dart' show CodegenWorkItem;
8 import '../common/tasks.dart' show CompilerTask; 8 import '../common/tasks.dart' show CompilerTask;
9 import '../elements/elements.dart' show Element, FunctionElement; 9 import '../elements/elements.dart' show Element, FunctionElement;
10 import '../io/source_information.dart'; 10 import '../io/source_information.dart';
11 import '../js/js.dart' as js; 11 import '../js/js.dart' as js;
12 import '../js_backend/backend.dart' show JavaScriptBackend, FunctionCompiler; 12 import '../js_backend/backend.dart' show JavaScriptBackend, FunctionCompiler;
13 13
14 import 'builder.dart'; 14 import 'builder.dart';
15 import 'builder_kernel.dart'; 15 import 'builder_kernel.dart';
16 import 'codegen.dart'; 16 import 'codegen.dart';
17 import 'nodes.dart'; 17 import 'nodes.dart';
18 import 'optimize.dart'; 18 import 'optimize.dart';
19 import 'types.dart';
20 19
21 class SsaFunctionCompiler implements FunctionCompiler { 20 class SsaFunctionCompiler implements FunctionCompiler {
22 final SsaCodeGeneratorTask generator; 21 final SsaCodeGeneratorTask generator;
23 final SsaBuilderTask builder; 22 final SsaBuilderTask builder;
24 final SsaKernelBuilderTask builderKernel; 23 final SsaKernelBuilderTask builderKernel;
25 final SsaOptimizerTask optimizer; 24 final SsaOptimizerTask optimizer;
26 final JavaScriptBackend backend; 25 final JavaScriptBackend backend;
27 final bool useKernel; 26 final bool useKernel;
28 27
29 SsaFunctionCompiler(JavaScriptBackend backend, 28 SsaFunctionCompiler(JavaScriptBackend backend,
(...skipping 20 matching lines...) Expand all
50 } 49 }
51 50
52 Iterable<CompilerTask> get tasks { 51 Iterable<CompilerTask> get tasks {
53 return <CompilerTask>[ 52 return <CompilerTask>[
54 useKernel ? builderKernel : builder, 53 useKernel ? builderKernel : builder,
55 optimizer, 54 optimizer,
56 generator 55 generator
57 ]; 56 ];
58 } 57 }
59 } 58 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/ssa/locals_handler.dart ('k') | pkg/compiler/lib/src/ssa/types.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698