Skip to content
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

V8 Fast API Calls #38664

Closed
TimothyGu opened this issue May 13, 2021 · 1 comment
Closed

V8 Fast API Calls #38664

TimothyGu opened this issue May 13, 2021 · 1 comment
Labels
c++ Issues and PRs that require attention from people who are familiar with C++. v8 module Issues and PRs related to the "v8" subsystem.

Comments

@TimothyGu
Copy link
Member

V8 recently introduced support for fast JITed native function calls: BlinkOn talk / deps/v8/include/v8-fast-api-calls.h. There are some restrictions on what it can be used with, including

  • Must not trigger a GC event ⇒
    • No allocation on the managed heap
    • No calling back into Javascript
    • Guarded by CHECKs
  • No allocation means Blink cannot throw exceptions, log to the console, etc. These operations can be supported by recording the intent to execute them in a deferred manner.

but we may be able to find use cases for it?

@TimothyGu TimothyGu added c++ Issues and PRs that require attention from people who are familiar with C++. v8 module Issues and PRs related to the "v8" subsystem. labels May 13, 2021
@TimothyGu
Copy link
Member Author

I notice that this was already used in #33600, so not so new anymore ☺

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ Issues and PRs that require attention from people who are familiar with C++. v8 module Issues and PRs related to the "v8" subsystem.
Projects
None yet
Development

No branches or pull requests

1 participant