| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 943 void EnterExitFramePrologue(bool save_rax); | 943 void EnterExitFramePrologue(bool save_rax); |
| 944 | 944 |
| 945 // Allocates arg_stack_space * kPointerSize memory (not GCed) on the stack | 945 // Allocates arg_stack_space * kPointerSize memory (not GCed) on the stack |
| 946 // accessible via StackSpaceOperand. | 946 // accessible via StackSpaceOperand. |
| 947 void EnterExitFrameEpilogue(int arg_stack_space); | 947 void EnterExitFrameEpilogue(int arg_stack_space); |
| 948 | 948 |
| 949 void LeaveExitFrameEpilogue(); | 949 void LeaveExitFrameEpilogue(); |
| 950 | 950 |
| 951 // Allocation support helpers. | 951 // Allocation support helpers. |
| 952 // Loads the top of new-space into the result register. | 952 // Loads the top of new-space into the result register. |
| 953 // If flags contains RESULT_CONTAINS_TOP then result_end is valid and | |
| 954 // already contains the top of new-space, and scratch is invalid. | |
| 955 // Otherwise the address of the new-space top is loaded into scratch (if | 953 // Otherwise the address of the new-space top is loaded into scratch (if |
| 956 // scratch is valid), and the new-space top is loaded into result. | 954 // scratch is valid), and the new-space top is loaded into result. |
| 957 void LoadAllocationTopHelper(Register result, | 955 void LoadAllocationTopHelper(Register result, |
| 958 Register result_end, | |
| 959 Register scratch, | 956 Register scratch, |
| 960 AllocationFlags flags); | 957 AllocationFlags flags); |
| 961 // Update allocation top with value in result_end register. | 958 // Update allocation top with value in result_end register. |
| 962 // If scratch is valid, it contains the address of the allocation top. | 959 // If scratch is valid, it contains the address of the allocation top. |
| 963 void UpdateAllocationTopHelper(Register result_end, Register scratch); | 960 void UpdateAllocationTopHelper(Register result_end, Register scratch); |
| 964 | 961 |
| 965 // Helper for PopHandleScope. Allowed to perform a GC and returns | 962 // Helper for PopHandleScope. Allowed to perform a GC and returns |
| 966 // NULL if gc_allowed. Does not perform a GC if !gc_allowed, and | 963 // NULL if gc_allowed. Does not perform a GC if !gc_allowed, and |
| 967 // possibly returns a failure object indicating an allocation failure. | 964 // possibly returns a failure object indicating an allocation failure. |
| 968 Object* PopHandleScopeHelper(Register saved, | 965 Object* PopHandleScopeHelper(Register saved, |
| (...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1740 Jump(adaptor, RelocInfo::CODE_TARGET); | 1737 Jump(adaptor, RelocInfo::CODE_TARGET); |
| 1741 } | 1738 } |
| 1742 bind(&invoke); | 1739 bind(&invoke); |
| 1743 } | 1740 } |
| 1744 } | 1741 } |
| 1745 | 1742 |
| 1746 | 1743 |
| 1747 } } // namespace v8::internal | 1744 } } // namespace v8::internal |
| 1748 | 1745 |
| 1749 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1746 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
| OLD | NEW |