Index: src/s390/macro-assembler-s390.cc |
diff --git a/src/s390/macro-assembler-s390.cc b/src/s390/macro-assembler-s390.cc |
index 3b293954cae4760e0ec0c0bf14facbfbefe5dee6..0e4ab0b9c7bd4bfef46e2f5890dc219b3ce040e8 100644 |
--- a/src/s390/macro-assembler-s390.cc |
+++ b/src/s390/macro-assembler-s390.cc |
@@ -1459,14 +1459,6 @@ void MacroAssembler::IsObjectJSStringType(Register object, Register scratch, |
bne(fail); |
} |
-void MacroAssembler::IsObjectNameType(Register object, Register scratch, |
- Label* fail) { |
- LoadP(scratch, FieldMemOperand(object, HeapObject::kMapOffset)); |
- LoadlB(scratch, FieldMemOperand(scratch, Map::kInstanceTypeOffset)); |
- CmpP(scratch, Operand(LAST_NAME_TYPE)); |
- bgt(fail); |
-} |
- |
void MacroAssembler::MaybeDropFrames() { |
// Check whether we need to drop frames to restart a function on the stack. |
ExternalReference restart_fp = |
@@ -1928,26 +1920,6 @@ void MacroAssembler::CheckMap(Register obj, Register scratch, |
bne(fail); |
} |
-void MacroAssembler::DispatchWeakMap(Register obj, Register scratch1, |
- Register scratch2, Handle<WeakCell> cell, |
- Handle<Code> success, |
- SmiCheckType smi_check_type) { |
- Label fail; |
- if (smi_check_type == DO_SMI_CHECK) { |
- JumpIfSmi(obj, &fail); |
- } |
- LoadP(scratch1, FieldMemOperand(obj, HeapObject::kMapOffset)); |
- CmpWeakValue(scratch1, cell, scratch2); |
- Jump(success, RelocInfo::CODE_TARGET, eq); |
- bind(&fail); |
-} |
- |
-void MacroAssembler::CmpWeakValue(Register value, Handle<WeakCell> cell, |
- Register scratch, CRegister) { |
- mov(scratch, Operand(cell)); |
- CmpP(value, FieldMemOperand(scratch, WeakCell::kValueOffset)); |
-} |
- |
void MacroAssembler::GetWeakValue(Register value, Handle<WeakCell> cell) { |
mov(value, Operand(cell)); |
LoadP(value, FieldMemOperand(value, WeakCell::kValueOffset)); |
@@ -2229,24 +2201,6 @@ void MacroAssembler::Assert(Condition cond, BailoutReason reason, |
if (emit_debug_code()) Check(cond, reason, cr); |
} |
-void MacroAssembler::AssertFastElements(Register elements) { |
- if (emit_debug_code()) { |
- DCHECK(!elements.is(r0)); |
- Label ok; |
- push(elements); |
- LoadP(elements, FieldMemOperand(elements, HeapObject::kMapOffset)); |
- CompareRoot(elements, Heap::kFixedArrayMapRootIndex); |
- beq(&ok, Label::kNear); |
- CompareRoot(elements, Heap::kFixedDoubleArrayMapRootIndex); |
- beq(&ok, Label::kNear); |
- CompareRoot(elements, Heap::kFixedCOWArrayMapRootIndex); |
- beq(&ok, Label::kNear); |
- Abort(kJSObjectWithFastElementsMapHasSlowElements); |
- bind(&ok); |
- pop(elements); |
- } |
-} |
- |
void MacroAssembler::Check(Condition cond, BailoutReason reason, CRegister cr) { |
Label L; |
b(cond, &L); |
@@ -2394,18 +2348,6 @@ void MacroAssembler::JumpIfEitherSmi(Register reg1, Register reg2, |
JumpIfSmi(reg2, on_either_smi); |
} |
-void MacroAssembler::AssertNotNumber(Register object) { |
- if (emit_debug_code()) { |
- STATIC_ASSERT(kSmiTag == 0); |
- TestIfSmi(object); |
- Check(ne, kOperandIsANumber, cr0); |
- push(object); |
- CompareObjectType(object, object, object, HEAP_NUMBER_TYPE); |
- pop(object); |
- Check(ne, kOperandIsANumber); |
- } |
-} |
- |
void MacroAssembler::AssertNotSmi(Register object) { |
if (emit_debug_code()) { |
STATIC_ASSERT(kSmiTag == 0); |
@@ -2422,32 +2364,6 @@ void MacroAssembler::AssertSmi(Register object) { |
} |
} |
-void MacroAssembler::AssertString(Register object) { |
- if (emit_debug_code()) { |
- STATIC_ASSERT(kSmiTag == 0); |
- TestIfSmi(object); |
- Check(ne, kOperandIsASmiAndNotAString, cr0); |
- push(object); |
- LoadP(object, FieldMemOperand(object, HeapObject::kMapOffset)); |
- CompareInstanceType(object, object, FIRST_NONSTRING_TYPE); |
- pop(object); |
- Check(lt, kOperandIsNotAString); |
- } |
-} |
- |
-void MacroAssembler::AssertName(Register object) { |
- if (emit_debug_code()) { |
- STATIC_ASSERT(kSmiTag == 0); |
- TestIfSmi(object); |
- Check(ne, kOperandIsASmiAndNotAName, cr0); |
- push(object); |
- LoadP(object, FieldMemOperand(object, HeapObject::kMapOffset)); |
- CompareInstanceType(object, object, LAST_NAME_TYPE); |
- pop(object); |
- Check(le, kOperandIsNotAName); |
- } |
-} |
- |
void MacroAssembler::AssertFunction(Register object) { |
if (emit_debug_code()) { |
STATIC_ASSERT(kSmiTag == 0); |
@@ -2484,19 +2400,6 @@ void MacroAssembler::AssertGeneratorObject(Register object) { |
} |
} |
-void MacroAssembler::AssertReceiver(Register object) { |
- if (emit_debug_code()) { |
- STATIC_ASSERT(kSmiTag == 0); |
- TestIfSmi(object); |
- Check(ne, kOperandIsASmiAndNotAReceiver, cr0); |
- push(object); |
- STATIC_ASSERT(LAST_TYPE == LAST_JS_RECEIVER_TYPE); |
- CompareObjectType(object, object, object, FIRST_JS_RECEIVER_TYPE); |
- pop(object); |
- Check(ge, kOperandIsNotAReceiver); |
- } |
-} |
- |
void MacroAssembler::AssertUndefinedOrAllocationSite(Register object, |
Register scratch) { |
if (emit_debug_code()) { |