Add feature flag for inline script cache [chromium/src : main]

0 views
Skip to first unread message

Takashi Nakayama (Gerrit)

unread,
Mar 2, 2026, 12:14:58 AMMar 2
to Kouhei Ueno, Hiroshige Hayashizaki, Leszek Swirski, AyeAye, chromium...@chromium.org, Kentaro Hara, Raphael Kubo da Costa, Chromium LUCI CQ, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org
Attention needed from Hiroshige Hayashizaki, Kouhei Ueno and Leszek Swirski

New activity on the change

Open in Gerrit

Related details

Attention is currently required from:
  • Hiroshige Hayashizaki
  • Kouhei Ueno
  • Leszek Swirski
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I292d3e8a2f3eaace3729f7e6e26b05a83278f123
Gerrit-Change-Number: 7621453
Gerrit-PatchSet: 4
Gerrit-Owner: Takashi Nakayama <tn...@chromium.org>
Gerrit-Reviewer: Hiroshige Hayashizaki <hiro...@chromium.org>
Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
Gerrit-Reviewer: Takashi Nakayama <tn...@chromium.org>
Gerrit-CC: Kentaro Hara <har...@chromium.org>
Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
Gerrit-Attention: Hiroshige Hayashizaki <hiro...@chromium.org>
Gerrit-Attention: Kouhei Ueno <kou...@chromium.org>
Gerrit-Attention: Leszek Swirski <les...@chromium.org>
Gerrit-Comment-Date: Mon, 02 Mar 2026 05:14:21 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Leszek Swirski (Gerrit)

unread,
Mar 2, 2026, 4:51:24 AMMar 2
to Takashi Nakayama, Kouhei Ueno, Hiroshige Hayashizaki, AyeAye, chromium...@chromium.org, Kentaro Hara, Raphael Kubo da Costa, Chromium LUCI CQ, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org
Attention needed from Hiroshige Hayashizaki, Kouhei Ueno and Takashi Nakayama

Leszek Swirski voted and added 1 comment

Votes added by Leszek Swirski

Code-Review+1

1 comment

File third_party/blink/renderer/bindings/core/v8/v8_code_cache.cc
Line 394, Patchset 5 (Latest): : v8::ScriptCompiler::kNoCacheBecauseInlineScript;
Leszek Swirski . unresolved

we can keep this, it's distinct from `kNoCacheBecauseCacheTooCold` which is set below if there is a cache handler but no cache inside. It could be worthwhile to extend the CacheBehaviour enum to include a separate `kNoCacheBecauseInlineScriptCacheTooCold`

Open in Gerrit

Related details

