Index: src/mips64/macro-assembler-mips64.cc |
diff --git a/src/mips64/macro-assembler-mips64.cc b/src/mips64/macro-assembler-mips64.cc |
index 96010ac103f0a3d64208d4e15ba22ac2d4ea4c5d..cb94b3f96564be8b49431d99585580627dcee7e4 100644 |
--- a/src/mips64/macro-assembler-mips64.cc |
+++ b/src/mips64/macro-assembler-mips64.cc |
@@ -637,87 +637,6 @@ void MacroAssembler::GetNumberHash(Register reg0, Register scratch) { |
And(reg0, reg0, Operand(0x3fffffff)); |
} |
- |
-void MacroAssembler::LoadFromNumberDictionary(Label* miss, |
- Register elements, |
- Register key, |
- Register result, |
- Register reg0, |
- Register reg1, |
- Register reg2) { |
- // Register use: |
- // |
- // elements - holds the slow-case elements of the receiver on entry. |
- // Unchanged unless 'result' is the same register. |
- // |
- // key - holds the smi key on entry. |
- // Unchanged unless 'result' is the same register. |
- // |
- // |
- // result - holds the result on exit if the load succeeded. |
- // Allowed to be the same as 'key' or 'result'. |
- // Unchanged on bailout so 'key' or 'result' can be used |
- // in further computation. |
- // |
- // Scratch registers: |
- // |
- // reg0 - holds the untagged key on entry and holds the hash once computed. |
- // |
- // reg1 - Used to hold the capacity mask of the dictionary. |
- // |
- // reg2 - Used for the index into the dictionary. |
- // at - Temporary (avoid MacroAssembler instructions also using 'at'). |
- Label done; |
- |
- GetNumberHash(reg0, reg1); |
- |
- // Compute the capacity mask. |
- ld(reg1, FieldMemOperand(elements, SeededNumberDictionary::kCapacityOffset)); |
- SmiUntag(reg1, reg1); |
- Dsubu(reg1, reg1, Operand(1)); |
- |
- // Generate an unrolled loop that performs a few probes before giving up. |
- for (int i = 0; i < kNumberDictionaryProbes; i++) { |
- // Use reg2 for index calculations and keep the hash intact in reg0. |
- mov(reg2, reg0); |
- // Compute the masked index: (hash + i + i * i) & mask. |
- if (i > 0) { |
- Daddu(reg2, reg2, Operand(SeededNumberDictionary::GetProbeOffset(i))); |
- } |
- and_(reg2, reg2, reg1); |
- |
- // Scale the index by multiplying by the element size. |
- DCHECK(SeededNumberDictionary::kEntrySize == 3); |
- Dlsa(reg2, reg2, reg2, 1); // reg2 = reg2 * 3. |
- |
- // Check if the key is identical to the name. |
- Dlsa(reg2, elements, reg2, kPointerSizeLog2); |
- |
- ld(at, FieldMemOperand(reg2, SeededNumberDictionary::kElementsStartOffset)); |
- if (i != kNumberDictionaryProbes - 1) { |
- Branch(&done, eq, key, Operand(at)); |
- } else { |
- Branch(miss, ne, key, Operand(at)); |
- } |
- } |
- |
- bind(&done); |
- // Check that the value is a field property. |
- // reg2: elements + (index * kPointerSize). |
- const int kDetailsOffset = |
- SeededNumberDictionary::kElementsStartOffset + 2 * kPointerSize; |
- ld(reg1, FieldMemOperand(reg2, kDetailsOffset)); |
- DCHECK_EQ(DATA, 0); |
- And(at, reg1, Operand(Smi::FromInt(PropertyDetails::TypeField::kMask))); |
- Branch(miss, ne, at, Operand(zero_reg)); |
- |
- // Get the value at the masked, scaled index and return. |
- const int kValueOffset = |
- SeededNumberDictionary::kElementsStartOffset + kPointerSize; |
- ld(result, FieldMemOperand(reg2, kValueOffset)); |
-} |
- |
- |
// --------------------------------------------------------------------------- |
// Instruction macros. |
@@ -4883,20 +4802,6 @@ void MacroAssembler::InitializeFieldsWithFiller(Register current_address, |
Branch(&loop, ult, current_address, Operand(end_address)); |
} |
- |
-void MacroAssembler::CheckFastElements(Register map, |
- Register scratch, |
- Label* fail) { |
- STATIC_ASSERT(FAST_SMI_ELEMENTS == 0); |
- STATIC_ASSERT(FAST_HOLEY_SMI_ELEMENTS == 1); |
- STATIC_ASSERT(FAST_ELEMENTS == 2); |
- STATIC_ASSERT(FAST_HOLEY_ELEMENTS == 3); |
- lbu(scratch, FieldMemOperand(map, Map::kBitField2Offset)); |
- Branch(fail, hi, scratch, |
- Operand(Map::kMaximumBitField2FastHoleyElementValue)); |
-} |
- |
- |
void MacroAssembler::CheckFastObjectElements(Register map, |
Register scratch, |
Label* fail) { |