Chromium Code Reviews| 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_FLOW_GRAPH_COMPILER_ARM_H_ | 5 #ifndef VM_FLOW_GRAPH_COMPILER_ARM_H_ |
| 6 #define VM_FLOW_GRAPH_COMPILER_ARM_H_ | 6 #define VM_FLOW_GRAPH_COMPILER_ARM_H_ |
| 7 | 7 |
| 8 #ifndef VM_FLOW_GRAPH_COMPILER_H_ | 8 #ifndef VM_FLOW_GRAPH_COMPILER_H_ |
| 9 #error Include flow_graph_compiler.h instead of flow_graph_compiler_arm.h. | 9 #error Include flow_graph_compiler.h instead of flow_graph_compiler_arm.h. |
| 10 #endif | 10 #endif |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 27 const FlowGraph& flow_graph, | 27 const FlowGraph& flow_graph, |
| 28 bool is_optimizing) | 28 bool is_optimizing) |
| 29 : FlowGraphVisitor(flow_graph.reverse_postorder()), | 29 : FlowGraphVisitor(flow_graph.reverse_postorder()), |
| 30 parsed_function_(flow_graph.parsed_function()), | 30 parsed_function_(flow_graph.parsed_function()), |
| 31 is_optimizing_(is_optimizing) { | 31 is_optimizing_(is_optimizing) { |
| 32 } | 32 } |
| 33 | 33 |
| 34 virtual ~FlowGraphCompiler() { } | 34 virtual ~FlowGraphCompiler() { } |
| 35 | 35 |
| 36 static bool CanOptimize(); | 36 static bool CanOptimize(); |
| 37 bool CanOptimizeFunction(); | |
|
srdjan
2013/01/08 18:03:57
const
hausner
2013/01/08 18:37:57
Done.
| |
| 37 | 38 |
| 38 void CompileGraph(); | 39 void CompileGraph(); |
| 39 | 40 |
| 40 void FinalizePcDescriptors(const Code& code); | 41 void FinalizePcDescriptors(const Code& code); |
| 41 void FinalizeStackmaps(const Code& code); | 42 void FinalizeStackmaps(const Code& code); |
| 42 void FinalizeVarDescriptors(const Code& code); | 43 void FinalizeVarDescriptors(const Code& code); |
| 43 void FinalizeExceptionHandlers(const Code& code); | 44 void FinalizeExceptionHandlers(const Code& code); |
| 44 void FinalizeComments(const Code& code); | 45 void FinalizeComments(const Code& code); |
| 45 | 46 |
| 46 private: | 47 private: |
| 47 // Bail out of the flow graph compiler. Does not return to the caller. | 48 // Bail out of the flow graph compiler. Does not return to the caller. |
| 48 void Bailout(const char* reason); | 49 void Bailout(const char* reason); |
| 49 | 50 |
| 50 const ParsedFunction& parsed_function_; | 51 const ParsedFunction& parsed_function_; |
| 51 const bool is_optimizing_; | 52 const bool is_optimizing_; |
| 52 | 53 |
| 53 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 54 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
| 54 }; | 55 }; |
| 55 | 56 |
| 56 } // namespace dart | 57 } // namespace dart |
| 57 | 58 |
| 58 #endif // VM_FLOW_GRAPH_COMPILER_ARM_H_ | 59 #endif // VM_FLOW_GRAPH_COMPILER_ARM_H_ |
| OLD | NEW |