-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
sea: add support for V8 bytecode-only caching #48191
Commits on Jul 21, 2023
-
sea: add support for V8 bytecode-only caching
Refs: nodejs/single-executable#73 Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 18e0a49 - Browse repository at this point
Copy the full SHA 18e0a49View commit details -
src: use
std::nullopt
instead of{}
It expresses the intent in a clearer way. Refs: nodejs#48191 (comment) Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 184e9e6 - Browse repository at this point
Copy the full SHA 184e9e6View commit details -
src: pass parameters vector by a pointer
Refs: nodejs#48191 (comment) Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 51cf8c1 - Browse repository at this point
Copy the full SHA 51cf8c1View commit details -
sea: pass code cache data as an external buffer to JS
Otherwise, we were unnecessarily creating an additional copy. Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for ae48e90 - Browse repository at this point
Copy the full SHA ae48e90View commit details -
sea: fix entry point file name
Refs: nodejs#48191 (comment) Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 145335b - Browse repository at this point
Copy the full SHA 145335bView commit details -
src: use MaybeLocal<Function>() instead of {}
It's clearer. Refs: https://github.com/nodejs/node/pull/48191/files#r1209513784 Co-authored-by: James M Snell <jasnell@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for f855bd5 - Browse repository at this point
Copy the full SHA f855bd5View commit details -
src: use DataView instead of Buffer for code cache
Refs: nodejs#48191 (comment) Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for f549743 - Browse repository at this point
Copy the full SHA f549743View commit details -
sea: warn if code cache is rejected
Refs: nodejs#48191 (comment) Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 81f896f - Browse repository at this point
Copy the full SHA 81f896fView commit details -
fixup! sea: warn if code cache is rejected
Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 4210887 - Browse repository at this point
Copy the full SHA 4210887View commit details -
src: add TODO for supporting
import()
Refs: nodejs#48191 (comment) Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for e8aa501 - Browse repository at this point
Copy the full SHA e8aa501View commit details -
src: return result of CompileFunction directly
Refs: nodejs#48191 (comment) Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for b5b2d78 - Browse repository at this point
Copy the full SHA b5b2d78View commit details -
sea: make code caching optional
Refs: nodejs#48191 (comment) Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 5cd337f - Browse repository at this point
Copy the full SHA 5cd337fView commit details -
src: pass length to v8::String::NewFromUtf8() for std::string_views
Otherwise, V8 won't be able to detect the length for non-null-terminated strings. Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 27b9a6c - Browse repository at this point
Copy the full SHA 27b9a6cView commit details -
test: adjust line numbers in test/fixtures/errors/force_colors.snapshot
So that `./node test/parallel/test-node-output-errors.mjs` passes. Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for c62e892 - Browse repository at this point
Copy the full SHA c62e892View commit details -
src: use kNoCompileOptions instead of kEagerCompile
Refs: nodejs#48671 Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 1f8f86b - Browse repository at this point
Copy the full SHA 1f8f86bView commit details -
Apply suggestions from code review
Co-authored-by: Joyee Cheung <joyeec9h3@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 6589352 - Browse repository at this point
Copy the full SHA 6589352View commit details -
src: pass only the context to CompileFunction
Refs: nodejs#48191 (comment) Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 9fe2f4d - Browse repository at this point
Copy the full SHA 9fe2f4dView commit details -
test: add a comment to explain how unexpected warnings are treated
Refs: https://github.com/nodejs/node/pull/48191/files#r1265469445 Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 4020a9f - Browse repository at this point
Copy the full SHA 4020a9fView commit details -
Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 72ed49f - Browse repository at this point
Copy the full SHA 72ed49fView commit details -
Refs: nodejs#48191 (comment) Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 86d3407 - Browse repository at this point
Copy the full SHA 86d3407View commit details -
doc: add note about import() not working
Refs: nodejs#48191 (comment) Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for fc9509b - Browse repository at this point
Copy the full SHA fc9509bView commit details -
sea: call getCodePath() only when isSea() is true
Refs: nodejs#48191 (comment) Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 80dbcbf - Browse repository at this point
Copy the full SHA 80dbcbfView commit details -
lib: do not load SEA binding for non-SEA code paths
Refs: https://github.com/nodejs/node/pull/48191/files/300f3f4a03d7f418fb565a479f19b67c22d80a07#r1269624930 Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for b1792b5 - Browse repository at this point
Copy the full SHA b1792b5View commit details -
src: remove unnecessary HandleScope
Refs: https://github.com/nodejs/node/pull/48191/files/300f3f4a03d7f418fb565a479f19b67c22d80a07#r1269600955 Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 2a2d12e - Browse repository at this point
Copy the full SHA 2a2d12eView commit details -
src: guard against calling sea.getCodePath() in userland
Refs: https://github.com/nodejs/node/pull/48191/files/300f3f4a03d7f418fb565a479f19b67c22d80a07#r1269593383 Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 80cd1ff - Browse repository at this point
Copy the full SHA 80cd1ffView commit details -
src: remove unnecessary HandleScope
Refs: https://github.com/nodejs/node/pull/48191/files/300f3f4a03d7f418fb565a479f19b67c22d80a07#r1269601154 Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for d44aa0d - Browse repository at this point
Copy the full SHA d44aa0dView commit details -
test: fix test/parallel/test-node-output-errors.mjs error
Signed-off-by: Darshan Sen <raisinten@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 91bf2df - Browse repository at this point
Copy the full SHA 91bf2dfView commit details