-
Notifications
You must be signed in to change notification settings - Fork 492
First attempt at tags for V8 external fields. #5656
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
base: main
Are you sure you want to change the base?
Conversation
CodSpeed Performance ReportMerging #5656 will not alter performanceComparing Summary
Footnotes
|
adccd5d to
704634d
Compare
|
|
||
| // V8 14.3+ supports external pointer type tags for security. | ||
| #define V8_HAS_EXTERNAL_POINTER_TAGS \ | ||
| (V8_MAJOR_VERSION > 14 || (V8_MAJOR_VERSION == 14 && V8_MINOR_VERSION >= 3)) |
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.
Since main branch is on v8 14.3 I don't think we need this compile time flag
| kCapnpSchema = 1, | ||
| kCapnpInterfaceMethod = 2, |
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.
Would you mind expanding the comments and add a one liner for each id here.
| [[maybe_unused]] constexpr auto tag = | ||
| static_cast<uint16_t>(jsg::JsgExternalIds::kCapnpInterfaceMethod); |
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.
Can't we just move this to inside the compile time flag?
| @@ -1,5 +1,6 @@ | |||
| #pragma once | |||
|
|
|||
| #include "external-tags.h" | |||
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.
We don't need this here, we don't use it.
No description provided.