| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 5 #ifndef V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
| 6 #define V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 6 #define V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
| 7 | 7 |
| 8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
| 9 #include "src/globals.h" | 9 #include "src/globals.h" |
| 10 #include "src/mips64/assembler-mips64.h" | 10 #include "src/mips64/assembler-mips64.h" |
| (...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 581 | 581 |
| 582 // FastAllocate is right now only used for folded allocations. It just | 582 // FastAllocate is right now only used for folded allocations. It just |
| 583 // increments the top pointer without checking against limit. This can only | 583 // increments the top pointer without checking against limit. This can only |
| 584 // be done if it was proved earlier that the allocation will succeed. | 584 // be done if it was proved earlier that the allocation will succeed. |
| 585 void FastAllocate(int object_size, Register result, Register scratch1, | 585 void FastAllocate(int object_size, Register result, Register scratch1, |
| 586 Register scratch2, AllocationFlags flags); | 586 Register scratch2, AllocationFlags flags); |
| 587 | 587 |
| 588 void FastAllocate(Register object_size, Register result, Register result_new, | 588 void FastAllocate(Register object_size, Register result, Register result_new, |
| 589 Register scratch, AllocationFlags flags); | 589 Register scratch, AllocationFlags flags); |
| 590 | 590 |
| 591 void AllocateTwoByteString(Register result, | |
| 592 Register length, | |
| 593 Register scratch1, | |
| 594 Register scratch2, | |
| 595 Register scratch3, | |
| 596 Label* gc_required); | |
| 597 void AllocateOneByteString(Register result, Register length, | |
| 598 Register scratch1, Register scratch2, | |
| 599 Register scratch3, Label* gc_required); | |
| 600 void AllocateTwoByteConsString(Register result, | |
| 601 Register length, | |
| 602 Register scratch1, | |
| 603 Register scratch2, | |
| 604 Label* gc_required); | |
| 605 void AllocateOneByteConsString(Register result, Register length, | |
| 606 Register scratch1, Register scratch2, | |
| 607 Label* gc_required); | |
| 608 void AllocateTwoByteSlicedString(Register result, | |
| 609 Register length, | |
| 610 Register scratch1, | |
| 611 Register scratch2, | |
| 612 Label* gc_required); | |
| 613 void AllocateOneByteSlicedString(Register result, Register length, | |
| 614 Register scratch1, Register scratch2, | |
| 615 Label* gc_required); | |
| 616 | |
| 617 // Allocates a heap number or jumps to the gc_required label if the young | 591 // Allocates a heap number or jumps to the gc_required label if the young |
| 618 // space is full and a scavenge is needed. All registers are clobbered also | 592 // space is full and a scavenge is needed. All registers are clobbered also |
| 619 // when control continues at the gc_required label. | 593 // when control continues at the gc_required label. |
| 620 void AllocateHeapNumber(Register result, | 594 void AllocateHeapNumber(Register result, |
| 621 Register scratch1, | 595 Register scratch1, |
| 622 Register scratch2, | 596 Register scratch2, |
| 623 Register heap_number_map, | 597 Register heap_number_map, |
| 624 Label* gc_required, | 598 Label* gc_required, |
| 625 MutableMode mode = IMMUTABLE); | 599 MutableMode mode = IMMUTABLE); |
| 626 | 600 |
| (...skipping 1126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1753 | 1727 |
| 1754 // ------------------------------------------------------------------------- | 1728 // ------------------------------------------------------------------------- |
| 1755 // String utilities. | 1729 // String utilities. |
| 1756 | 1730 |
| 1757 // Checks if both instance types are sequential one-byte strings and jumps to | 1731 // Checks if both instance types are sequential one-byte strings and jumps to |
| 1758 // label if either is not. | 1732 // label if either is not. |
| 1759 void JumpIfBothInstanceTypesAreNotSequentialOneByte( | 1733 void JumpIfBothInstanceTypesAreNotSequentialOneByte( |
| 1760 Register first_object_instance_type, Register second_object_instance_type, | 1734 Register first_object_instance_type, Register second_object_instance_type, |
| 1761 Register scratch1, Register scratch2, Label* failure); | 1735 Register scratch1, Register scratch2, Label* failure); |
| 1762 | 1736 |
| 1763 // Check if instance type is sequential one-byte string and jump to label if | |
| 1764 // it is not. | |
| 1765 void JumpIfInstanceTypeIsNotSequentialOneByte(Register type, Register scratch, | |
| 1766 Label* failure); | |
| 1767 | |
| 1768 void JumpIfNotUniqueNameInstanceType(Register reg, Label* not_unique_name); | 1737 void JumpIfNotUniqueNameInstanceType(Register reg, Label* not_unique_name); |
| 1769 | 1738 |
| 1770 void EmitSeqStringSetCharCheck(Register string, | 1739 void EmitSeqStringSetCharCheck(Register string, |
| 1771 Register index, | 1740 Register index, |
| 1772 Register value, | 1741 Register value, |
| 1773 Register scratch, | 1742 Register scratch, |
| 1774 uint32_t encoding_mask); | 1743 uint32_t encoding_mask); |
| 1775 | 1744 |
| 1776 // Checks if both objects are sequential one-byte strings and jumps to label | 1745 // Checks if both objects are sequential one-byte strings and jumps to label |
| 1777 // if either is not. Assumes that neither object is a smi. | 1746 // if either is not. Assumes that neither object is a smi. |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2009 dd(GetLabelFunction(index)); | 1978 dd(GetLabelFunction(index)); |
| 2010 } | 1979 } |
| 2011 } | 1980 } |
| 2012 | 1981 |
| 2013 #define ACCESS_MASM(masm) masm-> | 1982 #define ACCESS_MASM(masm) masm-> |
| 2014 | 1983 |
| 2015 } // namespace internal | 1984 } // namespace internal |
| 2016 } // namespace v8 | 1985 } // namespace v8 |
| 2017 | 1986 |
| 2018 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1987 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
| OLD | NEW |