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

Unified Diff: src/mips64/macro-assembler-mips64.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/mips64/macro-assembler-mips64.h ('k') | src/ppc/macro-assembler-ppc.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/mips64/macro-assembler-mips64.cc
diff --git a/src/mips64/macro-assembler-mips64.cc b/src/mips64/macro-assembler-mips64.cc
index 0bad09212fdd5def41170fcfe1b5752375347c4c..a2ed8caf95db562944ab22ba01987066dab1f67a 100644
--- a/src/mips64/macro-assembler-mips64.cc
+++ b/src/mips64/macro-assembler-mips64.cc
@@ -4503,21 +4503,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);
- }
- ld(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,
@@ -4902,15 +4887,6 @@ void MacroAssembler::IsObjectJSStringType(Register object,
}
-void MacroAssembler::IsObjectNameType(Register object,
- Register scratch,
- Label* fail) {
- ld(scratch, FieldMemOperand(object, HeapObject::kMapOffset));
- lbu(scratch, FieldMemOperand(scratch, Map::kInstanceTypeOffset));
- Branch(fail, hi, scratch, Operand(LAST_NAME_TYPE));
-}
-
-
// ---------------------------------------------------------------------------
// Support functions.
@@ -5501,24 +5477,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);
- ld(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) {
@@ -6013,16 +5971,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);
@@ -6041,28 +5989,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);
@@ -6095,16 +6021,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/mips64/macro-assembler-mips64.h ('k') | src/ppc/macro-assembler-ppc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698