Index: src/ppc/macro-assembler-ppc.cc |
diff --git a/src/ppc/macro-assembler-ppc.cc b/src/ppc/macro-assembler-ppc.cc |
index 3eb5acc6ed13ee283342f9632808fe0bda06f698..c661de04cc778ed1d7eabac02cda3b9c73b01e86 100644 |
--- a/src/ppc/macro-assembler-ppc.cc |
+++ b/src/ppc/macro-assembler-ppc.cc |
@@ -1949,103 +1949,6 @@ void MacroAssembler::FastAllocate(int object_size, Register result, |
addi(result, result, Operand(kHeapObjectTag)); |
} |
- |
-void MacroAssembler::AllocateTwoByteString(Register result, Register length, |
- Register scratch1, Register scratch2, |
- Register scratch3, |
- Label* gc_required) { |
- // Calculate the number of bytes needed for the characters in the string while |
- // observing object alignment. |
- DCHECK((SeqTwoByteString::kHeaderSize & kObjectAlignmentMask) == 0); |
- slwi(scratch1, length, Operand(1)); // Length in bytes, not chars. |
- addi(scratch1, scratch1, |
- Operand(kObjectAlignmentMask + SeqTwoByteString::kHeaderSize)); |
- mov(r0, Operand(~kObjectAlignmentMask)); |
- and_(scratch1, scratch1, r0); |
- |
- // Allocate two-byte string in new space. |
- Allocate(scratch1, result, scratch2, scratch3, gc_required, |
- NO_ALLOCATION_FLAGS); |
- |
- // Set the map, length and hash field. |
- InitializeNewString(result, length, Heap::kStringMapRootIndex, scratch1, |
- scratch2); |
-} |
- |
- |
-void MacroAssembler::AllocateOneByteString(Register result, Register length, |
- Register scratch1, Register scratch2, |
- Register scratch3, |
- Label* gc_required) { |
- // Calculate the number of bytes needed for the characters in the string while |
- // observing object alignment. |
- DCHECK((SeqOneByteString::kHeaderSize & kObjectAlignmentMask) == 0); |
- DCHECK(kCharSize == 1); |
- addi(scratch1, length, |
- Operand(kObjectAlignmentMask + SeqOneByteString::kHeaderSize)); |
- li(r0, Operand(~kObjectAlignmentMask)); |
- and_(scratch1, scratch1, r0); |
- |
- // Allocate one-byte string in new space. |
- Allocate(scratch1, result, scratch2, scratch3, gc_required, |
- NO_ALLOCATION_FLAGS); |
- |
- // Set the map, length and hash field. |
- InitializeNewString(result, length, Heap::kOneByteStringMapRootIndex, |
- scratch1, scratch2); |
-} |
- |
- |
-void MacroAssembler::AllocateTwoByteConsString(Register result, Register length, |
- Register scratch1, |
- Register scratch2, |
- Label* gc_required) { |
- Allocate(ConsString::kSize, result, scratch1, scratch2, gc_required, |
- NO_ALLOCATION_FLAGS); |
- |
- InitializeNewString(result, length, Heap::kConsStringMapRootIndex, scratch1, |
- scratch2); |
-} |
- |
- |
-void MacroAssembler::AllocateOneByteConsString(Register result, Register length, |
- Register scratch1, |
- Register scratch2, |
- Label* gc_required) { |
- Allocate(ConsString::kSize, result, scratch1, scratch2, gc_required, |
- NO_ALLOCATION_FLAGS); |
- |
- InitializeNewString(result, length, Heap::kConsOneByteStringMapRootIndex, |
- scratch1, scratch2); |
-} |
- |
- |
-void MacroAssembler::AllocateTwoByteSlicedString(Register result, |
- Register length, |
- Register scratch1, |
- Register scratch2, |
- Label* gc_required) { |
- Allocate(SlicedString::kSize, result, scratch1, scratch2, gc_required, |
- NO_ALLOCATION_FLAGS); |
- |
- InitializeNewString(result, length, Heap::kSlicedStringMapRootIndex, scratch1, |
- scratch2); |
-} |
- |
- |
-void MacroAssembler::AllocateOneByteSlicedString(Register result, |
- Register length, |
- Register scratch1, |
- Register scratch2, |
- Label* gc_required) { |
- Allocate(SlicedString::kSize, result, scratch1, scratch2, gc_required, |
- NO_ALLOCATION_FLAGS); |
- |
- InitializeNewString(result, length, Heap::kSlicedOneByteStringMapRootIndex, |
- scratch1, scratch2); |
-} |
- |
- |
void MacroAssembler::CompareObjectType(Register object, Register map, |
Register type_reg, InstanceType type) { |
const Register temp = type_reg.is(no_reg) ? r0 : type_reg; |
@@ -3047,19 +2950,6 @@ void MacroAssembler::JumpIfBothInstanceTypesAreNotSequentialOneByte( |
bne(failure); |
} |
- |
-void MacroAssembler::JumpIfInstanceTypeIsNotSequentialOneByte(Register type, |
- Register scratch, |
- Label* failure) { |
- const int kFlatOneByteStringMask = |
- kIsNotStringMask | kStringEncodingMask | kStringRepresentationMask; |
- const int kFlatOneByteStringTag = |
- kStringTag | kOneByteStringTag | kSeqStringTag; |
- andi(scratch, type, Operand(kFlatOneByteStringMask)); |
- cmpi(scratch, Operand(kFlatOneByteStringTag)); |
- bne(failure); |
-} |
- |
static const int kRegisterPassedArguments = 8; |