New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add variadic PAS_ASSERT support. #1537
Add variadic PAS_ASSERT support. #1537
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me with a style comment
@@ -93,6 +93,11 @@ PAS_BEGIN_EXTERN_C; | |||
|
|||
#define PAS_RISCV __PAS_RISCV | |||
|
|||
#define PAS_PP_THIRD_ARG(a,b,c,...) c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think webKit style would put a space after each ,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Fixed.
/* FIXME: Consider whether it makes sense to capture the filename, function, and expression | ||
in crash data or not. Need to measure if there's a performance impact. | ||
FIXME: Also consider converting PAS_ASSERT_WITH_DETAIL and PAS_ASSERT_WITH_EXTRA_DETAIL | ||
to just use the variadic PAS_ASSERT. We currently leave these and the PAS_ASSERT with | ||
no extra args unchanged to make sure we don't perturb performance (until we can measure | ||
and confirm that using the variadic form won't impact performance). | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For what it's worth when we did this in JSC for our RELEASE_ASSERTS we didn't see a perf impact. Probably due to the crashing side being considered UNLIKELY so the compiler puts that info off in oblivion. The only thing is that some crashes may not be merged but we never saw a perf impact if that happened.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah. It's just that we've been told that libpas appears to be extra sensitive to this for reasons unclear to us. So, we should proceed with caution and let perf measurements do the talking.
29fd9b8
to
042ca3c
Compare
042ca3c
to
b9a2b29
Compare
Committed r295562 (251567@main): https://commits.webkit.org/251567@main Reviewed commits have been landed. Closing PR #1537 and removing active labels. |
b9a2b29