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

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

Issue 10824017: Implement deoptimization in the SSA compiler as a parallel move. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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 2449 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« runtime/vm/flow_graph_compiler_x64.cc ('K') | « runtime/vm/flow_graph_compiler_x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698