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 1144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1155 Label* gc_required, | 1155 Label* gc_required, |
1156 AllocationFlags flags); | 1156 AllocationFlags flags); |
1157 | 1157 |
1158 void Allocate(Register object_size, | 1158 void Allocate(Register object_size, |
1159 Register result, | 1159 Register result, |
1160 Register result_end, | 1160 Register result_end, |
1161 Register scratch, | 1161 Register scratch, |
1162 Label* gc_required, | 1162 Label* gc_required, |
1163 AllocationFlags flags); | 1163 AllocationFlags flags); |
1164 | 1164 |
1165 // Undo allocation in new space. The object passed and objects allocated after | |
1166 // it will no longer be allocated. Make sure that no pointers are left to the | |
1167 // object(s) no longer allocated as they would be invalid when allocation is | |
1168 // un-done. | |
1169 void UndoAllocationInNewSpace(Register object); | |
1170 | |
1171 // Allocate a heap number in new space with undefined value. Returns | 1165 // Allocate a heap number in new space with undefined value. Returns |
1172 // tagged pointer in result register, or jumps to gc_required if new | 1166 // tagged pointer in result register, or jumps to gc_required if new |
1173 // space is full. | 1167 // space is full. |
1174 void AllocateHeapNumber(Register result, | 1168 void AllocateHeapNumber(Register result, |
1175 Register scratch, | 1169 Register scratch, |
1176 Label* gc_required, | 1170 Label* gc_required, |
1177 MutableMode mode = IMMUTABLE); | 1171 MutableMode mode = IMMUTABLE); |
1178 | 1172 |
1179 // Allocate a sequential string. All the header fields of the string object | 1173 // Allocate a sequential string. All the header fields of the string object |
1180 // are initialized. | 1174 // are initialized. |
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1611 masm->popfq(); \ | 1605 masm->popfq(); \ |
1612 } \ | 1606 } \ |
1613 masm-> | 1607 masm-> |
1614 #else | 1608 #else |
1615 #define ACCESS_MASM(masm) masm-> | 1609 #define ACCESS_MASM(masm) masm-> |
1616 #endif | 1610 #endif |
1617 | 1611 |
1618 } } // namespace v8::internal | 1612 } } // namespace v8::internal |
1619 | 1613 |
1620 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1614 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |