OLD | NEW |
(Empty) | |
| 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 |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 #ifndef VM_FLOW_GRAPH_BUILDER_H_ |
| 6 #define VM_FLOW_GRAPH_BUILDER_H_ |
| 7 |
| 8 #include "vm/allocation.h" |
| 9 |
| 10 namespace dart { |
| 11 |
| 12 class ParsedFunction; |
| 13 |
| 14 class FlowGraphBuilder: public ValueObject { |
| 15 public: |
| 16 explicit FlowGraphBuilder(const ParsedFunction& parsed_function) |
| 17 : parsed_function_(parsed_function), bailout_reason_(NULL) { } |
| 18 |
| 19 void BuildGraph(); |
| 20 |
| 21 const ParsedFunction& parsed_function() const { return parsed_function_; } |
| 22 |
| 23 void Bailout(const char* reason) { bailout_reason_ = reason; } |
| 24 void TraceBailout() const; |
| 25 |
| 26 private: |
| 27 const ParsedFunction& parsed_function_; |
| 28 const char* bailout_reason_; |
| 29 }; |
| 30 |
| 31 } // namespace dart |
| 32 |
| 33 #endif // VM_FLOW_GRAPH_BUILDER_H_ |
OLD | NEW |