Index: src/arm/code-stubs-arm.cc |
diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc |
index 08b31ea907368d61621a0b3242354ff58cf29368..336e67a5ef141df0945fda8c6def0b81e2168dd6 100644 |
--- a/src/arm/code-stubs-arm.cc |
+++ b/src/arm/code-stubs-arm.cc |
@@ -2064,46 +2064,6 @@ void StringCharFromCodeGenerator::GenerateSlow( |
__ Abort(kUnexpectedFallthroughFromCharFromCodeSlowCase); |
} |
- |
-enum CopyCharactersFlags { COPY_ONE_BYTE = 1, DEST_ALWAYS_ALIGNED = 2 }; |
- |
- |
-void StringHelper::GenerateCopyCharacters(MacroAssembler* masm, |
- Register dest, |
- Register src, |
- Register count, |
- Register scratch, |
- String::Encoding encoding) { |
- if (FLAG_debug_code) { |
- // Check that destination is word aligned. |
- __ tst(dest, Operand(kPointerAlignmentMask)); |
- __ Check(eq, kDestinationOfCopyNotAligned); |
- } |
- |
- // Assumes word reads and writes are little endian. |
- // Nothing to do for zero characters. |
- Label done; |
- if (encoding == String::TWO_BYTE_ENCODING) { |
- __ add(count, count, Operand(count), SetCC); |
- } |
- |
- Register limit = count; // Read until dest equals this. |
- __ add(limit, dest, Operand(count)); |
- |
- Label loop_entry, loop; |
- // Copy bytes from src to dest until dest hits limit. |
- __ b(&loop_entry); |
- __ bind(&loop); |
- __ ldrb(scratch, MemOperand(src, 1, PostIndex), lt); |
- __ strb(scratch, MemOperand(dest, 1, PostIndex)); |
- __ bind(&loop_entry); |
- __ cmp(dest, Operand(limit)); |
- __ b(lt, &loop); |
- |
- __ bind(&done); |
-} |
- |
- |
void StringHelper::GenerateFlatOneByteStringEquals( |
MacroAssembler* masm, Register left, Register right, Register scratch1, |
Register scratch2, Register scratch3) { |