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

Unified Diff: src/ppc/macro-assembler-ppc.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/ppc/macro-assembler-ppc.h ('k') | src/s390/macro-assembler-s390.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ppc/macro-assembler-ppc.cc
diff --git a/src/ppc/macro-assembler-ppc.cc b/src/ppc/macro-assembler-ppc.cc
index b168e4738d53d0638e4c9118b82d73f6dd9fc2dc..5c0864abb781d01e20ddff155f05d82556e8b539 100644
--- a/src/ppc/macro-assembler-ppc.cc
+++ b/src/ppc/macro-assembler-ppc.cc
@@ -1545,15 +1545,6 @@ void MacroAssembler::IsObjectJSStringType(Register object, Register scratch,
}
-void MacroAssembler::IsObjectNameType(Register object, Register scratch,
- Label* fail) {
- LoadP(scratch, FieldMemOperand(object, HeapObject::kMapOffset));
- lbz(scratch, FieldMemOperand(scratch, Map::kInstanceTypeOffset));
- cmpi(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 =
@@ -2090,29 +2081,6 @@ void MacroAssembler::CheckMap(Register obj, Register scratch,
}
-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 cr) {
- mov(scratch, Operand(cell));
- LoadP(scratch, FieldMemOperand(scratch, WeakCell::kValueOffset));
- cmp(value, scratch, cr);
-}
-
-
void MacroAssembler::GetWeakValue(Register value, Handle<WeakCell> cell) {
mov(value, Operand(cell));
LoadP(value, FieldMemOperand(value, WeakCell::kValueOffset));
@@ -2452,27 +2420,6 @@ void MacroAssembler::Assert(Condition cond, BailoutReason reason,
}
-void MacroAssembler::AssertFastElements(Register elements) {
- if (emit_debug_code()) {
- DCHECK(!elements.is(r0));
- Label ok;
- push(elements);
- LoadP(elements, FieldMemOperand(elements, HeapObject::kMapOffset));
- LoadRoot(r0, Heap::kFixedArrayMapRootIndex);
- cmp(elements, r0);
- beq(&ok);
- LoadRoot(r0, Heap::kFixedDoubleArrayMapRootIndex);
- cmp(elements, r0);
- beq(&ok);
- LoadRoot(r0, Heap::kFixedCOWArrayMapRootIndex);
- cmp(elements, r0);
- beq(&ok);
- Abort(kJSObjectWithFastElementsMapHasSlowElements);
- bind(&ok);
- pop(elements);
- }
-}
-
void MacroAssembler::Check(Condition cond, BailoutReason reason, CRegister cr) {
Label L;
@@ -2623,18 +2570,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, r0);
- 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);
@@ -2653,34 +2588,6 @@ void MacroAssembler::AssertSmi(Register object) {
}
-void MacroAssembler::AssertString(Register object) {
- if (emit_debug_code()) {
- STATIC_ASSERT(kSmiTag == 0);
- TestIfSmi(object, r0);
- 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, r0);
- 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);
@@ -2718,19 +2625,6 @@ void MacroAssembler::AssertGeneratorObject(Register object) {
}
}
-void MacroAssembler::AssertReceiver(Register object) {
- if (emit_debug_code()) {
- STATIC_ASSERT(kSmiTag == 0);
- TestIfSmi(object, r0);
- 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()) {
« no previous file with comments | « src/ppc/macro-assembler-ppc.h ('k') | src/s390/macro-assembler-s390.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698