Attention is currently required from:
  • Hiroshige Hayashizaki
  • Kouhei Ueno
  • Takashi Nakayama
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I292d3e8a2f3eaace3729f7e6e26b05a83278f123
    Gerrit-Change-Number: 7621453
    Gerrit-PatchSet: 5
    Gerrit-Owner: Takashi Nakayama <tn...@chromium.org>
    Gerrit-Reviewer: Hiroshige Hayashizaki <hiro...@chromium.org>
    Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
    Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
    Gerrit-Reviewer: Takashi Nakayama <tn...@chromium.org>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
    Gerrit-Attention: Takashi Nakayama <tn...@chromium.org>
    Gerrit-Attention: Hiroshige Hayashizaki <hiro...@chromium.org>
    Gerrit-Attention: Kouhei Ueno <kou...@chromium.org>
    Gerrit-Comment-Date: Mon, 02 Mar 2026 09:51:10 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Kouhei Ueno (Gerrit)

    unread,
    Mar 2, 2026, 5:29:00 AMMar 2
    to Takashi Nakayama, Leszek Swirski, Hiroshige Hayashizaki, AyeAye, chromium...@chromium.org, Kentaro Hara, Raphael Kubo da Costa, Chromium LUCI CQ, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org
    Attention needed from Hiroshige Hayashizaki and Takashi Nakayama

    Kouhei Ueno voted and added 1 comment

    Votes added by Kouhei Ueno

    Code-Review+1

    1 comment

    Patchset-level comments
    File-level comment, Patchset 5 (Latest):
    Kouhei Ueno . resolved

    lgtm % leszeks comment

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Hiroshige Hayashizaki
    • Takashi Nakayama
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I292d3e8a2f3eaace3729f7e6e26b05a83278f123
    Gerrit-Change-Number: 7621453
    Gerrit-PatchSet: 5
    Gerrit-Owner: Takashi Nakayama <tn...@chromium.org>
    Gerrit-Reviewer: Hiroshige Hayashizaki <hiro...@chromium.org>
    Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
    Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
    Gerrit-Reviewer: Takashi Nakayama <tn...@chromium.org>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
    Gerrit-Attention: Takashi Nakayama <tn...@chromium.org>
    Gerrit-Attention: Hiroshige Hayashizaki <hiro...@chromium.org>
    Gerrit-Comment-Date: Mon, 02 Mar 2026 10:28:44 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Hiroshige Hayashizaki (Gerrit)

    unread,
    Mar 3, 2026, 7:17:37 PMMar 3
    to Takashi Nakayama, Kouhei Ueno, Leszek Swirski, AyeAye, chromium...@chromium.org, Kentaro Hara, Raphael Kubo da Costa, Chromium LUCI CQ, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org
    Attention needed from Takashi Nakayama

    Hiroshige Hayashizaki voted and added 2 comments

    Votes added by Hiroshige Hayashizaki

    Code-Review+1

    2 comments

    File third_party/blink/renderer/bindings/core/v8/v8_code_cache.cc
    Line 435, Patchset 6 (Latest): if (source_text_length < features::kInlineScriptCacheMinScriptLength.Get()) {
    Hiroshige Hayashizaki . unresolved

    Add `source_location_type == ScriptSourceLocationType::kInline &&`

    (Otherwise, `kInlineScriptCacheMinScriptLength` would be applied to non-inline scripts if `kInlineScriptCacheMinScriptLength < kMinimalCodeLengthForNonInlineScript`.

    Line 436, Patchset 6 (Latest): no_cache_reason = v8::ScriptCompiler::kNoCacheBecauseScriptTooSmall;
    Hiroshige Hayashizaki . unresolved

    nit: `CHECK(features::IsInlineScriptCacheEnabled());`

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Takashi Nakayama
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I292d3e8a2f3eaace3729f7e6e26b05a83278f123
    Gerrit-Change-Number: 7621453
    Gerrit-PatchSet: 6
    Gerrit-Owner: Takashi Nakayama <tn...@chromium.org>
    Gerrit-Reviewer: Hiroshige Hayashizaki <hiro...@chromium.org>
    Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
    Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
    Gerrit-Reviewer: Takashi Nakayama <tn...@chromium.org>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
    Gerrit-Attention: Takashi Nakayama <tn...@chromium.org>
    Gerrit-Comment-Date: Wed, 04 Mar 2026 00:17:25 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Takashi Nakayama (Gerrit)

    unread,
    Mar 19, 2026, 9:34:59 AM (14 days ago) Mar 19
    to Chromium Metrics Reviews, Hiroshige Hayashizaki, Kouhei Ueno, Leszek Swirski, AyeAye, chromium...@chromium.org, Kentaro Hara, Raphael Kubo da Costa, Chromium LUCI CQ, asvitkine...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org
    Attention needed from Hiroshige Hayashizaki, Kouhei Ueno and Leszek Swirski

    Takashi Nakayama added 3 comments

    File third_party/blink/renderer/bindings/core/v8/v8_code_cache.cc
    Line 394, Patchset 5: : v8::ScriptCompiler::kNoCacheBecauseInlineScript;
    Leszek Swirski . unresolved

    we can keep this, it's distinct from `kNoCacheBecauseCacheTooCold` which is set below if there is a cache handler but no cache inside. It could be worthwhile to extend the CacheBehaviour enum to include a separate `kNoCacheBecauseInlineScriptCacheTooCold`

    Takashi Nakayama

    Thanks for suggestion! I reverted this change and added `v8::ScriptCompiler::kNoCacheBecauseInlineScriptCacheTooCold`. PTAL

    Line 435, Patchset 6: if (source_text_length < features::kInlineScriptCacheMinScriptLength.Get()) {
    Hiroshige Hayashizaki . resolved

    Add `source_location_type == ScriptSourceLocationType::kInline &&`

    (Otherwise, `kInlineScriptCacheMinScriptLength` would be applied to non-inline scripts if `kInlineScriptCacheMinScriptLength < kMinimalCodeLengthForNonInlineScript`.

    Takashi Nakayama

    Done

    Line 436, Patchset 6: no_cache_reason = v8::ScriptCompiler::kNoCacheBecauseScriptTooSmall;
    Hiroshige Hayashizaki . resolved

    nit: `CHECK(features::IsInlineScriptCacheEnabled());`

    Takashi Nakayama

    Added `features::IsInlineScriptCacheEnabled() &&` to the if condition instead.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Hiroshige Hayashizaki
    • Kouhei Ueno
    • Leszek Swirski
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I292d3e8a2f3eaace3729f7e6e26b05a83278f123
    Gerrit-Change-Number: 7621453
    Gerrit-PatchSet: 11
    Gerrit-Owner: Takashi Nakayama <tn...@chromium.org>
    Gerrit-Reviewer: Hiroshige Hayashizaki <hiro...@chromium.org>
    Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
    Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
    Gerrit-Reviewer: Takashi Nakayama <tn...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
    Gerrit-Attention: Hiroshige Hayashizaki <hiro...@chromium.org>
    Gerrit-Attention: Kouhei Ueno <kou...@chromium.org>
    Gerrit-Attention: Leszek Swirski <les...@chromium.org>
    Gerrit-Comment-Date: Thu, 19 Mar 2026 13:34:49 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Hiroshige Hayashizaki <hiro...@chromium.org>
    Comment-In-Reply-To: Leszek Swirski <les...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Hiroshige Hayashizaki (Gerrit)

    unread,
    Mar 22, 2026, 6:22:40 AM (11 days ago) Mar 22
    to Takashi Nakayama, Chromium Metrics Reviews, Kouhei Ueno, Leszek Swirski, AyeAye, chromium...@chromium.org, Kentaro Hara, Raphael Kubo da Costa, Chromium LUCI CQ, asvitkine...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org
    Attention needed from Kouhei Ueno, Leszek Swirski and Takashi Nakayama

    Hiroshige Hayashizaki voted and added 1 comment

    Votes added by Hiroshige Hayashizaki

    Code-Review+1

    1 comment

    File third_party/blink/renderer/bindings/core/v8/v8_code_cache.cc
    Line 436, Patchset 13 (Latest): source_text_length < features::kInlineScriptCacheMinScriptLength.Get()) {
    Hiroshige Hayashizaki . unresolved

    still I prefer `CHECK(features::IsInlineScriptCacheEnabled());` here, as it's clearer that Lines 434-449 is just applying different threshold for inline/external scripts.

    The current patch set, the `features::IsInlineScriptCacheEnabled() &&` inside `if` makes me wonder:
    Hmm, then if `features::IsInlineScriptCacheEnabled()` is false, no length limit is imposed for `kInline`?
    Actually this is unnecessary thought, as the cache handler should be null and we should have early-returned in such cases. I prefer `CHECK()`ing instead, to avoid such unnecessary thoughts.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Kouhei Ueno
    • Leszek Swirski
    • Takashi Nakayama
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I292d3e8a2f3eaace3729f7e6e26b05a83278f123
    Gerrit-Change-Number: 7621453
    Gerrit-PatchSet: 13
    Gerrit-Owner: Takashi Nakayama <tn...@chromium.org>
    Gerrit-Reviewer: Hiroshige Hayashizaki <hiro...@chromium.org>
    Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
    Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
    Gerrit-Reviewer: Takashi Nakayama <tn...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
    Gerrit-Attention: Takashi Nakayama <tn...@chromium.org>
    Gerrit-Attention: Kouhei Ueno <kou...@chromium.org>
    Gerrit-Attention: Leszek Swirski <les...@chromium.org>
    Gerrit-Comment-Date: Sun, 22 Mar 2026 10:22:31 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Takashi Nakayama (Gerrit)

    unread,
    Mar 26, 2026, 1:34:39 AM (7 days ago) Mar 26
    to Hiroshige Hayashizaki, Chromium Metrics Reviews, Kouhei Ueno, Leszek Swirski, AyeAye, chromium...@chromium.org, Kentaro Hara, Raphael Kubo da Costa, Chromium LUCI CQ, asvitkine...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org
    Attention needed from Kouhei Ueno and Leszek Swirski

    Takashi Nakayama added 1 comment

    File third_party/blink/renderer/bindings/core/v8/v8_code_cache.cc
    Line 436, Patchset 13: source_text_length < features::kInlineScriptCacheMinScriptLength.Get()) {
    Hiroshige Hayashizaki . resolved

    still I prefer `CHECK(features::IsInlineScriptCacheEnabled());` here, as it's clearer that Lines 434-449 is just applying different threshold for inline/external scripts.

    The current patch set, the `features::IsInlineScriptCacheEnabled() &&` inside `if` makes me wonder:
    Hmm, then if `features::IsInlineScriptCacheEnabled()` is false, no length limit is imposed for `kInline`?
    Actually this is unnecessary thought, as the cache handler should be null and we should have early-returned in such cases. I prefer `CHECK()`ing instead, to avoid such unnecessary thoughts.

    Takashi Nakayama

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Kouhei Ueno
    • Leszek Swirski
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I292d3e8a2f3eaace3729f7e6e26b05a83278f123
    Gerrit-Change-Number: 7621453
    Gerrit-PatchSet: 19
    Gerrit-Owner: Takashi Nakayama <tn...@chromium.org>
    Gerrit-Reviewer: Hiroshige Hayashizaki <hiro...@chromium.org>
    Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
    Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
    Gerrit-Reviewer: Takashi Nakayama <tn...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
    Gerrit-Attention: Kouhei Ueno <kou...@chromium.org>
    Gerrit-Attention: Leszek Swirski <les...@chromium.org>
    Gerrit-Comment-Date: Thu, 26 Mar 2026 05:34:29 +0000
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Leszek Swirski (Gerrit)

    unread,
    Mar 30, 2026, 3:34:59 AM (3 days ago) Mar 30
    to Takashi Nakayama, Hiroshige Hayashizaki, Chromium Metrics Reviews, Kouhei Ueno, AyeAye, chromium...@chromium.org, Kentaro Hara, Raphael Kubo da Costa, Chromium LUCI CQ, asvitkine...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org
    Attention needed from Kouhei Ueno and Takashi Nakayama

    Leszek Swirski voted and added 1 comment

    Votes added by Leszek Swirski

    Code-Review+1

    1 comment

    File third_party/blink/renderer/bindings/core/v8/v8_code_cache.cc
    Line 394, Patchset 5: : v8::ScriptCompiler::kNoCacheBecauseInlineScript;
    Leszek Swirski . resolved

    we can keep this, it's distinct from `kNoCacheBecauseCacheTooCold` which is set below if there is a cache handler but no cache inside. It could be worthwhile to extend the CacheBehaviour enum to include a separate `kNoCacheBecauseInlineScriptCacheTooCold`

    Takashi Nakayama

    Thanks for suggestion! I reverted this change and added `v8::ScriptCompiler::kNoCacheBecauseInlineScriptCacheTooCold`. PTAL

    Leszek Swirski

    Thanks!

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Kouhei Ueno
    • Takashi Nakayama
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Owners
      • requirement satisfiedCode-Review
      • requirement satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I292d3e8a2f3eaace3729f7e6e26b05a83278f123
      Gerrit-Change-Number: 7621453
      Gerrit-PatchSet: 21
      Gerrit-Owner: Takashi Nakayama <tn...@chromium.org>
      Gerrit-Reviewer: Hiroshige Hayashizaki <hiro...@chromium.org>
      Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
      Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
      Gerrit-Reviewer: Takashi Nakayama <tn...@chromium.org>
      Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
      Gerrit-CC: Kentaro Hara <har...@chromium.org>
      Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
      Gerrit-Attention: Takashi Nakayama <tn...@chromium.org>
      Gerrit-Attention: Kouhei Ueno <kou...@chromium.org>
      Gerrit-Comment-Date: Mon, 30 Mar 2026 07:34:46 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Comment-In-Reply-To: Takashi Nakayama <tn...@chromium.org>
      Comment-In-Reply-To: Leszek Swirski <les...@chromium.org>
      satisfied_requirement
      open
      diffy

      Chromium LUCI CQ (Gerrit)

      unread,
      Mar 31, 2026, 1:20:49 AM (2 days ago) Mar 31
      to Takashi Nakayama, Leszek Swirski, Hiroshige Hayashizaki, Chromium Metrics Reviews, Kouhei Ueno, AyeAye, chromium...@chromium.org, Kentaro Hara, Raphael Kubo da Costa, asvitkine...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org

      Chromium LUCI CQ submitted the change

      Unreviewed changes

      21 is the latest approved patch-set.
      No files were changed between the latest approved patch-set and the submitted one.

      Change information

      Commit message:
      Add feature flag for inline script cache

      Introduce the `kInlineScriptCache` feature flag and associated
      parameters to support caching for inline scripts. Since
      InlineScriptCache is built upon PersistentCodeCache, a new helper
      function `IsInlineScriptCacheEnabled()` is introduced to ensure the
      feature activates when all necessary flags are set.

      This CL also introduces a configurable minimum script length check for
      inline scripts.

      DesignDoc:
      https://docs.google.com/document/d/1pVFb79e5vkKJI7nZ15BXZFbNji_mB2Y8eZPGhEpK3jE/edit?usp=sharing
      Bug: 488755561
      Change-Id: I292d3e8a2f3eaace3729f7e6e26b05a83278f123
      Reviewed-by: Hiroshige Hayashizaki <hiro...@chromium.org>
      Commit-Queue: Takashi Nakayama <tn...@chromium.org>
      Reviewed-by: Leszek Swirski <les...@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#1607628}
      Files:
      • M third_party/blink/common/features.cc
      • M third_party/blink/public/common/features.h
      • M third_party/blink/renderer/bindings/core/v8/v8_code_cache.cc
      Change size: M
      Delta: 3 files changed, 53 insertions(+), 7 deletions(-)
      Branch: refs/heads/main
      Submit Requirements:
      • requirement satisfiedCode-Review: +1 by Hiroshige Hayashizaki, +1 by Leszek Swirski
      Open in Gerrit
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: merged
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I292d3e8a2f3eaace3729f7e6e26b05a83278f123
      Gerrit-Change-Number: 7621453
      Gerrit-PatchSet: 23
      Gerrit-Owner: Takashi Nakayama <tn...@chromium.org>
      Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
      Gerrit-Reviewer: Hiroshige Hayashizaki <hiro...@chromium.org>
      Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
      Gerrit-Reviewer: Leszek Swirski <les...@chromium.org>
      Gerrit-Reviewer: Takashi Nakayama <tn...@chromium.org>
      open
      diffy
      satisfied_requirement
      Reply all
      Reply to author
      Forward
      0 new messages