Index: src/arm/macro-assembler-arm.cc |
diff --git a/src/arm/macro-assembler-arm.cc b/src/arm/macro-assembler-arm.cc |
index 566fdf14f2ced34c15d052cbd1941f330c35629b..6f55d4ae3240211fa9bd151403ef447c28843447 100644 |
--- a/src/arm/macro-assembler-arm.cc |
+++ b/src/arm/macro-assembler-arm.cc |
@@ -3245,50 +3245,6 @@ void MacroAssembler::AllocateJSValue(Register result, Register constructor, |
STATIC_ASSERT(JSValue::kSize == 4 * kPointerSize); |
} |
- |
-void MacroAssembler::CopyBytes(Register src, |
- Register dst, |
- Register length, |
- Register scratch) { |
- Label align_loop_1, word_loop, byte_loop, byte_loop_1, done; |
- |
- // Align src before copying in word size chunks. |
- cmp(length, Operand(kPointerSize)); |
- b(le, &byte_loop); |
- |
- bind(&align_loop_1); |
- tst(src, Operand(kPointerSize - 1)); |
- b(eq, &word_loop); |
- ldrb(scratch, MemOperand(src, 1, PostIndex)); |
- strb(scratch, MemOperand(dst, 1, PostIndex)); |
- sub(length, length, Operand(1), SetCC); |
- b(&align_loop_1); |
- // Copy bytes in word size chunks. |
- bind(&word_loop); |
- if (emit_debug_code()) { |
- tst(src, Operand(kPointerSize - 1)); |
- Assert(eq, kExpectingAlignmentForCopyBytes); |
- } |
- cmp(length, Operand(kPointerSize)); |
- b(lt, &byte_loop); |
- ldr(scratch, MemOperand(src, kPointerSize, PostIndex)); |
- str(scratch, MemOperand(dst, kPointerSize, PostIndex)); |
- sub(length, length, Operand(kPointerSize)); |
- b(&word_loop); |
- |
- // Copy the last bytes if any left. |
- bind(&byte_loop); |
- cmp(length, Operand::Zero()); |
- b(eq, &done); |
- bind(&byte_loop_1); |
- ldrb(scratch, MemOperand(src, 1, PostIndex)); |
- strb(scratch, MemOperand(dst, 1, PostIndex)); |
- sub(length, length, Operand(1), SetCC); |
- b(ne, &byte_loop_1); |
- bind(&done); |
-} |
- |
- |
void MacroAssembler::InitializeFieldsWithFiller(Register current_address, |
Register end_address, |
Register filler) { |