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

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

Issue 9722009: Remove possibility of critical edges. (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
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1091 matching lines...) Expand 10 before | Expand all | Expand 10 after
1102 public: 1102 public:
1103 explicit BranchInstr(Value* value) 1103 explicit BranchInstr(Value* value)
1104 : Instruction(), 1104 : Instruction(),
1105 value_(value), 1105 value_(value),
1106 true_successor_(NULL), 1106 true_successor_(NULL),
1107 false_successor_(NULL) { } 1107 false_successor_(NULL) { }
1108 1108
1109 DECLARE_INSTRUCTION(Branch) 1109 DECLARE_INSTRUCTION(Branch)
1110 1110
1111 Value* value() const { return value_; } 1111 Value* value() const { return value_; }
1112 BlockEntryInstr* true_successor() const { return true_successor_; } 1112 TargetEntryInstr* true_successor() const { return true_successor_; }
1113 BlockEntryInstr* false_successor() const { return false_successor_; } 1113 TargetEntryInstr* false_successor() const { return false_successor_; }
1114 1114
1115 BlockEntryInstr** true_successor_address() { return &true_successor_; } 1115 TargetEntryInstr** true_successor_address() { return &true_successor_; }
1116 BlockEntryInstr** false_successor_address() { return &false_successor_; } 1116 TargetEntryInstr** false_successor_address() { return &false_successor_; }
1117 1117
1118 virtual void SetSuccessor(Instruction* instr) { UNREACHABLE(); } 1118 virtual void SetSuccessor(Instruction* instr) { UNREACHABLE(); }
1119 1119
1120 virtual void Postorder(GrowableArray<BlockEntryInstr*>* block_entries); 1120 virtual void Postorder(GrowableArray<BlockEntryInstr*>* block_entries);
1121 1121
1122 private: 1122 private:
1123 Value* value_; 1123 Value* value_;
1124 BlockEntryInstr* true_successor_; 1124 TargetEntryInstr* true_successor_;
1125 BlockEntryInstr* false_successor_; 1125 TargetEntryInstr* false_successor_;
1126 1126
1127 DISALLOW_COPY_AND_ASSIGN(BranchInstr); 1127 DISALLOW_COPY_AND_ASSIGN(BranchInstr);
1128 }; 1128 };
1129 1129
1130 #undef DECLARE_INSTRUCTION 1130 #undef DECLARE_INSTRUCTION
1131 1131
1132 1132
1133 // Visitor base class to visit each instruction and computation in a flow 1133 // Visitor base class to visit each instruction and computation in a flow
1134 // graph as defined by a reversed list of basic blocks. 1134 // graph as defined by a reversed list of basic blocks.
1135 class FlowGraphVisitor : public ValueObject { 1135 class FlowGraphVisitor : public ValueObject {
(...skipping 20 matching lines...) Expand all
1156 #undef DECLARE_VISIT_INSTRUCTION 1156 #undef DECLARE_VISIT_INSTRUCTION
1157 1157
1158 private: 1158 private:
1159 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 1159 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
1160 }; 1160 };
1161 1161
1162 1162
1163 } // namespace dart 1163 } // namespace dart
1164 1164
1165 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 1165 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698