| 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 2449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2460 private: | 2460 private: |
| 2461 Location dest_; | 2461 Location dest_; |
| 2462 Location src_; | 2462 Location src_; |
| 2463 | 2463 |
| 2464 DISALLOW_COPY_AND_ASSIGN(MoveOperands); | 2464 DISALLOW_COPY_AND_ASSIGN(MoveOperands); |
| 2465 }; | 2465 }; |
| 2466 | 2466 |
| 2467 | 2467 |
| 2468 class ParallelMoveInstr : public Instruction { | 2468 class ParallelMoveInstr : public Instruction { |
| 2469 public: | 2469 public: |
| 2470 explicit ParallelMoveInstr() : moves_(4) { | 2470 ParallelMoveInstr() : moves_(4) { |
| 2471 } | 2471 } |
| 2472 | 2472 |
| 2473 DECLARE_INSTRUCTION(ParallelMove) | 2473 DECLARE_INSTRUCTION(ParallelMove) |
| 2474 | 2474 |
| 2475 MoveOperands* AddMove(Location dest, Location src) { | 2475 MoveOperands* AddMove(Location dest, Location src) { |
| 2476 MoveOperands* move = new MoveOperands(dest, src); | 2476 MoveOperands* move = new MoveOperands(dest, src); |
| 2477 moves_.Add(move); | 2477 moves_.Add(move); |
| 2478 return move; | 2478 return move; |
| 2479 } | 2479 } |
| 2480 | 2480 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2560 const GrowableArray<BlockEntryInstr*>& block_order_; | 2560 const GrowableArray<BlockEntryInstr*>& block_order_; |
| 2561 | 2561 |
| 2562 private: | 2562 private: |
| 2563 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 2563 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 2564 }; | 2564 }; |
| 2565 | 2565 |
| 2566 | 2566 |
| 2567 } // namespace dart | 2567 } // namespace dart |
| 2568 | 2568 |
| 2569 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 2569 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |