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 "assembler.h" | 8 #include "assembler.h" |
9 #include "frames.h" | 9 #include "frames.h" |
10 #include "v8globals.h" | 10 #include "v8globals.h" |
(...skipping 1464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1475 void LeaveExitFrameEpilogue(bool restore_context); | 1475 void LeaveExitFrameEpilogue(bool restore_context); |
1476 | 1476 |
1477 // Allocation support helpers. | 1477 // Allocation support helpers. |
1478 // Loads the top of new-space into the result register. | 1478 // Loads the top of new-space into the result register. |
1479 // Otherwise the address of the new-space top is loaded into scratch (if | 1479 // Otherwise the address of the new-space top is loaded into scratch (if |
1480 // scratch is valid), and the new-space top is loaded into result. | 1480 // scratch is valid), and the new-space top is loaded into result. |
1481 void LoadAllocationTopHelper(Register result, | 1481 void LoadAllocationTopHelper(Register result, |
1482 Register scratch, | 1482 Register scratch, |
1483 AllocationFlags flags); | 1483 AllocationFlags flags); |
1484 | 1484 |
| 1485 void MakeSureDoubleAlignedHelper(Register result, |
| 1486 Register scratch, |
| 1487 Label* gc_required, |
| 1488 AllocationFlags flags); |
| 1489 |
1485 // Update allocation top with value in result_end register. | 1490 // Update allocation top with value in result_end register. |
1486 // If scratch is valid, it contains the address of the allocation top. | 1491 // If scratch is valid, it contains the address of the allocation top. |
1487 void UpdateAllocationTopHelper(Register result_end, | 1492 void UpdateAllocationTopHelper(Register result_end, |
1488 Register scratch, | 1493 Register scratch, |
1489 AllocationFlags flags); | 1494 AllocationFlags flags); |
1490 | 1495 |
1491 // Helper for implementing JumpIfNotInNewSpace and JumpIfInNewSpace. | 1496 // Helper for implementing JumpIfNotInNewSpace and JumpIfInNewSpace. |
1492 void InNewSpace(Register object, | 1497 void InNewSpace(Register object, |
1493 Register scratch, | 1498 Register scratch, |
1494 Condition cc, | 1499 Condition cc, |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1599 masm->popfq(); \ | 1604 masm->popfq(); \ |
1600 } \ | 1605 } \ |
1601 masm-> | 1606 masm-> |
1602 #else | 1607 #else |
1603 #define ACCESS_MASM(masm) masm-> | 1608 #define ACCESS_MASM(masm) masm-> |
1604 #endif | 1609 #endif |
1605 | 1610 |
1606 } } // namespace v8::internal | 1611 } } // namespace v8::internal |
1607 | 1612 |
1608 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1613 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |