Index: src/ia32/macro-assembler-ia32.cc |
diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc |
index 1678b18c63dae2509113dc0e4995fbace32a8e23..008f7b93b8f4960d42351f204af5792d2ee34f7e 100644 |
--- a/src/ia32/macro-assembler-ia32.cc |
+++ b/src/ia32/macro-assembler-ia32.cc |
@@ -1593,139 +1593,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) { |
@@ -2676,19 +2543,6 @@ void MacroAssembler::LoadPowerOf2(XMMRegister dst, |
psllq(dst, HeapNumber::kMantissaBits); |
} |
- |
-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, |