Uh oh!
There was an error while loading. Please reload this page.
tools: refactor snapshot builder - #38902
Conversation
nodejs-github-bot
commented
Jun 2, 2021
There was a problem hiding this comment.
Suggestion: indexes → indices (while both are correct, the latter is preferred for technical use).
Hopefully I've updated all references to isolate_data_indexes and NodeMainInstance::GetIsolateDataIndices 🤞🏻
Edit: I just realized that you didn't add this code, you moved it from a different file. Scrap these suggestions if they'll cause any more complications than meets the untrained eye viewing this PR ;)
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
nodejs-github-bot
commented
Jun 2, 2021
bl-ue
left a comment
There was a problem hiding this comment.
One thing: for stringstreams that you only need write to, it's better to use ostringstream.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
RaisinTen
commented
Jun 2, 2021
These need to be updated to src/node.cc:1113: indexes = NodeMainInstance::GetIsolateDataIndexes();src/node_main_instance.h:70: static const std::vector<size_t>* GetIsolateDataIndexes();src/node_snapshot_stub.cc:13:const std::vector<size_t>* NodeMainInstance::GetIsolateDataIndexes() { |
bl-ue
commented
Jun 2, 2021
If you don't want to do all that in this PR, I'd be happy to open a new PR correct the naming, @joyeecheung. |
7d8d5f9 to
73528a6Comparenodejs-github-bot
commented
Jun 2, 2021
bl-ue
left a comment
There was a problem hiding this comment.
Sorry for the spamming...this is the last one 😛
Uh oh!
There was an error while loading. Please reload this page.
73528a6 to
fa2bcbcCompareThis patch: - Moves the snapshot building code to src/ so that we can reuse it later when generating custom snapshots from an entry point accepted by the node binary. - Create a SnapshotData struct that incorporates all the data useful for a snapshot blob, including both the V8 data and the Node.js data.
fa2bcbc to
6cb0e58Comparenodejs-github-bot
commented
Jun 2, 2021
Uh oh!
There was an error while loading. Please reload this page.
This patch: - Moves the snapshot building code to src/ so that we can reuse it later when generating custom snapshots from an entry point accepted by the node binary. - Create a SnapshotData struct that incorporates all the data useful for a snapshot blob, including both the V8 data and the Node.js data. PR-URL: #38902 Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
joyeecheung
commented
Jun 10, 2021
Landed in 30e8b5e |
This patch: - Moves the snapshot building code to src/ so that we can reuse it later when generating custom snapshots from an entry point accepted by the node binary. - Create a SnapshotData struct that incorporates all the data useful for a snapshot blob, including both the V8 data and the Node.js data. PR-URL: #38902 Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
This patch: - Moves the snapshot building code to src/ so that we can reuse it later when generating custom snapshots from an entry point accepted by the node binary. - Create a SnapshotData struct that incorporates all the data useful for a snapshot blob, including both the V8 data and the Node.js data. PR-URL: #38902 Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
richardlau
commented
Jul 19, 2021
Doesn't land cleanly on v14.x-staging. Blocked on at least #37114. |
This patch:
later when generating custom snapshots from an entry point accepted
by the node binary.
for a snapshot blob, including both the V8 data and the Node.js
data.