Index: src/mips64/code-stubs-mips64.cc |
diff --git a/src/mips64/code-stubs-mips64.cc b/src/mips64/code-stubs-mips64.cc |
index 2171220846450e45ffd0ca2f15c2d062e2a21f49..a0d76c160f89334f84bc0e26ebdba46949cc232c 100644 |
--- a/src/mips64/code-stubs-mips64.cc |
+++ b/src/mips64/code-stubs-mips64.cc |
@@ -2210,51 +2210,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. |
- __ And(scratch, dest, Operand(kPointerAlignmentMask)); |
- __ Check(eq, |
- kDestinationOfCopyNotAligned, |
- scratch, |
- Operand(zero_reg)); |
- } |
- |
- // Assumes word reads and writes are little endian. |
- // Nothing to do for zero characters. |
- Label done; |
- |
- if (encoding == String::TWO_BYTE_ENCODING) { |
- __ Daddu(count, count, count); |
- } |
- |
- Register limit = count; // Read until dest equals this. |
- __ Daddu(limit, dest, Operand(count)); |
- |
- Label loop_entry, loop; |
- // Copy bytes from src to dest until dest hits limit. |
- __ Branch(&loop_entry); |
- __ bind(&loop); |
- __ lbu(scratch, MemOperand(src)); |
- __ daddiu(src, src, 1); |
- __ sb(scratch, MemOperand(dest)); |
- __ daddiu(dest, dest, 1); |
- __ bind(&loop_entry); |
- __ Branch(&loop, lt, dest, Operand(limit)); |
- |
- __ bind(&done); |
-} |
- |
- |
void StringHelper::GenerateFlatOneByteStringEquals( |
MacroAssembler* masm, Register left, Register right, Register scratch1, |
Register scratch2, Register scratch3) { |