Chromium Code Reviews| Index: runtime/vm/flow_graph_compiler_x64.h |
| =================================================================== |
| --- runtime/vm/flow_graph_compiler_x64.h (revision 9089) |
| +++ runtime/vm/flow_graph_compiler_x64.h (working copy) |
| @@ -28,7 +28,8 @@ |
| FlowGraphCompiler(Assembler* assembler, |
| const ParsedFunction& parsed_function, |
| const GrowableArray<BlockEntryInstr*>& block_order, |
| - bool is_optimizing); |
| + bool is_optimizing, |
| + bool is_leaf); |
| ~FlowGraphCompiler(); |
| @@ -262,6 +263,10 @@ |
| return block_order_.length() - index - 1; |
| } |
| + // Returns true if the generated code does not call other Dart code. |
|
regis
2012/06/25 23:46:09
ditto
srdjan
2012/06/25 23:50:22
Done.
|
| + // Only deoptimization is allowed to occur. Closures are not leaf. |
| + bool IsLeaf() const; |
| + |
| class Assembler* assembler_; |
| const ParsedFunction& parsed_function_; |
| const GrowableArray<BlockEntryInstr*>& block_order_; |
| @@ -276,6 +281,7 @@ |
| GrowableArray<BlockInfo*> block_info_; |
| GrowableArray<DeoptimizationStub*> deopt_stubs_; |
| const bool is_optimizing_; |
| + const bool is_dart_leaf_; |
| const Bool& bool_true_; |
| const Bool& bool_false_; |