Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Side by Side Diff: runtime/vm/intermediate_language.h

Issue 9553008: Implement DoWhile. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 693 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 public: 704 public:
705 explicit BranchInstr(Value* value) 705 explicit BranchInstr(Value* value)
706 : Instruction(), 706 : Instruction(),
707 value_(value), 707 value_(value),
708 true_successor_(NULL), 708 true_successor_(NULL),
709 false_successor_(NULL) { } 709 false_successor_(NULL) { }
710 710
711 DECLARE_INSTRUCTION(Branch) 711 DECLARE_INSTRUCTION(Branch)
712 712
713 Value* value() const { return value_; } 713 Value* value() const { return value_; }
714 TargetEntryInstr* true_successor() const { return true_successor_; } 714 BlockEntryInstr* true_successor() const { return true_successor_; }
715 TargetEntryInstr* false_successor() const { return false_successor_; } 715 BlockEntryInstr* false_successor() const { return false_successor_; }
716 716
717 TargetEntryInstr** true_successor_address() { return &true_successor_; } 717 BlockEntryInstr** true_successor_address() { return &true_successor_; }
718 TargetEntryInstr** false_successor_address() { return &false_successor_; } 718 BlockEntryInstr** false_successor_address() { return &false_successor_; }
719 719
720 virtual void SetSuccessor(Instruction* instr) { UNREACHABLE(); } 720 virtual void SetSuccessor(Instruction* instr) { UNREACHABLE(); }
721 721
722 virtual void Postorder(GrowableArray<BlockEntryInstr*>* block_entries); 722 virtual void Postorder(GrowableArray<BlockEntryInstr*>* block_entries);
723 723
724 private: 724 private:
725 Value* value_; 725 Value* value_;
726 TargetEntryInstr* true_successor_; 726 BlockEntryInstr* true_successor_;
727 TargetEntryInstr* false_successor_; 727 BlockEntryInstr* false_successor_;
728 728
729 DISALLOW_COPY_AND_ASSIGN(BranchInstr); 729 DISALLOW_COPY_AND_ASSIGN(BranchInstr);
730 }; 730 };
731 731
732 #undef DECLARE_INSTRUCTION 732 #undef DECLARE_INSTRUCTION
733 733
734 734
735 // Visitor base class to visit each instruction and computation in a flow 735 // Visitor base class to visit each instruction and computation in a flow
736 // graph as defined by a reversed list of basic blocks. 736 // graph as defined by a reversed list of basic blocks.
737 class FlowGraphVisitor : public ValueObject { 737 class FlowGraphVisitor : public ValueObject {
(...skipping 20 matching lines...) Expand all
758 #undef DECLARE_VISIT_INSTRUCTION 758 #undef DECLARE_VISIT_INSTRUCTION
759 759
760 private: 760 private:
761 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 761 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
762 }; 762 };
763 763
764 764
765 } // namespace dart 765 } // namespace dart
766 766
767 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 767 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« runtime/vm/flow_graph_builder.cc ('K') | « runtime/vm/flow_graph_builder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698