OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64_MACRO_ASSEMBLER_ARM64_H_ | 5 #ifndef V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ |
6 #define V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ | 6 #define V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "src/arm64/assembler-arm64.h" | 10 #include "src/arm64/assembler-arm64.h" |
(...skipping 1613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1624 Bind(&no_memento_found); | 1624 Bind(&no_memento_found); |
1625 } | 1625 } |
1626 | 1626 |
1627 // The stack pointer has to switch between csp and jssp when setting up and | 1627 // The stack pointer has to switch between csp and jssp when setting up and |
1628 // destroying the exit frame. Hence preserving/restoring the registers is | 1628 // destroying the exit frame. Hence preserving/restoring the registers is |
1629 // slightly more complicated than simple push/pop operations. | 1629 // slightly more complicated than simple push/pop operations. |
1630 void ExitFramePreserveFPRegs(); | 1630 void ExitFramePreserveFPRegs(); |
1631 void ExitFrameRestoreFPRegs(); | 1631 void ExitFrameRestoreFPRegs(); |
1632 | 1632 |
1633 // Generates function and stub prologue code. | 1633 // Generates function and stub prologue code. |
1634 void StubPrologue(); | 1634 void StubPrologue(StackFrame::Type type, int frame_slots); |
1635 void Prologue(bool code_pre_aging); | 1635 void Prologue(bool code_pre_aging); |
1636 | 1636 |
1637 // Enter exit frame. Exit frames are used when calling C code from generated | 1637 // Enter exit frame. Exit frames are used when calling C code from generated |
1638 // (JavaScript) code. | 1638 // (JavaScript) code. |
1639 // | 1639 // |
1640 // The stack pointer must be jssp on entry, and will be set to csp by this | 1640 // The stack pointer must be jssp on entry, and will be set to csp by this |
1641 // function. The frame pointer is also configured, but the only other | 1641 // function. The frame pointer is also configured, but the only other |
1642 // registers modified by this function are the provided scratch register, and | 1642 // registers modified by this function are the provided scratch register, and |
1643 // jssp. | 1643 // jssp. |
1644 // | 1644 // |
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2268 #error "Unsupported option" | 2268 #error "Unsupported option" |
2269 #define CODE_COVERAGE_STRINGIFY(x) #x | 2269 #define CODE_COVERAGE_STRINGIFY(x) #x |
2270 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 2270 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
2271 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 2271 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
2272 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 2272 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
2273 #else | 2273 #else |
2274 #define ACCESS_MASM(masm) masm-> | 2274 #define ACCESS_MASM(masm) masm-> |
2275 #endif | 2275 #endif |
2276 | 2276 |
2277 #endif // V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ | 2277 #endif // V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ |
OLD | NEW |