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 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
781 // it can be evidence of a potential bug because the ABI forbids accesses | 781 // it can be evidence of a potential bug because the ABI forbids accesses |
782 // below csp. | 782 // below csp. |
783 // | 783 // |
784 // If StackPointer() is the system stack pointer (csp), then csp will be | 784 // If StackPointer() is the system stack pointer (csp), then csp will be |
785 // dereferenced to cause the processor (or simulator) to abort if it is not | 785 // dereferenced to cause the processor (or simulator) to abort if it is not |
786 // properly aligned. | 786 // properly aligned. |
787 // | 787 // |
788 // If emit_debug_code() is false, this emits no code. | 788 // If emit_debug_code() is false, this emits no code. |
789 void AssertStackConsistency(); | 789 void AssertStackConsistency(); |
790 | 790 |
| 791 // Emits a runtime assert that the CSP is aligned. |
| 792 void AssertCspAligned(); |
| 793 |
791 // Preserve the callee-saved registers (as defined by AAPCS64). | 794 // Preserve the callee-saved registers (as defined by AAPCS64). |
792 // | 795 // |
793 // Higher-numbered registers are pushed before lower-numbered registers, and | 796 // Higher-numbered registers are pushed before lower-numbered registers, and |
794 // thus get higher addresses. | 797 // thus get higher addresses. |
795 // Floating-point registers are pushed before general-purpose registers, and | 798 // Floating-point registers are pushed before general-purpose registers, and |
796 // thus get higher addresses. | 799 // thus get higher addresses. |
797 // | 800 // |
798 // Note that registers are not checked for invalid values. Use this method | 801 // Note that registers are not checked for invalid values. Use this method |
799 // only if you know that the GC won't try to examine the values on the stack. | 802 // only if you know that the GC won't try to examine the values on the stack. |
800 // | 803 // |
(...skipping 1468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2269 #error "Unsupported option" | 2272 #error "Unsupported option" |
2270 #define CODE_COVERAGE_STRINGIFY(x) #x | 2273 #define CODE_COVERAGE_STRINGIFY(x) #x |
2271 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 2274 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
2272 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 2275 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
2273 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 2276 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
2274 #else | 2277 #else |
2275 #define ACCESS_MASM(masm) masm-> | 2278 #define ACCESS_MASM(masm) masm-> |
2276 #endif | 2279 #endif |
2277 | 2280 |
2278 #endif // V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ | 2281 #endif // V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ |
OLD | NEW |