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 '../common/codegen.dart' show CodegenWorkItem; | 5 import '../common/codegen.dart' show CodegenWorkItem; |
6 import '../common/tasks.dart' show CompilerTask; | 6 import '../common/tasks.dart' show CompilerTask; |
7 import '../io/source_information.dart'; | 7 import '../io/source_information.dart'; |
8 import '../js_backend/backend.dart' show JavaScriptBackend, FunctionCompiler; | 8 import '../js_backend/backend.dart' show JavaScriptBackend, FunctionCompiler; |
9 import '../elements/elements.dart'; | 9 import '../elements/elements.dart'; |
10 | 10 |
11 import 'nodes.dart'; | 11 import 'nodes.dart'; |
12 | 12 |
13 class SsaKernelBuilderTask extends CompilerTask { | 13 class SsaKernelBuilderTask extends CompilerTask { |
14 final JavaScriptBackend backend; | 14 final JavaScriptBackend backend; |
15 final SourceInformationStrategy sourceInformationFactory; | 15 final SourceInformationStrategy sourceInformationFactory; |
16 | 16 |
17 String get name => 'SSA kernel builder'; | 17 String get name => 'SSA kernel builder'; |
18 | 18 |
19 SsaKernelBuilderTask(JavaScriptBackend backend, this.sourceInformationFactory) | 19 SsaKernelBuilderTask(JavaScriptBackend backend, this.sourceInformationFactory) |
20 : super(backend.compiler.measurer); | 20 : backend = backend, |
| 21 super(backend.compiler.measurer); |
21 | 22 |
22 HGraph build(CodegenWorkItem work) { | 23 HGraph build(CodegenWorkItem work) { |
23 return measure(() { | 24 return measure(() { |
24 Element element = work.element.implementation; | 25 Element element = work.element.implementation; |
25 throw "unimplemented"; | 26 throw "unimplemented"; |
26 }); | 27 }); |
27 } | 28 } |
28 } | 29 } |
OLD | NEW |