Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(652)

Unified Diff: src/mips/macro-assembler-mips.cc

Issue 2762973004: [macro-assembler] Remove a bunch of unused functions. (Closed)
Patch Set: More. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/mips/macro-assembler-mips.h ('k') | src/mips64/macro-assembler-mips64.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « src/mips/macro-assembler-mips.h ('k') | src/mips64/macro-assembler-mips64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698