Index: src/mips/macro-assembler-mips.cc |
diff --git a/src/mips/macro-assembler-mips.cc b/src/mips/macro-assembler-mips.cc |
index c4d217d3d4ef776a4232dde85917c0b4b098e96c..6b8a42898e6542c95af1aa8bcc1823200f791611 100644 |
--- a/src/mips/macro-assembler-mips.cc |
+++ b/src/mips/macro-assembler-mips.cc |
@@ -4380,21 +4380,6 @@ void MacroAssembler::CheckMap(Register obj, |
} |
-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); |
- } |
- lw(scratch1, FieldMemOperand(obj, HeapObject::kMapOffset)); |
- GetWeakValue(scratch2, cell); |
- Jump(success, RelocInfo::CODE_TARGET, eq, scratch1, Operand(scratch2)); |
- bind(&fail); |
-} |
- |
- |
void MacroAssembler::CheckMap(Register obj, |
Register scratch, |
Heap::RootListIndex index, |
@@ -4780,15 +4765,6 @@ void MacroAssembler::IsObjectJSStringType(Register object, |
} |
-void MacroAssembler::IsObjectNameType(Register object, |
- Register scratch, |
- Label* fail) { |
- lw(scratch, FieldMemOperand(object, HeapObject::kMapOffset)); |
- lbu(scratch, FieldMemOperand(scratch, Map::kInstanceTypeOffset)); |
- Branch(fail, hi, scratch, Operand(LAST_NAME_TYPE)); |
-} |
- |
- |
// --------------------------------------------------------------------------- |
// Support functions. |
@@ -5227,24 +5203,6 @@ void MacroAssembler::Assert(Condition cc, BailoutReason reason, |
} |
-void MacroAssembler::AssertFastElements(Register elements) { |
- if (emit_debug_code()) { |
- DCHECK(!elements.is(at)); |
- Label ok; |
- push(elements); |
- lw(elements, FieldMemOperand(elements, HeapObject::kMapOffset)); |
- LoadRoot(at, Heap::kFixedArrayMapRootIndex); |
- Branch(&ok, eq, elements, Operand(at)); |
- LoadRoot(at, Heap::kFixedDoubleArrayMapRootIndex); |
- Branch(&ok, eq, elements, Operand(at)); |
- LoadRoot(at, Heap::kFixedCOWArrayMapRootIndex); |
- Branch(&ok, eq, elements, Operand(at)); |
- Abort(kJSObjectWithFastElementsMapHasSlowElements); |
- bind(&ok); |
- pop(elements); |
- } |
-} |
- |
void MacroAssembler::Check(Condition cc, BailoutReason reason, |
Register rs, Operand rt) { |
@@ -5672,16 +5630,6 @@ void MacroAssembler::JumpIfEitherSmi(Register reg1, |
JumpIfSmi(at, on_either_smi); |
} |
-void MacroAssembler::AssertNotNumber(Register object) { |
- if (emit_debug_code()) { |
- STATIC_ASSERT(kSmiTag == 0); |
- andi(at, object, kSmiTagMask); |
- Check(ne, kOperandIsANumber, at, Operand(zero_reg)); |
- GetObjectType(object, t8, t8); |
- Check(ne, kOperandIsNotANumber, t8, Operand(HEAP_NUMBER_TYPE)); |
- } |
-} |
- |
void MacroAssembler::AssertNotSmi(Register object) { |
if (emit_debug_code()) { |
STATIC_ASSERT(kSmiTag == 0); |
@@ -5700,28 +5648,6 @@ void MacroAssembler::AssertSmi(Register object) { |
} |
-void MacroAssembler::AssertString(Register object) { |
- if (emit_debug_code()) { |
- STATIC_ASSERT(kSmiTag == 0); |
- SmiTst(object, t8); |
- Check(ne, kOperandIsASmiAndNotAString, t8, Operand(zero_reg)); |
- GetObjectType(object, t8, t8); |
- Check(lo, kOperandIsNotAString, t8, Operand(FIRST_NONSTRING_TYPE)); |
- } |
-} |
- |
- |
-void MacroAssembler::AssertName(Register object) { |
- if (emit_debug_code()) { |
- STATIC_ASSERT(kSmiTag == 0); |
- SmiTst(object, t8); |
- Check(ne, kOperandIsASmiAndNotAName, t8, Operand(zero_reg)); |
- GetObjectType(object, t8, t8); |
- Check(le, kOperandIsNotAName, t8, Operand(LAST_NAME_TYPE)); |
- } |
-} |
- |
- |
void MacroAssembler::AssertFunction(Register object) { |
if (emit_debug_code()) { |
STATIC_ASSERT(kSmiTag == 0); |
@@ -5754,16 +5680,6 @@ void MacroAssembler::AssertGeneratorObject(Register object) { |
} |
} |
-void MacroAssembler::AssertReceiver(Register object) { |
- if (emit_debug_code()) { |
- STATIC_ASSERT(kSmiTag == 0); |
- SmiTst(object, t8); |
- Check(ne, kOperandIsASmiAndNotAReceiver, t8, Operand(zero_reg)); |
- GetObjectType(object, t8, t8); |
- Check(ge, kOperandIsNotAReceiver, t8, Operand(FIRST_JS_RECEIVER_TYPE)); |
- } |
-} |
- |
void MacroAssembler::AssertUndefinedOrAllocationSite(Register object, |
Register scratch) { |