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

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: address Kevin's comments 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
« no previous file with comments | « runtime/vm/growable_array.h ('k') | runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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]; }
« no previous file with comments | « runtime/vm/growable_array.h ('k') | runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698