Index: src/mips64/code-stubs-mips64.cc |
diff --git a/src/mips64/code-stubs-mips64.cc b/src/mips64/code-stubs-mips64.cc |
index c744b2de2308ab22629ed7e6f11b0ed0c1503ea3..16441b70f8b36389be222ca6542c40c17e076b80 100644 |
--- a/src/mips64/code-stubs-mips64.cc |
+++ b/src/mips64/code-stubs-mips64.cc |
@@ -3109,57 +3109,6 @@ void StringHelper::GenerateCopyCharacters(MacroAssembler* masm, |
} |
-void StringHelper::GenerateHashInit(MacroAssembler* masm, |
- Register hash, |
- Register character) { |
- // hash = seed + character + ((seed + character) << 10); |
- __ LoadRoot(hash, Heap::kHashSeedRootIndex); |
- // Untag smi seed and add the character. |
- __ SmiUntag(hash); |
- __ addu(hash, hash, character); |
- __ sll(at, hash, 10); |
- __ addu(hash, hash, at); |
- // hash ^= hash >> 6; |
- __ srl(at, hash, 6); |
- __ xor_(hash, hash, at); |
-} |
- |
- |
-void StringHelper::GenerateHashAddCharacter(MacroAssembler* masm, |
- Register hash, |
- Register character) { |
- // hash += character; |
- __ addu(hash, hash, character); |
- // hash += hash << 10; |
- __ sll(at, hash, 10); |
- __ addu(hash, hash, at); |
- // hash ^= hash >> 6; |
- __ srl(at, hash, 6); |
- __ xor_(hash, hash, at); |
-} |
- |
- |
-void StringHelper::GenerateHashGetHash(MacroAssembler* masm, |
- Register hash) { |
- // hash += hash << 3; |
- __ sll(at, hash, 3); |
- __ addu(hash, hash, at); |
- // hash ^= hash >> 11; |
- __ srl(at, hash, 11); |
- __ xor_(hash, hash, at); |
- // hash += hash << 15; |
- __ sll(at, hash, 15); |
- __ addu(hash, hash, at); |
- |
- __ li(at, Operand(String::kHashBitMask)); |
- __ and_(hash, hash, at); |
- |
- // if (hash == 0) hash = 27; |
- __ ori(at, zero_reg, StringHasher::kZeroHash); |
- __ Movz(hash, at, hash); |
-} |
- |
- |
void SubStringStub::Generate(MacroAssembler* masm) { |
Label runtime; |
// Stack frame on entry. |