-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
sea: add support for V8 bytecode-only caching #48191
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
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
18e0a49
sea: add support for V8 bytecode-only caching
RaisinTen 184e9e6
src: use `std::nullopt` instead of `{}`
RaisinTen 51cf8c1
src: pass parameters vector by a pointer
RaisinTen ae48e90
sea: pass code cache data as an external buffer to JS
RaisinTen 145335b
sea: fix entry point file name
RaisinTen f855bd5
src: use MaybeLocal<Function>() instead of {}
RaisinTen f549743
src: use DataView instead of Buffer for code cache
RaisinTen 81f896f
sea: warn if code cache is rejected
RaisinTen 4210887
fixup! sea: warn if code cache is rejected
RaisinTen e8aa501
src: add TODO for supporting `import()`
RaisinTen b5b2d78
src: return result of CompileFunction directly
RaisinTen 5cd337f
sea: make code caching optional
RaisinTen 27b9a6c
src: pass length to v8::String::NewFromUtf8() for std::string_views
RaisinTen c62e892
test: adjust line numbers in test/fixtures/errors/force_colors.snapshot
RaisinTen 1f8f86b
src: use kNoCompileOptions instead of kEagerCompile
RaisinTen 6589352
Apply suggestions from code review
RaisinTen 9fe2f4d
src: pass only the context to CompileFunction
RaisinTen 4020a9f
test: add a comment to explain how unexpected warnings are treated
RaisinTen 72ed49f
src: fix conflicts
RaisinTen 86d3407
doc: run -> compile
RaisinTen fc9509b
doc: add note about import() not working
RaisinTen 80dbcbf
sea: call getCodePath() only when isSea() is true
RaisinTen b1792b5
lib: do not load SEA binding for non-SEA code paths
RaisinTen 2a2d12e
src: remove unnecessary HandleScope
RaisinTen 80cd1ff
src: guard against calling sea.getCodePath() in userland
RaisinTen d44aa0d
src: remove unnecessary HandleScope
RaisinTen 91bf2df
test: fix test/parallel/test-node-output-errors.mjs error
RaisinTen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.