Skip to content

Commit 5b35837

Browse files
committed
deps: V8: cherry-pick cf21eb36b975
Original commit message: [baseline] Skip deoptimization data size Sparkplug code does not contain deoptimization data. Bug: v8:12258 Change-Id: Ieb9f7f1469e00677d9533c6f05b17c80ef06b9d6 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3175820 Commit-Queue: Victor Gomes <victorgomes@chromium.org> Commit-Queue: Camillo Bruni <cbruni@chromium.org> Auto-Submit: Victor Gomes <victorgomes@chromium.org> Reviewed-by: Camillo Bruni <cbruni@chromium.org> Cr-Commit-Position: refs/heads/main@{#76997} Refs: v8/v8@cf21eb3 PR-URL: #40178 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 6b40383 commit 5b35837

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-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.8',
39+
'v8_embedder_string': '-node.9',
4040

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

deps/v8/src/objects/code-inl.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,9 @@ int Code::MetadataSize() const {
394394
int Code::SizeIncludingMetadata() const {
395395
int size = CodeSize();
396396
size += relocation_info().Size();
397-
size += deoptimization_data().Size();
397+
if (kind() != CodeKind::BASELINE) {
398+
size += deoptimization_data().Size();
399+
}
398400
return size;
399401
}
400402

0 commit comments

Comments
 (0)