Skip to content

Commit

Permalink
deps: V8: cherry-pick cf21eb36b975
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
targos committed Oct 12, 2021
1 parent 6b40383 commit 5b35837
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

# Reset this number to 0 on major V8 upgrades.
# Increment by one for each non-official patch applied to deps/v8.
'v8_embedder_string': '-node.8',
'v8_embedder_string': '-node.9',

##### V8 defaults for Node.js #####

Expand Down
4 changes: 3 additions & 1 deletion deps/v8/src/objects/code-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,9 @@ int Code::MetadataSize() const {
int Code::SizeIncludingMetadata() const {
int size = CodeSize();
size += relocation_info().Size();
size += deoptimization_data().Size();
if (kind() != CodeKind::BASELINE) {
size += deoptimization_data().Size();
}
return size;
}

Expand Down

0 comments on commit 5b35837

Please sign in to comment.