OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_S390_MACRO_ASSEMBLER_S390_H_ | 5 #ifndef V8_S390_MACRO_ASSEMBLER_S390_H_ |
6 #define V8_S390_MACRO_ASSEMBLER_S390_H_ | 6 #define V8_S390_MACRO_ASSEMBLER_S390_H_ |
7 | 7 |
8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
9 #include "src/bailout-reason.h" | 9 #include "src/bailout-reason.h" |
10 #include "src/frames.h" | 10 #include "src/frames.h" |
(...skipping 947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
958 // label. The allocated object is returned in result. If the flag | 958 // label. The allocated object is returned in result. If the flag |
959 // tag_allocated_object is true the result is tagged as as a heap object. | 959 // tag_allocated_object is true the result is tagged as as a heap object. |
960 // All registers are clobbered also when control continues at the gc_required | 960 // All registers are clobbered also when control continues at the gc_required |
961 // label. | 961 // label. |
962 void Allocate(int object_size, Register result, Register scratch1, | 962 void Allocate(int object_size, Register result, Register scratch1, |
963 Register scratch2, Label* gc_required, AllocationFlags flags); | 963 Register scratch2, Label* gc_required, AllocationFlags flags); |
964 | 964 |
965 void Allocate(Register object_size, Register result, Register result_end, | 965 void Allocate(Register object_size, Register result, Register result_end, |
966 Register scratch, Label* gc_required, AllocationFlags flags); | 966 Register scratch, Label* gc_required, AllocationFlags flags); |
967 | 967 |
| 968 // FastAllocate is right now only used for folded allocations. It just |
| 969 // increments the top pointer without checking against limit. This can only |
| 970 // be done if it was proved earlier that the allocation will succeed. |
| 971 void FastAllocate(int object_size, Register result, Register scratch1, |
| 972 Register scratch2, AllocationFlags flags); |
| 973 |
| 974 void FastAllocate(Register object_size, Register result, Register result_end, |
| 975 Register scratch, AllocationFlags flags); |
| 976 |
968 void AllocateTwoByteString(Register result, Register length, | 977 void AllocateTwoByteString(Register result, Register length, |
969 Register scratch1, Register scratch2, | 978 Register scratch1, Register scratch2, |
970 Register scratch3, Label* gc_required); | 979 Register scratch3, Label* gc_required); |
971 void AllocateOneByteString(Register result, Register length, | 980 void AllocateOneByteString(Register result, Register length, |
972 Register scratch1, Register scratch2, | 981 Register scratch1, Register scratch2, |
973 Register scratch3, Label* gc_required); | 982 Register scratch3, Label* gc_required); |
974 void AllocateTwoByteConsString(Register result, Register length, | 983 void AllocateTwoByteConsString(Register result, Register length, |
975 Register scratch1, Register scratch2, | 984 Register scratch1, Register scratch2, |
976 Label* gc_required); | 985 Label* gc_required); |
977 void AllocateOneByteConsString(Register result, Register length, | 986 void AllocateOneByteConsString(Register result, Register length, |
(...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1888 #define ACCESS_MASM(masm) \ | 1897 #define ACCESS_MASM(masm) \ |
1889 masm->stop(__FILE_LINE__); \ | 1898 masm->stop(__FILE_LINE__); \ |
1890 masm-> | 1899 masm-> |
1891 #else | 1900 #else |
1892 #define ACCESS_MASM(masm) masm-> | 1901 #define ACCESS_MASM(masm) masm-> |
1893 #endif | 1902 #endif |
1894 } // namespace internal | 1903 } // namespace internal |
1895 } // namespace v8 | 1904 } // namespace v8 |
1896 | 1905 |
1897 #endif // V8_S390_MACRO_ASSEMBLER_S390_H_ | 1906 #endif // V8_S390_MACRO_ASSEMBLER_S390_H_ |
OLD | NEW |