src: add new underlying async context tracking
Implements the core underlying bits of a refactored AsyncLocalStorage implementation based on the same mechanism that will be used for the standard AsyncContext API. The implementation is based on the new continuation preserved embedder data API in v8 and is designed to be significantly faster and more efficient that the current promise-hook based implementation.
This intentionally only adds the basic pieces, with the intent of spreading the refactored implementation across multiple PRs just to make things easier to review.
This is still a work in progress.
/cc @bmeck
Review requested:
- [ ] @nodejs/gyp
Is this somewhat related to https://github.com/nodejs/node/pull/48528?