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

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

Issue 2392943003: Handle const constructor invocation in kernel_impact. (Closed)
Patch Set: Updated cf. comments. Created 4 years, 2 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) 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 '../common/names.dart'; 6 import '../common/names.dart';
7 import '../elements/elements.dart'; 7 import '../elements/elements.dart';
8 import '../kernel/kernel.dart'; 8 import '../kernel/kernel.dart';
9 import 'package:kernel/ast.dart' as ir; 9 import 'package:kernel/ast.dart' as ir;
10 10
(...skipping 18 matching lines...) Expand all
29 void buildKernelIr() { 29 void buildKernelIr() {
30 program = buildProgram(_compiler.mainApp); 30 program = buildProgram(_compiler.mainApp);
31 } 31 }
32 32
33 /// Builds the kernel IR program for the main function exported from 33 /// Builds the kernel IR program for the main function exported from
34 /// [library]. 34 /// [library].
35 /// 35 ///
36 /// May enqueue more elements to the resolution queue. 36 /// May enqueue more elements to the resolution queue.
37 ir.Program buildProgram(LibraryElement library) { 37 ir.Program buildProgram(LibraryElement library) {
38 return new ir.Program(kernel.libraryDependencies(library.canonicalUri)) 38 return new ir.Program(kernel.libraryDependencies(library.canonicalUri))
39 ..mainMethod = kernel.functionToIr( 39 ..mainMethod =
40 library.findExported(Identifiers.main)); 40 kernel.functionToIr(library.findExported(Identifiers.main));
41 } 41 }
42 } 42 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/enqueuer.dart ('k') | pkg/compiler/lib/src/resolution/constructors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698