| Index: src/mips64/code-stubs-mips64.cc
|
| diff --git a/src/mips64/code-stubs-mips64.cc b/src/mips64/code-stubs-mips64.cc
|
| index 200ecfa04917435f43b0f36ac67623b576aed326..8575604f1d1700a9b19cec7262ae9d205bfbb523 100644
|
| --- a/src/mips64/code-stubs-mips64.cc
|
| +++ b/src/mips64/code-stubs-mips64.cc
|
| @@ -2840,84 +2840,6 @@ void NameDictionaryLookupStub::GenerateNegativeLookup(MacroAssembler* masm,
|
| __ Branch(miss, ne, at, Operand(zero_reg));
|
| }
|
|
|
| -
|
| -// Probe the name dictionary in the |elements| register. Jump to the
|
| -// |done| label if a property with the given name is found. Jump to
|
| -// the |miss| label otherwise.
|
| -// If lookup was successful |scratch2| will be equal to elements + 4 * index.
|
| -void NameDictionaryLookupStub::GeneratePositiveLookup(MacroAssembler* masm,
|
| - Label* miss,
|
| - Label* done,
|
| - Register elements,
|
| - Register name,
|
| - Register scratch1,
|
| - Register scratch2) {
|
| - DCHECK(!elements.is(scratch1));
|
| - DCHECK(!elements.is(scratch2));
|
| - DCHECK(!name.is(scratch1));
|
| - DCHECK(!name.is(scratch2));
|
| -
|
| - __ AssertName(name);
|
| -
|
| - // Compute the capacity mask.
|
| - __ ld(scratch1, FieldMemOperand(elements, kCapacityOffset));
|
| - __ SmiUntag(scratch1);
|
| - __ Dsubu(scratch1, scratch1, Operand(1));
|
| -
|
| - // Generate an unrolled loop that performs a few probes before
|
| - // giving up. Measurements done on Gmail indicate that 2 probes
|
| - // cover ~93% of loads from dictionaries.
|
| - for (int i = 0; i < kInlinedProbes; i++) {
|
| - // Compute the masked index: (hash + i + i * i) & mask.
|
| - __ lwu(scratch2, FieldMemOperand(name, Name::kHashFieldOffset));
|
| - if (i > 0) {
|
| - // Add the probe offset (i + i * i) left shifted to avoid right shifting
|
| - // the hash in a separate instruction. The value hash + i + i * i is right
|
| - // shifted in the following and instruction.
|
| - DCHECK(NameDictionary::GetProbeOffset(i) <
|
| - 1 << (32 - Name::kHashFieldOffset));
|
| - __ Daddu(scratch2, scratch2, Operand(
|
| - NameDictionary::GetProbeOffset(i) << Name::kHashShift));
|
| - }
|
| - __ dsrl(scratch2, scratch2, Name::kHashShift);
|
| - __ And(scratch2, scratch1, scratch2);
|
| -
|
| - // Scale the index by multiplying by the entry size.
|
| - STATIC_ASSERT(NameDictionary::kEntrySize == 3);
|
| - // scratch2 = scratch2 * 3.
|
| - __ Dlsa(scratch2, scratch2, scratch2, 1);
|
| -
|
| - // Check if the key is identical to the name.
|
| - __ Dlsa(scratch2, elements, scratch2, kPointerSizeLog2);
|
| - __ ld(at, FieldMemOperand(scratch2, kElementsStartOffset));
|
| - __ Branch(done, eq, name, Operand(at));
|
| - }
|
| -
|
| - const int spill_mask =
|
| - (ra.bit() | a6.bit() | a5.bit() | a4.bit() |
|
| - a3.bit() | a2.bit() | a1.bit() | a0.bit() | v0.bit()) &
|
| - ~(scratch1.bit() | scratch2.bit());
|
| -
|
| - __ MultiPush(spill_mask);
|
| - if (name.is(a0)) {
|
| - DCHECK(!elements.is(a1));
|
| - __ Move(a1, name);
|
| - __ Move(a0, elements);
|
| - } else {
|
| - __ Move(a0, elements);
|
| - __ Move(a1, name);
|
| - }
|
| - NameDictionaryLookupStub stub(masm->isolate(), POSITIVE_LOOKUP);
|
| - __ CallStub(&stub);
|
| - __ mov(scratch2, a2);
|
| - __ mov(at, v0);
|
| - __ MultiPop(spill_mask);
|
| -
|
| - __ Branch(done, ne, at, Operand(zero_reg));
|
| - __ Branch(miss, eq, at, Operand(zero_reg));
|
| -}
|
| -
|
| -
|
| void NameDictionaryLookupStub::Generate(MacroAssembler* masm) {
|
| // This stub overrides SometimesSetsUpAFrame() to return false. That means
|
| // we cannot call anything that could cause a GC from this stub.
|
|
|