| Index: src/arm/macro-assembler-arm.cc
|
| diff --git a/src/arm/macro-assembler-arm.cc b/src/arm/macro-assembler-arm.cc
|
| index 3211dea083557337358dd4c1b94464f118646aba..4f65f9f3cb97d521f5512ce64e1794077f70e333 100644
|
| --- a/src/arm/macro-assembler-arm.cc
|
| +++ b/src/arm/macro-assembler-arm.cc
|
| @@ -2206,112 +2206,6 @@ void MacroAssembler::FastAllocate(int object_size, Register result,
|
| add(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);
|
| - mov(scratch1, Operand(length, LSL, 1)); // Length in bytes, not chars.
|
| - add(scratch1, scratch1,
|
| - Operand(kObjectAlignmentMask + SeqTwoByteString::kHeaderSize));
|
| - and_(scratch1, scratch1, Operand(~kObjectAlignmentMask));
|
| -
|
| - // 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);
|
| - add(scratch1, length,
|
| - Operand(kObjectAlignmentMask + SeqOneByteString::kHeaderSize));
|
| - and_(scratch1, scratch1, Operand(~kObjectAlignmentMask));
|
| -
|
| - // 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,
|
| @@ -3347,19 +3241,6 @@ void MacroAssembler::JumpIfBothInstanceTypesAreNotSequentialOneByte(
|
| b(ne, failure);
|
| }
|
|
|
| -
|
| -void MacroAssembler::JumpIfInstanceTypeIsNotSequentialOneByte(Register type,
|
| - Register scratch,
|
| - Label* failure) {
|
| - const int kFlatOneByteStringMask =
|
| - kIsNotStringMask | kStringEncodingMask | kStringRepresentationMask;
|
| - const int kFlatOneByteStringTag =
|
| - kStringTag | kOneByteStringTag | kSeqStringTag;
|
| - and_(scratch, type, Operand(kFlatOneByteStringMask));
|
| - cmp(scratch, Operand(kFlatOneByteStringTag));
|
| - b(ne, failure);
|
| -}
|
| -
|
| static const int kRegisterPassedArguments = 4;
|
|
|
|
|
|
|