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_BUILDER_H_ | 5 #ifndef VM_FLOW_GRAPH_BUILDER_H_ |
6 #define VM_FLOW_GRAPH_BUILDER_H_ | 6 #define VM_FLOW_GRAPH_BUILDER_H_ |
7 | 7 |
8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
9 #include "platform/globals.h" | 9 #include "platform/globals.h" |
10 #include "vm/allocation.h" | 10 #include "vm/allocation.h" |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 // The inlining context is NULL if not inlining. The osr_id is the deopt | 144 // The inlining context is NULL if not inlining. The osr_id is the deopt |
145 // id of the OSR entry or Isolate::kNoDeoptId if not compiling for OSR. | 145 // id of the OSR entry or Isolate::kNoDeoptId if not compiling for OSR. |
146 FlowGraphBuilder(ParsedFunction* parsed_function, | 146 FlowGraphBuilder(ParsedFunction* parsed_function, |
147 const ZoneGrowableArray<const ICData*>& ic_data_array, | 147 const ZoneGrowableArray<const ICData*>& ic_data_array, |
148 InlineExitCollector* exit_collector, | 148 InlineExitCollector* exit_collector, |
149 intptr_t osr_id); | 149 intptr_t osr_id); |
150 | 150 |
151 FlowGraph* BuildGraph(); | 151 FlowGraph* BuildGraph(); |
152 | 152 |
153 ParsedFunction* parsed_function() const { return parsed_function_; } | 153 ParsedFunction* parsed_function() const { return parsed_function_; } |
| 154 const Function& function() const { return parsed_function_->function(); } |
154 const ZoneGrowableArray<const ICData*>& ic_data_array() const { | 155 const ZoneGrowableArray<const ICData*>& ic_data_array() const { |
155 return ic_data_array_; | 156 return ic_data_array_; |
156 } | 157 } |
157 | 158 |
158 // Return true if a Javascript compatibility warning should be emitted at | 159 // Return true if a Javascript compatibility warning should be emitted at |
159 // runtime for this type test. | 160 // runtime for this type test. |
160 bool WarnOnJSIntegralNumTypeTest(AstNode* node, | 161 bool WarnOnJSIntegralNumTypeTest(AstNode* node, |
161 const AbstractType& type) const; | 162 const AbstractType& type) const; |
162 | 163 |
163 void Bailout(const char* reason) const; | 164 void Bailout(const char* reason) const; |
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
603 // Output parameters. | 604 // Output parameters. |
604 GrowableArray<TargetEntryInstr**> true_successor_addresses_; | 605 GrowableArray<TargetEntryInstr**> true_successor_addresses_; |
605 GrowableArray<TargetEntryInstr**> false_successor_addresses_; | 606 GrowableArray<TargetEntryInstr**> false_successor_addresses_; |
606 | 607 |
607 intptr_t condition_token_pos_; | 608 intptr_t condition_token_pos_; |
608 }; | 609 }; |
609 | 610 |
610 } // namespace dart | 611 } // namespace dart |
611 | 612 |
612 #endif // VM_FLOW_GRAPH_BUILDER_H_ | 613 #endif // VM_FLOW_GRAPH_BUILDER_H_ |
OLD | NEW |