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

Unified Diff: runtime/vm/intermediate_language_arm.cc

Issue 746623002: Dedupe code for array/object initialization on ARM. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 1 month 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_arm.cc
===================================================================
--- runtime/vm/intermediate_language_arm.cc (revision 41855)
+++ runtime/vm/intermediate_language_arm.cc (working copy)
@@ -2230,13 +2230,7 @@
current_offset += kWordSize;
}
} else {
- Label init_loop;
- __ Bind(&init_loop);
- __ AddImmediate(R8, 2 * kWordSize);
- __ cmp(R8, Operand(R3));
- __ strd(R6, Address(R8, -2 * kWordSize), LS);
- __ b(&init_loop, CC);
- __ str(R6, Address(R8, -2 * kWordSize), HI);
+ __ InitializeFieldsNoBarrier(R0, R8, R3, R6, R7);
}
}
__ b(done);

Powered by Google App Engine
This is Rietveld 408576698