Chromium Code Reviews| 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 1320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1331 GrowableArray<BlockEntryInstr*>* postorder, | 1331 GrowableArray<BlockEntryInstr*>* postorder, |
| 1332 GrowableArray<intptr_t>* parent, | 1332 GrowableArray<intptr_t>* parent, |
| 1333 GrowableArray<BitVector*>* assigned_vars, | 1333 GrowableArray<BitVector*>* assigned_vars, |
| 1334 intptr_t variable_count, | 1334 intptr_t variable_count, |
| 1335 intptr_t fixed_parameter_count); | 1335 intptr_t fixed_parameter_count); |
| 1336 | 1336 |
| 1337 | 1337 |
| 1338 void EmitBranchOnCondition(FlowGraphCompiler* compiler, | 1338 void EmitBranchOnCondition(FlowGraphCompiler* compiler, |
| 1339 Condition true_condition); | 1339 Condition true_condition); |
| 1340 | 1340 |
| 1341 void EmitBranchOnValue(FlowGraphCompiler* compiler, bool result); | |
|
srdjan
2012/09/06 13:32:55
Please add comment explaining what flag 'result' m
| |
| 1342 | |
| 1341 private: | 1343 private: |
| 1342 TargetEntryInstr* true_successor_; | 1344 TargetEntryInstr* true_successor_; |
| 1343 TargetEntryInstr* false_successor_; | 1345 TargetEntryInstr* false_successor_; |
| 1344 | 1346 |
| 1345 DISALLOW_COPY_AND_ASSIGN(ControlInstruction); | 1347 DISALLOW_COPY_AND_ASSIGN(ControlInstruction); |
| 1346 }; | 1348 }; |
| 1347 | 1349 |
| 1348 | 1350 |
| 1349 class BranchInstr : public ControlInstruction { | 1351 class BranchInstr : public ControlInstruction { |
| 1350 public: | 1352 public: |
| (...skipping 1919 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3270 ForwardInstructionIterator* current_iterator_; | 3272 ForwardInstructionIterator* current_iterator_; |
| 3271 | 3273 |
| 3272 private: | 3274 private: |
| 3273 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 3275 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 3274 }; | 3276 }; |
| 3275 | 3277 |
| 3276 | 3278 |
| 3277 } // namespace dart | 3279 } // namespace dart |
| 3278 | 3280 |
| 3279 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 3281 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |