| Index: src/checks.h
|
| diff --git a/src/checks.h b/src/checks.h
|
| index f7b145fc8a8ceb052a573c05b590d3057ac8ddaa..57f18526186c5adbc19d011c771fa1c66e72215d 100644
|
| --- a/src/checks.h
|
| +++ b/src/checks.h
|
| @@ -34,6 +34,7 @@
|
|
|
| extern "C" void V8_Fatal(const char* file, int line, const char* format, ...);
|
|
|
| +
|
| // The FATAL, UNREACHABLE and UNIMPLEMENTED macros are useful during
|
| // development, but they should not be relied on in the final product.
|
| #ifdef DEBUG
|
| @@ -51,6 +52,23 @@ extern "C" void V8_Fatal(const char* file, int line, const char* format, ...);
|
| #define UNREACHABLE() ((void) 0)
|
| #endif
|
|
|
| +// Simulator specific helpers.
|
| +#if defined(USE_SIMULATOR) && defined(V8_TARGET_ARCH_A64)
|
| + // TODO(all): If possible automatically prepend an indicator like
|
| + // UNIMPLEMENTED or LOCATION.
|
| + #define ASM_UNIMPLEMENTED(message) \
|
| + __ Debug(message, __LINE__, NO_PARAM)
|
| + #define ASM_UNIMPLEMENTED_BREAK(message) \
|
| + __ Debug(message, __LINE__, \
|
| + FLAG_ignore_asm_unimplemented_break ? NO_PARAM : BREAK)
|
| + #define ASM_LOCATION(message) \
|
| + __ Debug("LOCATION: " message, __LINE__, NO_PARAM)
|
| +#else
|
| + #define ASM_UNIMPLEMENTED(message)
|
| + #define ASM_UNIMPLEMENTED_BREAK(message)
|
| + #define ASM_LOCATION(message)
|
| +#endif
|
| +
|
|
|
| // The CHECK macro checks that the given condition is true; if not, it
|
| // prints a message to stderr and aborts.
|
|
|