| Index: src/x64/code-stubs-x64.cc
|
| diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc
|
| index 614ce93efc45d3b93d87a37b8c5e75fc0c2c005e..27c747594530b734235bac6bf8521e8f440f85fb 100644
|
| --- a/src/x64/code-stubs-x64.cc
|
| +++ b/src/x64/code-stubs-x64.cc
|
| @@ -2576,61 +2576,6 @@ void NameDictionaryLookupStub::GenerateNegativeLookup(MacroAssembler* masm,
|
| __ jmp(done);
|
| }
|
|
|
| -
|
| -// Probe the name dictionary in the |elements| register. Jump to the
|
| -// |done| label if a property with the given name is found leaving the
|
| -// index into the dictionary in |r1|. Jump to the |miss| label
|
| -// otherwise.
|
| -void NameDictionaryLookupStub::GeneratePositiveLookup(MacroAssembler* masm,
|
| - Label* miss,
|
| - Label* done,
|
| - Register elements,
|
| - Register name,
|
| - Register r0,
|
| - Register r1) {
|
| - DCHECK(!elements.is(r0));
|
| - DCHECK(!elements.is(r1));
|
| - DCHECK(!name.is(r0));
|
| - DCHECK(!name.is(r1));
|
| -
|
| - __ AssertName(name);
|
| -
|
| - __ SmiToInteger32(r0, FieldOperand(elements, kCapacityOffset));
|
| - __ decl(r0);
|
| -
|
| - for (int i = 0; i < kInlinedProbes; i++) {
|
| - // Compute the masked index: (hash + i + i * i) & mask.
|
| - __ movl(r1, FieldOperand(name, Name::kHashFieldOffset));
|
| - __ shrl(r1, Immediate(Name::kHashShift));
|
| - if (i > 0) {
|
| - __ addl(r1, Immediate(NameDictionary::GetProbeOffset(i)));
|
| - }
|
| - __ andp(r1, r0);
|
| -
|
| - // Scale the index by multiplying by the entry size.
|
| - STATIC_ASSERT(NameDictionary::kEntrySize == 3);
|
| - __ leap(r1, Operand(r1, r1, times_2, 0)); // r1 = r1 * 3
|
| -
|
| - // Check if the key is identical to the name.
|
| - __ cmpp(name, Operand(elements, r1, times_pointer_size,
|
| - kElementsStartOffset - kHeapObjectTag));
|
| - __ j(equal, done);
|
| - }
|
| -
|
| - NameDictionaryLookupStub stub(masm->isolate(), elements, r0, r1,
|
| - POSITIVE_LOOKUP);
|
| - __ Push(name);
|
| - __ movl(r0, FieldOperand(name, Name::kHashFieldOffset));
|
| - __ shrl(r0, Immediate(Name::kHashShift));
|
| - __ Push(r0);
|
| - __ CallStub(&stub);
|
| -
|
| - __ testp(r0, r0);
|
| - __ j(zero, miss);
|
| - __ jmp(done);
|
| -}
|
| -
|
| -
|
| 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.
|
|
|