| Index: src/x87/macro-assembler-x87.cc
|
| diff --git a/src/x87/macro-assembler-x87.cc b/src/x87/macro-assembler-x87.cc
|
| index 549bd8639535dc637dc14d03ae86d175e73f2957..005fa053ac0456b10b6309596f980ed7cb43535c 100644
|
| --- a/src/x87/macro-assembler-x87.cc
|
| +++ b/src/x87/macro-assembler-x87.cc
|
| @@ -1536,139 +1536,6 @@ void MacroAssembler::AllocateHeapNumber(Register result,
|
| mov(FieldOperand(result, HeapObject::kMapOffset), Immediate(map));
|
| }
|
|
|
| -
|
| -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);
|
| - DCHECK(kShortSize == 2);
|
| - // scratch1 = length * 2 + kObjectAlignmentMask.
|
| - lea(scratch1, Operand(length, length, times_1, kObjectAlignmentMask));
|
| - and_(scratch1, Immediate(~kObjectAlignmentMask));
|
| -
|
| - // Allocate two byte string in new space.
|
| - Allocate(SeqTwoByteString::kHeaderSize, times_1, scratch1,
|
| - REGISTER_VALUE_IS_INT32, result, scratch2, scratch3, gc_required,
|
| - NO_ALLOCATION_FLAGS);
|
| -
|
| - // Set the map, length and hash field.
|
| - mov(FieldOperand(result, HeapObject::kMapOffset),
|
| - Immediate(isolate()->factory()->string_map()));
|
| - mov(scratch1, length);
|
| - SmiTag(scratch1);
|
| - mov(FieldOperand(result, String::kLengthOffset), scratch1);
|
| - mov(FieldOperand(result, String::kHashFieldOffset),
|
| - Immediate(String::kEmptyHashField));
|
| -}
|
| -
|
| -
|
| -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);
|
| - mov(scratch1, length);
|
| - DCHECK(kCharSize == 1);
|
| - add(scratch1, Immediate(kObjectAlignmentMask));
|
| - and_(scratch1, Immediate(~kObjectAlignmentMask));
|
| -
|
| - // Allocate one-byte string in new space.
|
| - Allocate(SeqOneByteString::kHeaderSize, times_1, scratch1,
|
| - REGISTER_VALUE_IS_INT32, result, scratch2, scratch3, gc_required,
|
| - NO_ALLOCATION_FLAGS);
|
| -
|
| - // Set the map, length and hash field.
|
| - mov(FieldOperand(result, HeapObject::kMapOffset),
|
| - Immediate(isolate()->factory()->one_byte_string_map()));
|
| - mov(scratch1, length);
|
| - SmiTag(scratch1);
|
| - mov(FieldOperand(result, String::kLengthOffset), scratch1);
|
| - mov(FieldOperand(result, String::kHashFieldOffset),
|
| - Immediate(String::kEmptyHashField));
|
| -}
|
| -
|
| -
|
| -void MacroAssembler::AllocateOneByteString(Register result, int length,
|
| - Register scratch1, Register scratch2,
|
| - Label* gc_required) {
|
| - DCHECK(length > 0);
|
| -
|
| - // Allocate one-byte string in new space.
|
| - Allocate(SeqOneByteString::SizeFor(length), result, scratch1, scratch2,
|
| - gc_required, NO_ALLOCATION_FLAGS);
|
| -
|
| - // Set the map, length and hash field.
|
| - mov(FieldOperand(result, HeapObject::kMapOffset),
|
| - Immediate(isolate()->factory()->one_byte_string_map()));
|
| - mov(FieldOperand(result, String::kLengthOffset),
|
| - Immediate(Smi::FromInt(length)));
|
| - mov(FieldOperand(result, String::kHashFieldOffset),
|
| - Immediate(String::kEmptyHashField));
|
| -}
|
| -
|
| -
|
| -void MacroAssembler::AllocateTwoByteConsString(Register result,
|
| - Register scratch1,
|
| - Register scratch2,
|
| - Label* gc_required) {
|
| - // Allocate heap number in new space.
|
| - Allocate(ConsString::kSize, result, scratch1, scratch2, gc_required,
|
| - NO_ALLOCATION_FLAGS);
|
| -
|
| - // Set the map. The other fields are left uninitialized.
|
| - mov(FieldOperand(result, HeapObject::kMapOffset),
|
| - Immediate(isolate()->factory()->cons_string_map()));
|
| -}
|
| -
|
| -
|
| -void MacroAssembler::AllocateOneByteConsString(Register result,
|
| - Register scratch1,
|
| - Register scratch2,
|
| - Label* gc_required) {
|
| - Allocate(ConsString::kSize, result, scratch1, scratch2, gc_required,
|
| - NO_ALLOCATION_FLAGS);
|
| -
|
| - // Set the map. The other fields are left uninitialized.
|
| - mov(FieldOperand(result, HeapObject::kMapOffset),
|
| - Immediate(isolate()->factory()->cons_one_byte_string_map()));
|
| -}
|
| -
|
| -
|
| -void MacroAssembler::AllocateTwoByteSlicedString(Register result,
|
| - Register scratch1,
|
| - Register scratch2,
|
| - Label* gc_required) {
|
| - // Allocate heap number in new space.
|
| - Allocate(SlicedString::kSize, result, scratch1, scratch2, gc_required,
|
| - NO_ALLOCATION_FLAGS);
|
| -
|
| - // Set the map. The other fields are left uninitialized.
|
| - mov(FieldOperand(result, HeapObject::kMapOffset),
|
| - Immediate(isolate()->factory()->sliced_string_map()));
|
| -}
|
| -
|
| -
|
| -void MacroAssembler::AllocateOneByteSlicedString(Register result,
|
| - Register scratch1,
|
| - Register scratch2,
|
| - Label* gc_required) {
|
| - // Allocate heap number in new space.
|
| - Allocate(SlicedString::kSize, result, scratch1, scratch2, gc_required,
|
| - NO_ALLOCATION_FLAGS);
|
| -
|
| - // Set the map. The other fields are left uninitialized.
|
| - mov(FieldOperand(result, HeapObject::kMapOffset),
|
| - Immediate(isolate()->factory()->sliced_one_byte_string_map()));
|
| -}
|
| -
|
| -
|
| void MacroAssembler::AllocateJSValue(Register result, Register constructor,
|
| Register value, Register scratch,
|
| Label* gc_required) {
|
| @@ -2525,19 +2392,6 @@ void MacroAssembler::LoadAccessor(Register dst, Register holder,
|
| mov(dst, FieldOperand(dst, offset));
|
| }
|
|
|
| -
|
| -void MacroAssembler::JumpIfInstanceTypeIsNotSequentialOneByte(
|
| - Register instance_type, Register scratch, Label* failure) {
|
| - if (!scratch.is(instance_type)) {
|
| - mov(scratch, instance_type);
|
| - }
|
| - and_(scratch,
|
| - kIsNotStringMask | kStringRepresentationMask | kStringEncodingMask);
|
| - cmp(scratch, kStringTag | kSeqStringTag | kOneByteStringTag);
|
| - j(not_equal, failure);
|
| -}
|
| -
|
| -
|
| void MacroAssembler::JumpIfNotBothSequentialOneByteStrings(Register object1,
|
| Register object2,
|
| Register scratch1,
|
|
|