Index: src/arm/macro-assembler-arm.cc |
diff --git a/src/arm/macro-assembler-arm.cc b/src/arm/macro-assembler-arm.cc |
index d24834e46cd530f58b91263789201957fcb623f3..83a901a06a1a3fd4867d522f0c6b8e1bb3e13f8f 100644 |
--- a/src/arm/macro-assembler-arm.cc |
+++ b/src/arm/macro-assembler-arm.cc |
@@ -2957,6 +2957,19 @@ void MacroAssembler::CopyBytes(Register src, |
} |
+void MacroAssembler::InitializeFieldsWithFiller(Register start_offset, |
+ Register end_offset, |
+ Register filler) { |
+ Label loop, entry; |
+ b(&entry); |
+ bind(&loop); |
+ str(filler, MemOperand(start_offset, kPointerSize, PostIndex)); |
+ bind(&entry); |
+ cmp(start_offset, end_offset); |
+ b(lt, &loop); |
+} |
+ |
+ |
void MacroAssembler::CountLeadingZeros(Register zeros, // Answer. |
Register source, // Input. |
Register scratch) { |