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

Unified Diff: src/arm/macro-assembler-arm.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/arm/macro-assembler-arm.h ('k') | src/arm64/macro-assembler-arm64.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/arm/macro-assembler-arm.cc
diff --git a/src/arm/macro-assembler-arm.cc b/src/arm/macro-assembler-arm.cc
index e6477146ce3cb2ee6359c49fb2e297d98968852c..0ba541ca7b1ca6c73ff6e8458f923c5b37fab864 100644
--- a/src/arm/macro-assembler-arm.cc
+++ b/src/arm/macro-assembler-arm.cc
@@ -1923,15 +1923,6 @@ Condition MacroAssembler::IsObjectStringType(Register obj, Register type,
return eq;
}
-void MacroAssembler::IsObjectNameType(Register object,
- Register scratch,
- Label* fail) {
- ldr(scratch, FieldMemOperand(object, HeapObject::kMapOffset));
- ldrb(scratch, FieldMemOperand(scratch, Map::kInstanceTypeOffset));
- cmp(scratch, Operand(LAST_NAME_TYPE));
- b(hi, fail);
-}
-
void MacroAssembler::MaybeDropFrames() {
// Check whether we need to drop frames to restart a function on the stack.
ExternalReference restart_fp =
@@ -2392,29 +2383,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);
- }
- ldr(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) {
- mov(scratch, Operand(cell));
- ldr(scratch, FieldMemOperand(scratch, WeakCell::kValueOffset));
- cmp(value, scratch);
-}
-
-
void MacroAssembler::GetWeakValue(Register value, Handle<WeakCell> cell) {
mov(value, Operand(cell));
ldr(value, FieldMemOperand(value, WeakCell::kValueOffset));
@@ -2715,27 +2683,6 @@ void MacroAssembler::Assert(Condition cond, BailoutReason reason) {
}
-void MacroAssembler::AssertFastElements(Register elements) {
- if (emit_debug_code()) {
- DCHECK(!elements.is(ip));
- Label ok;
- push(elements);
- ldr(elements, FieldMemOperand(elements, HeapObject::kMapOffset));
- LoadRoot(ip, Heap::kFixedArrayMapRootIndex);
- cmp(elements, ip);
- b(eq, &ok);
- LoadRoot(ip, Heap::kFixedDoubleArrayMapRootIndex);
- cmp(elements, ip);
- b(eq, &ok);
- LoadRoot(ip, Heap::kFixedCOWArrayMapRootIndex);
- cmp(elements, ip);
- b(eq, &ok);
- Abort(kJSObjectWithFastElementsMapHasSlowElements);
- bind(&ok);
- pop(elements);
- }
-}
-
void MacroAssembler::Check(Condition cond, BailoutReason reason) {
Label L;
@@ -2907,18 +2854,6 @@ void MacroAssembler::JumpIfEitherSmi(Register reg1,
b(eq, on_either_smi);
}
-void MacroAssembler::AssertNotNumber(Register object) {
- if (emit_debug_code()) {
- STATIC_ASSERT(kSmiTag == 0);
- tst(object, Operand(kSmiTagMask));
- Check(ne, kOperandIsANumber);
- 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);
@@ -2937,34 +2872,6 @@ void MacroAssembler::AssertSmi(Register object) {
}
-void MacroAssembler::AssertString(Register object) {
- if (emit_debug_code()) {
- STATIC_ASSERT(kSmiTag == 0);
- tst(object, Operand(kSmiTagMask));
- Check(ne, kOperandIsASmiAndNotAString);
- push(object);
- ldr(object, FieldMemOperand(object, HeapObject::kMapOffset));
- CompareInstanceType(object, object, FIRST_NONSTRING_TYPE);
- pop(object);
- Check(lo, kOperandIsNotAString);
- }
-}
-
-
-void MacroAssembler::AssertName(Register object) {
- if (emit_debug_code()) {
- STATIC_ASSERT(kSmiTag == 0);
- tst(object, Operand(kSmiTagMask));
- Check(ne, kOperandIsASmiAndNotAName);
- push(object);
- ldr(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);
@@ -3002,20 +2909,6 @@ void MacroAssembler::AssertGeneratorObject(Register object) {
}
}
-void MacroAssembler::AssertReceiver(Register object) {
- if (emit_debug_code()) {
- STATIC_ASSERT(kSmiTag == 0);
- tst(object, Operand(kSmiTagMask));
- Check(ne, kOperandIsASmiAndNotAReceiver);
- push(object);
- STATIC_ASSERT(LAST_TYPE == LAST_JS_RECEIVER_TYPE);
- CompareObjectType(object, object, object, FIRST_JS_RECEIVER_TYPE);
- pop(object);
- Check(hs, kOperandIsNotAReceiver);
- }
-}
-
-
void MacroAssembler::AssertUndefinedOrAllocationSite(Register object,
Register scratch) {
if (emit_debug_code()) {
« no previous file with comments | « src/arm/macro-assembler-arm.h ('k') | src/arm64/macro-assembler-arm64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698