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

Unified Diff: runtime/vm/intermediate_language.h

Issue 10800037: New linear scan allocator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: refactored liveness computation Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/intermediate_language.h
diff --git a/runtime/vm/intermediate_language.h b/runtime/vm/intermediate_language.h
index 253a52194b6590cc5e98b248df2098a48fd5740f..9009790ca8050f59715c7b65bb82b55cbb36a00f 100644
--- a/runtime/vm/intermediate_language.h
+++ b/runtime/vm/intermediate_language.h
@@ -2444,8 +2444,10 @@ class ParallelMoveInstr : public Instruction {
DECLARE_INSTRUCTION(ParallelMove)
- void AddMove(Location dest, Location src) {
- moves_.Add(new MoveOperands(dest, src));
+ MoveOperands* AddMove(Location dest, Location src) {
+ MoveOperands* move = new MoveOperands(dest, src);
+ moves_.Add(move);
+ return move;
}
MoveOperands* MoveOperandsAt(intptr_t index) const { return moves_[index]; }

Powered by Google App Engine
This is Rietveld 408576698