Skip to content

Commit 817befd

Browse files
joyeecheungcodebytere
authored andcommitted
deps: V8: backport bb9f0c2b2fe9
Original commit message: [snapshot] Improve snapshot docs and error printing - Minor improvements to the documentation for snapshotting. - Add newlines to printed errors where necessary. Change-Id: I822e7e850adb67eae73b51c23cf34e40ba3106f0 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2144954 Reviewed-by: Toon Verwaest <[email protected]> Commit-Queue: Toon Verwaest <[email protected]> Cr-Commit-Position: refs/heads/master@{#67111} Refs: v8/v8@bb9f0c2 PR-URL: #33300 Refs: v8/v8@ea0719b Refs: v8/v8@22014de Refs: #17058 Reviewed-By: Jiawen Geng <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
1 parent 8f82692 commit 817befd

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

common.gypi

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
# Reset this number to 0 on major V8 upgrades.
3838
# Increment by one for each non-official patch applied to deps/v8.
39-
'v8_embedder_string': '-node.18',
39+
'v8_embedder_string': '-node.19',
4040

4141
##### V8 defaults for Node.js #####
4242

deps/v8/include/v8.h

+9
Original file line numberDiff line numberDiff line change
@@ -9804,6 +9804,11 @@ class V8_EXPORT V8 {
98049804

98059805
/**
98069806
* Helper class to create a snapshot data blob.
9807+
*
9808+
* The Isolate used by a SnapshotCreator is owned by it, and will be entered
9809+
* and exited by the constructor and destructor, respectively; The destructor
9810+
* will also destroy the Isolate. Experimental language features, including
9811+
* those available by default, are not available while creating a snapshot.
98079812
*/
98089813
class V8_EXPORT SnapshotCreator {
98099814
public:
@@ -9832,6 +9837,10 @@ class V8_EXPORT SnapshotCreator {
98329837
SnapshotCreator(const intptr_t* external_references = nullptr,
98339838
StartupData* existing_blob = nullptr);
98349839

9840+
/**
9841+
* Destroy the snapshot creator, and exit and dispose of the Isolate
9842+
* associated with it.
9843+
*/
98359844
~SnapshotCreator();
98369845

98379846
/**

deps/v8/src/snapshot/serializer-common.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ ExternalReferenceEncoder::Value ExternalReferenceEncoder::Encode(
7676
if (maybe_index.IsNothing()) {
7777
void* addr = reinterpret_cast<void*>(address);
7878
v8::base::OS::PrintError("Unknown external reference %p.\n", addr);
79-
v8::base::OS::PrintError("%s", ExternalReferenceTable::ResolveSymbol(addr));
79+
v8::base::OS::PrintError("%s\n",
80+
ExternalReferenceTable::ResolveSymbol(addr));
8081
v8::base::OS::Abort();
8182
}
8283
Value result(maybe_index.FromJust());

deps/v8/src/snapshot/startup-serializer.cc

+1
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ void SerializedHandleChecker::VisitRootPointers(Root root,
193193
PrintF("%s handle not serialized: ",
194194
root == Root::kGlobalHandles ? "global" : "eternal");
195195
(*p).Print();
196+
PrintF("\n");
196197
ok_ = false;
197198
}
198199
}

0 commit comments

Comments
 (0)