-
Notifications
You must be signed in to change notification settings - Fork 314
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
Enable using context-specific typewrapper instances. #3194
Conversation
0ef2816
to
49f1368
Compare
b9369dc
to
9490a98
Compare
bced90f
to
abb88ce
Compare
Hey @jasnell @kentonv I did my best to ensure the case where we never needed a second typewrapper doesn't see any performance regressions. The types check GitHub check is failing just because I need to rebase, I'll do that after the review since there's no significant changes to the types in this PR. |
Approach seems reasonable, just some nitpick comments. |
3cf57d4
to
a597983
Compare
a597983
to
afa5410
Compare
Last push was just a rebase. |
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.
Just some minor style nitpicks.
c16e90f
to
9c25460
Compare
Added a fixup with pr fixups in |
Sometimes we'd like to have multiple contexts with different typewrapper that were instantiated with different configuration objects. To do that this commit extends the Isolate class, wrapper is now a vector of wrappers, the 0 indexed wrapper is the default wrapper but additional wrappers can be created with `instantiateWrapper` which receives a new Configuration object. To associate a context with its wrapper we use `context->SetAlignedPointerInEmbedderData(3, wrapper)`.
9c25460
to
32191ee
Compare
Last push merged fixups |
This PR has two commits:
Sometimes we'd like to have multiple contexts with different
typewrapper that were instantiated with different configuration objects.
To do that this commit extends the Isolate class, wrapper is now a
vector of wrappers, the 0 indexed wrapper is the default wrapper but
additional wrappers can be created with
instantiateWrapper
whichreceives a new Configuration object. To associate a context with its
wrapper we use
context->SetAlignedPointerInEmbedderData(3, wrapper)
.