| 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 ZoneGrowableArray<const ICData*>& ic_data_array() const { | 154 const ZoneGrowableArray<const ICData*>& ic_data_array() const { |
| 155 return ic_data_array_; | 155 return ic_data_array_; |
| 156 } | 156 } |
| 157 | 157 |
| 158 void WarnOnJSIntegralNumTypeTest(AstNode* node, | 158 void WarnOnJSIntegralNumTypeTest(AstNode* node, |
| 159 const AbstractType& type) const; | 159 const AbstractType& type) const; |
| 160 | 160 void JSWarning(intptr_t token_pos, const char* msg) const; |
| 161 void Warning(intptr_t token_pos, const char* format, ...) const | |
| 162 PRINTF_ATTRIBUTE(3, 4); | |
| 163 | |
| 164 void Bailout(const char* reason) const; | 161 void Bailout(const char* reason) const; |
| 165 | 162 |
| 166 intptr_t AllocateBlockId() { return ++last_used_block_id_; } | 163 intptr_t AllocateBlockId() { return ++last_used_block_id_; } |
| 167 void SetInitialBlockId(intptr_t id) { last_used_block_id_ = id; } | 164 void SetInitialBlockId(intptr_t id) { last_used_block_id_ = id; } |
| 168 | 165 |
| 169 intptr_t context_level() const; | 166 intptr_t context_level() const; |
| 170 | 167 |
| 171 void IncrementLoopDepth() { ++loop_depth_; } | 168 void IncrementLoopDepth() { ++loop_depth_; } |
| 172 void DecrementLoopDepth() { --loop_depth_; } | 169 void DecrementLoopDepth() { --loop_depth_; } |
| 173 intptr_t loop_depth() const { return loop_depth_; } | 170 intptr_t loop_depth() const { return loop_depth_; } |
| (...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 588 // Output parameters. | 585 // Output parameters. |
| 589 GrowableArray<TargetEntryInstr**> true_successor_addresses_; | 586 GrowableArray<TargetEntryInstr**> true_successor_addresses_; |
| 590 GrowableArray<TargetEntryInstr**> false_successor_addresses_; | 587 GrowableArray<TargetEntryInstr**> false_successor_addresses_; |
| 591 | 588 |
| 592 intptr_t condition_token_pos_; | 589 intptr_t condition_token_pos_; |
| 593 }; | 590 }; |
| 594 | 591 |
| 595 } // namespace dart | 592 } // namespace dart |
| 596 | 593 |
| 597 #endif // VM_FLOW_GRAPH_BUILDER_H_ | 594 #endif // VM_FLOW_GRAPH_BUILDER_H_ |
| OLD | NEW |