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

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: fix one comment 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 76b8df448d0ab1660c8794d74bb4ae037a1f9b01..ba187400f8480085d3da78b1e4439ecc8cdf0244 100644
--- a/runtime/vm/intermediate_language.h
+++ b/runtime/vm/intermediate_language.h
@@ -2447,8 +2447,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