Index: src/x64/code-stubs-x64.cc |
diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc |
index 4f08229d848c965421f854a1c6c7e13643237eaa..6f876a49c465888a6902e2b8b8e3eb027087b39a 100644 |
--- a/src/x64/code-stubs-x64.cc |
+++ b/src/x64/code-stubs-x64.cc |
@@ -1965,37 +1965,6 @@ void StringCharFromCodeGenerator::GenerateSlow( |
__ Abort(kUnexpectedFallthroughFromCharFromCodeSlowCase); |
} |
- |
-void StringHelper::GenerateCopyCharacters(MacroAssembler* masm, |
- Register dest, |
- Register src, |
- Register count, |
- String::Encoding encoding) { |
- // Nothing to do for zero characters. |
- Label done; |
- __ testl(count, count); |
- __ j(zero, &done, Label::kNear); |
- |
- // Make count the number of bytes to copy. |
- if (encoding == String::TWO_BYTE_ENCODING) { |
- STATIC_ASSERT(2 == sizeof(uc16)); |
- __ addl(count, count); |
- } |
- |
- // Copy remaining characters. |
- Label loop; |
- __ bind(&loop); |
- __ movb(kScratchRegister, Operand(src, 0)); |
- __ movb(Operand(dest, 0), kScratchRegister); |
- __ incp(src); |
- __ incp(dest); |
- __ decl(count); |
- __ j(not_zero, &loop); |
- |
- __ bind(&done); |
-} |
- |
- |
void StringHelper::GenerateFlatOneByteStringEquals(MacroAssembler* masm, |
Register left, |
Register right, |