| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |