OLD | NEW |
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 #ifndef VM_COMPILER_H_ | 5 #ifndef VM_COMPILER_H_ |
6 #define VM_COMPILER_H_ | 6 #define VM_COMPILER_H_ |
7 | 7 |
8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
9 #include "vm/growable_array.h" | 9 #include "vm/growable_array.h" |
10 #include "vm/runtime_entry.h" | 10 #include "vm/runtime_entry.h" |
11 #include "vm/thread_pool.h" | 11 #include "vm/thread_pool.h" |
12 | 12 |
13 namespace dart { | 13 namespace dart { |
14 | 14 |
15 // Forward declarations. | 15 // Forward declarations. |
16 class BackgroundCompilationQueue; | 16 class BackgroundCompilationQueue; |
17 class Class; | 17 class Class; |
18 class Code; | 18 class Code; |
19 class CompilationWorkQueue; | 19 class CompilationWorkQueue; |
20 class FlowGraph; | 20 class FlowGraph; |
21 class Function; | 21 class Function; |
22 class IndirectGotoInstr; | 22 class IndirectGotoInstr; |
23 class Library; | 23 class Library; |
24 class ParsedFunction; | 24 class ParsedFunction; |
25 class QueueElement; | 25 class QueueElement; |
26 class RawInstance; | 26 class RawInstance; |
27 class Script; | 27 class Script; |
28 class SequenceNode; | 28 class SequenceNode; |
29 | 29 |
| 30 bool UseKernelFrontEndFor(ParsedFunction* parsed_function); |
30 | 31 |
31 class CompilationPipeline : public ZoneAllocated { | 32 class CompilationPipeline : public ZoneAllocated { |
32 public: | 33 public: |
33 static CompilationPipeline* New(Zone* zone, const Function& function); | 34 static CompilationPipeline* New(Zone* zone, const Function& function); |
34 | 35 |
35 virtual void ParseFunction(ParsedFunction* parsed_function) = 0; | 36 virtual void ParseFunction(ParsedFunction* parsed_function) = 0; |
36 virtual FlowGraph* BuildFlowGraph( | 37 virtual FlowGraph* BuildFlowGraph( |
37 Zone* zone, | 38 Zone* zone, |
38 ParsedFunction* parsed_function, | 39 ParsedFunction* parsed_function, |
39 const ZoneGrowableArray<const ICData*>& ic_data_array, | 40 const ZoneGrowableArray<const ICData*>& ic_data_array, |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 Monitor* done_monitor_; // Notify/wait that the thread is done. | 196 Monitor* done_monitor_; // Notify/wait that the thread is done. |
196 | 197 |
197 BackgroundCompilationQueue* function_queue_; | 198 BackgroundCompilationQueue* function_queue_; |
198 | 199 |
199 DISALLOW_IMPLICIT_CONSTRUCTORS(BackgroundCompiler); | 200 DISALLOW_IMPLICIT_CONSTRUCTORS(BackgroundCompiler); |
200 }; | 201 }; |
201 | 202 |
202 } // namespace dart | 203 } // namespace dart |
203 | 204 |
204 #endif // VM_COMPILER_H_ | 205 #endif // VM_COMPILER_H_ |
OLD | NEW |