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 952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
963 // Abort execution if argument is not a name, enabled via --debug-code. | 963 // Abort execution if argument is not a name, enabled via --debug-code. |
964 void AssertName(Register object); | 964 void AssertName(Register object); |
965 | 965 |
966 // Abort execution if argument is not a JSFunction, enabled via --debug-code. | 966 // Abort execution if argument is not a JSFunction, enabled via --debug-code. |
967 void AssertFunction(Register object); | 967 void AssertFunction(Register object); |
968 | 968 |
969 // Abort execution if argument is not a JSBoundFunction, | 969 // Abort execution if argument is not a JSBoundFunction, |
970 // enabled via --debug-code. | 970 // enabled via --debug-code. |
971 void AssertBoundFunction(Register object); | 971 void AssertBoundFunction(Register object); |
972 | 972 |
| 973 // Abort execution if argument is not a JSReceiver, enabled via --debug-code. |
| 974 void AssertReceiver(Register object); |
| 975 |
973 // Abort execution if argument is not undefined or an AllocationSite, enabled | 976 // Abort execution if argument is not undefined or an AllocationSite, enabled |
974 // via --debug-code. | 977 // via --debug-code. |
975 void AssertUndefinedOrAllocationSite(Register object, Register scratch); | 978 void AssertUndefinedOrAllocationSite(Register object, Register scratch); |
976 | 979 |
977 // Abort execution if argument is not a string, enabled via --debug-code. | 980 // Abort execution if argument is not a string, enabled via --debug-code. |
978 void AssertString(Register object); | 981 void AssertString(Register object); |
979 | 982 |
980 // Abort execution if argument is not a positive or zero integer, enabled via | 983 // Abort execution if argument is not a positive or zero integer, enabled via |
981 // --debug-code. | 984 // --debug-code. |
982 void AssertPositiveOrZero(Register value); | 985 void AssertPositiveOrZero(Register value); |
(...skipping 1272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2255 #error "Unsupported option" | 2258 #error "Unsupported option" |
2256 #define CODE_COVERAGE_STRINGIFY(x) #x | 2259 #define CODE_COVERAGE_STRINGIFY(x) #x |
2257 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 2260 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
2258 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 2261 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
2259 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 2262 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
2260 #else | 2263 #else |
2261 #define ACCESS_MASM(masm) masm-> | 2264 #define ACCESS_MASM(masm) masm-> |
2262 #endif | 2265 #endif |
2263 | 2266 |
2264 #endif // V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ | 2267 #endif // V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ |
OLD | NEW |