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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 // Allocates arg_stack_space * kPointerSize memory (not GCed) on the stack | 335 // Allocates arg_stack_space * kPointerSize memory (not GCed) on the stack |
336 // accessible via StackSpaceOperand. | 336 // accessible via StackSpaceOperand. |
337 void EnterExitFrame(int arg_stack_space = 0, bool save_doubles = false); | 337 void EnterExitFrame(int arg_stack_space = 0, bool save_doubles = false); |
338 | 338 |
339 // Enter specific kind of exit frame. Allocates arg_stack_space * kPointerSize | 339 // Enter specific kind of exit frame. Allocates arg_stack_space * kPointerSize |
340 // memory (not GCed) on the stack accessible via StackSpaceOperand. | 340 // memory (not GCed) on the stack accessible via StackSpaceOperand. |
341 void EnterApiExitFrame(int arg_stack_space); | 341 void EnterApiExitFrame(int arg_stack_space); |
342 | 342 |
343 // Leave the current exit frame. Expects/provides the return value in | 343 // Leave the current exit frame. Expects/provides the return value in |
344 // register rax:rdx (untouched) and the pointer to the first | 344 // register rax:rdx (untouched) and the pointer to the first |
345 // argument in register rsi. | 345 // argument in register rsi (if pop_arguments == true). |
346 void LeaveExitFrame(bool save_doubles = false); | 346 void LeaveExitFrame(bool save_doubles = false, bool pop_arguments = true); |
347 | 347 |
348 // Leave the current exit frame. Expects/provides the return value in | 348 // Leave the current exit frame. Expects/provides the return value in |
349 // register rax (untouched). | 349 // register rax (untouched). |
350 void LeaveApiExitFrame(bool restore_context); | 350 void LeaveApiExitFrame(bool restore_context); |
351 | 351 |
352 // Push and pop the registers that can hold pointers. | 352 // Push and pop the registers that can hold pointers. |
353 void PushSafepointRegisters() { Pushad(); } | 353 void PushSafepointRegisters() { Pushad(); } |
354 void PopSafepointRegisters() { Popad(); } | 354 void PopSafepointRegisters() { Popad(); } |
355 // Store the value in register src in the safepoint register stack | 355 // Store the value in register src in the safepoint register stack |
356 // slot for register dst. | 356 // slot for register dst. |
(...skipping 1280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1637 } \ | 1637 } \ |
1638 masm-> | 1638 masm-> |
1639 #else | 1639 #else |
1640 #define ACCESS_MASM(masm) masm-> | 1640 #define ACCESS_MASM(masm) masm-> |
1641 #endif | 1641 #endif |
1642 | 1642 |
1643 } // namespace internal | 1643 } // namespace internal |
1644 } // namespace v8 | 1644 } // namespace v8 |
1645 | 1645 |
1646 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1646 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |