| 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_INTERMEDIATE_LANGUAGE_H_ | 5 #ifndef VM_INTERMEDIATE_LANGUAGE_H_ |
| 6 #define VM_INTERMEDIATE_LANGUAGE_H_ | 6 #define VM_INTERMEDIATE_LANGUAGE_H_ |
| 7 | 7 |
| 8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
| 9 #include "vm/ast.h" | 9 #include "vm/ast.h" |
| 10 #include "vm/growable_array.h" | 10 #include "vm/growable_array.h" |
| (...skipping 1314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1325 GrowableArray<BlockEntryInstr*>* preorder, | 1325 GrowableArray<BlockEntryInstr*>* preorder, |
| 1326 GrowableArray<BlockEntryInstr*>* postorder, | 1326 GrowableArray<BlockEntryInstr*>* postorder, |
| 1327 GrowableArray<intptr_t>* parent, | 1327 GrowableArray<intptr_t>* parent, |
| 1328 GrowableArray<BitVector*>* assigned_vars, | 1328 GrowableArray<BitVector*>* assigned_vars, |
| 1329 intptr_t variable_count); | 1329 intptr_t variable_count); |
| 1330 | 1330 |
| 1331 void AddCatchEntry(TargetEntryInstr* entry) { catch_entries_.Add(entry); } | 1331 void AddCatchEntry(TargetEntryInstr* entry) { catch_entries_.Add(entry); } |
| 1332 | 1332 |
| 1333 private: | 1333 private: |
| 1334 TargetEntryInstr* normal_entry_; | 1334 TargetEntryInstr* normal_entry_; |
| 1335 ZoneGrowableArray<TargetEntryInstr*> catch_entries_; | 1335 GrowableArray<TargetEntryInstr*> catch_entries_; |
| 1336 | 1336 |
| 1337 DISALLOW_COPY_AND_ASSIGN(GraphEntryInstr); | 1337 DISALLOW_COPY_AND_ASSIGN(GraphEntryInstr); |
| 1338 }; | 1338 }; |
| 1339 | 1339 |
| 1340 | 1340 |
| 1341 class JoinEntryInstr : public BlockEntryInstr { | 1341 class JoinEntryInstr : public BlockEntryInstr { |
| 1342 public: | 1342 public: |
| 1343 JoinEntryInstr() | 1343 JoinEntryInstr() |
| 1344 : BlockEntryInstr(), | 1344 : BlockEntryInstr(), |
| 1345 predecessors_(2), // Two is the assumed to be the common case. | 1345 predecessors_(2), // Two is the assumed to be the common case. |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1671 const GrowableArray<BlockEntryInstr*>& block_order_; | 1671 const GrowableArray<BlockEntryInstr*>& block_order_; |
| 1672 | 1672 |
| 1673 private: | 1673 private: |
| 1674 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 1674 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 1675 }; | 1675 }; |
| 1676 | 1676 |
| 1677 | 1677 |
| 1678 } // namespace dart | 1678 } // namespace dart |
| 1679 | 1679 |
| 1680 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 1680 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |