Index: src/a64/macro-assembler-a64.cc |
diff --git a/src/a64/macro-assembler-a64.cc b/src/a64/macro-assembler-a64.cc |
index ca61b491632fa523ee997f33c90e577d908bfe7f..d26c2d003dc12099a36f08e290c520199dd60cd3 100644 |
--- a/src/a64/macro-assembler-a64.cc |
+++ b/src/a64/macro-assembler-a64.cc |
@@ -3644,11 +3644,9 @@ void MacroAssembler::TestMapBitfield(Register object, uint64_t mask) { |
} |
-void MacroAssembler::LoadElementsKind(Register result, Register object) { |
- // Load map. |
- __ Ldr(result, FieldMemOperand(object, HeapObject::kMapOffset)); |
+void MacroAssembler::LoadElementsKindFromMap(Register result, Register map) { |
// Load the map's "bit field 2". |
- __ Ldrb(result, FieldMemOperand(result, Map::kBitField2Offset)); |
+ __ Ldrb(result, FieldMemOperand(map, Map::kBitField2Offset)); |
// Retrieve elements_kind from bit field 2. |
__ Ubfx(result, result, Map::kElementsKindShift, Map::kElementsKindBitCount); |
} |
@@ -3806,17 +3804,6 @@ void MacroAssembler::CheckFastObjectElements(Register map, |
} |
-void MacroAssembler::CheckFastSmiElements(Register map, |
- Register scratch, |
- Label* fail) { |
- STATIC_ASSERT(FAST_SMI_ELEMENTS == 0); |
- STATIC_ASSERT(FAST_HOLEY_SMI_ELEMENTS == 1); |
- Ldrb(scratch, FieldMemOperand(map, Map::kBitField2Offset)); |
- Cmp(scratch, Map::kMaximumBitField2FastHoleySmiElementValue); |
- B(hi, fail); |
-} |
- |
- |
// Note: The ARM version of this clobbers elements_reg, but this version does |
// not. Some uses of this in A64 assume that elements_reg will be preserved. |
void MacroAssembler::StoreNumberToDoubleElements(Register value_reg, |