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

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

Issue 2367793002: Perform MixinFullResolution before baseline test. (Closed)
Patch Set: dartfmt 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 | « no previous file | pkg/compiler/lib/src/kernel/kernel.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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 import '../compiler.dart'; 5 import '../compiler.dart';
6 import '../kernel/kernel.dart'; 6 import '../kernel/kernel.dart';
7 import 'package:kernel/ast.dart' as ir;
7 8
8 import 'backend.dart'; 9 import 'backend.dart';
9 10
10 /// Visits the compiler main function and builds the kernel representation. 11 /// Visits the compiler main function and builds the kernel representation.
11 /// 12 ///
12 /// This creates a mapping from kernel nodes to AST nodes to be used later. 13 /// This creates a mapping from kernel nodes to AST nodes to be used later.
13 class KernelTask { 14 class KernelTask {
14 final Compiler _compiler; 15 final Compiler _compiler;
15 final Kernel kernel; 16 final Kernel kernel;
16 17
17 KernelTask(JavaScriptBackend backend) 18 KernelTask(JavaScriptBackend backend)
18 : this._compiler = backend.compiler, 19 : this._compiler = backend.compiler,
19 this.kernel = new Kernel(backend.compiler); 20 this.kernel = new Kernel(backend.compiler);
20 21
22 ir.Program program;
23
21 /// Builds the kernel IR for the main function. 24 /// Builds the kernel IR for the main function.
22 /// 25 ///
23 /// May enqueue more elements to the resolution queue. 26 /// May enqueue more elements to the resolution queue.
24 void buildKernelIr() { 27 void buildKernelIr() {
25 kernel.libraryDependencies(_compiler.options.entryPoint); 28 program =
29 new ir.Program(kernel.libraryDependencies(_compiler.options.entryPoint))
30 ..mainMethod = kernel.functionToIr(_compiler.mainFunction);
26 } 31 }
27 } 32 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/kernel/kernel.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698