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_X64_MACRO_ASSEMBLER_X64_H_ | 5 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_ |
6 #define V8_X64_MACRO_ASSEMBLER_X64_H_ | 6 #define V8_X64_MACRO_ASSEMBLER_X64_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/base/flags.h" | 10 #include "src/base/flags.h" |
(...skipping 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1300 Label* gc_required, | 1300 Label* gc_required, |
1301 AllocationFlags flags); | 1301 AllocationFlags flags); |
1302 | 1302 |
1303 void Allocate(Register object_size, | 1303 void Allocate(Register object_size, |
1304 Register result, | 1304 Register result, |
1305 Register result_end, | 1305 Register result_end, |
1306 Register scratch, | 1306 Register scratch, |
1307 Label* gc_required, | 1307 Label* gc_required, |
1308 AllocationFlags flags); | 1308 AllocationFlags flags); |
1309 | 1309 |
| 1310 void SetTop(Register value, AllocationFlags flags); |
| 1311 |
1310 // Allocate a heap number in new space with undefined value. Returns | 1312 // Allocate a heap number in new space with undefined value. Returns |
1311 // tagged pointer in result register, or jumps to gc_required if new | 1313 // tagged pointer in result register, or jumps to gc_required if new |
1312 // space is full. | 1314 // space is full. |
1313 void AllocateHeapNumber(Register result, | 1315 void AllocateHeapNumber(Register result, |
1314 Register scratch, | 1316 Register scratch, |
1315 Label* gc_required, | 1317 Label* gc_required, |
1316 MutableMode mode = IMMUTABLE); | 1318 MutableMode mode = IMMUTABLE); |
1317 | 1319 |
1318 // Allocate a sequential string. All the header fields of the string object | 1320 // Allocate a sequential string. All the header fields of the string object |
1319 // are initialized. | 1321 // are initialized. |
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1764 } \ | 1766 } \ |
1765 masm-> | 1767 masm-> |
1766 #else | 1768 #else |
1767 #define ACCESS_MASM(masm) masm-> | 1769 #define ACCESS_MASM(masm) masm-> |
1768 #endif | 1770 #endif |
1769 | 1771 |
1770 } // namespace internal | 1772 } // namespace internal |
1771 } // namespace v8 | 1773 } // namespace v8 |
1772 | 1774 |
1773 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1775 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |