refactor: third_party/blink/renderer/core/html/parser/literal_buffer.h [chromium/src : main]

0 views
Skip to first unread message

AI Code Reviewer (Gerrit)

unread,
Dec 19, 2025, 12:00:07 PM12/19/25
to Sergio Solano, Chromium LUCI CQ, Menard, Alexis, chromium...@chromium.org, Dirk Schulze, Fredrik Söderquist, Olga Gerchikov, Stephen Chenney, apavlo...@chromium.org, blink-revie...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, dom+...@chromium.org, dominicc+...@chromium.org, fmalit...@chromium.org, hiroshig...@chromium.org, kinuko...@chromium.org, kouhei...@chromium.org, kouhe...@chromium.org, loading-rev...@chromium.org, pdr+svgw...@chromium.org

AI Code Reviewer added 4 comments

File third_party/blink/renderer/core/html/parser/literal_buffer.h
Line 160, Patchset 1 (Latest): size_t size_ = 0;
AI Code Reviewer . unresolved

Blink Style Guide: Prefer blink:: types over STL and base types. Consider using 'wtf_size_t' instead of 'size_t' for the member variable 'size_' to match the return type of 'size()' and reduce memory usage.

To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
**Done** | **OK But Won't Fix**: reason | **Later**: b/<bug_id> | **Invalid:** reason


_This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent)._
_AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve._
_[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_

File third_party/blink/renderer/core/html/parser/markup_tokenizer_inlines.h
Line 52, Patchset 1 (Latest): for (char c : std::string_view(expected_characters)) {
AI Code Reviewer . unresolved

Blink Style Guide: Prefer blink:: types over STL and base types. Please use 'StringView' (WTF::StringView) instead of 'std::string_view'.

To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
**Done** | **OK But Won't Fix**: reason | **Later**: b/<bug_id> | **Invalid:** reason


_This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent)._
_AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve._
_[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_

Line 45, Patchset 1 (Latest): for (char c : std::string_view(expected_characters)) {
AI Code Reviewer . unresolved

Blink Style Guide: Prefer blink:: types over STL and base types. Please use 'StringView' (WTF::StringView) instead of 'std::string_view'.

To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
**Done** | **OK But Won't Fix**: reason | **Later**: b/<bug_id> | **Invalid:** reason


_This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent)._
_AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve._
_[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_

File third_party/blink/renderer/core/xml/parser/xml_document_parser.cc
Line 1885, Patchset 1 (Latest): int /*nbDefaulted*/,
AI Code Reviewer . unresolved

Blink Style Guide: Prefer blink:: types over STL and base types. Please use 'StringView' (WTF::StringView) instead of 'std::string_view'.

To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
**Done** | **OK But Won't Fix**: reason | **Later**: b/<bug_id> | **Invalid:** reason


_This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent)._
_AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve._
_[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_

Open in Gerrit

Related details

Attention set is empty
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: I0219f3b90126dfdf20b16dbc73cf2cb240166e86
Gerrit-Change-Number: 7281269
Gerrit-PatchSet: 1
Gerrit-Owner: Sergio Solano <sergio...@google.com>
Gerrit-Reviewer: Sergio Solano <sergio...@google.com>
Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
Gerrit-CC: Fredrik Söderquist <f...@opera.com>
Gerrit-CC: Menard, Alexis <alexis...@intel.com>
Gerrit-CC: Olga Gerchikov <gerc...@microsoft.com>
Gerrit-CC: Stephen Chenney <sche...@chromium.org>
Gerrit-Comment-Date: Fri, 19 Dec 2025 17:00:03 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Steinar H Gunderson (Gerrit)

unread,
Dec 19, 2025, 12:13:54 PM12/19/25
to Sergio Solano, AI Code Reviewer, Chromium LUCI CQ, Menard, Alexis, chromium...@chromium.org, Dirk Schulze, Fredrik Söderquist, Olga Gerchikov, Stephen Chenney, apavlo...@chromium.org, blink-revie...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, dom+...@chromium.org, dominicc+...@chromium.org, fmalit...@chromium.org, hiroshig...@chromium.org, kinuko...@chromium.org, kouhei...@chromium.org, kouhe...@chromium.org, loading-rev...@chromium.org, pdr+svgw...@chromium.org
Attention needed from Sergio Solano

Steinar H Gunderson added 1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Steinar H Gunderson . resolved

Preemptively: Please run relevant benchmarks before sending this for review. This is the fifth AI-generated spanification CL we've seen only this week (!) that is a probable performance regression, and it's starting to be disruptive for team load. Thank you :-)

Open in Gerrit

Related details

Attention is currently required from:
  • Sergio Solano
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: I0219f3b90126dfdf20b16dbc73cf2cb240166e86
Gerrit-Change-Number: 7281269
Gerrit-PatchSet: 1
Gerrit-Owner: Sergio Solano <sergio...@google.com>
Gerrit-Reviewer: Sergio Solano <sergio...@google.com>
Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
Gerrit-CC: Fredrik Söderquist <f...@opera.com>
Gerrit-CC: Menard, Alexis <alexis...@intel.com>
Gerrit-CC: Olga Gerchikov <gerc...@microsoft.com>
Gerrit-CC: Steinar H Gunderson <se...@chromium.org>
Gerrit-CC: Stephen Chenney <sche...@chromium.org>
Gerrit-Attention: Sergio Solano <sergio...@google.com>
Gerrit-Comment-Date: Fri, 19 Dec 2025 17:13:42 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

chromeperf@appspot.gserviceaccount.com (Gerrit)

unread,
Dec 19, 2025, 2:27:59 PM12/19/25
to Sergio Solano, Steinar H Gunderson, AI Code Reviewer, Chromium LUCI CQ, Menard, Alexis, chromium...@chromium.org, Dirk Schulze, Fredrik Söderquist, Olga Gerchikov, Stephen Chenney, apavlo...@chromium.org, blink-revie...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, dom+...@chromium.org, dominicc+...@chromium.org, fmalit...@chromium.org, hiroshig...@chromium.org, kinuko...@chromium.org, kouhei...@chromium.org, kouhe...@chromium.org, loading-rev...@chromium.org, pdr+svgw...@chromium.org
Attention needed from Sergio Solano

Message from chrom...@appspot.gserviceaccount.com

📍 Job linux-perf/speedometer3 complete.

See results at: https://pinpoint-dot-chromeperf.appspot.com/job/1023ec81b10000

Open in Gerrit

Related details

Attention is currently required from:
  • Sergio Solano
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: I0219f3b90126dfdf20b16dbc73cf2cb240166e86
Gerrit-Change-Number: 7281269
Gerrit-PatchSet: 2
Gerrit-Owner: Sergio Solano <sergio...@google.com>
Gerrit-Reviewer: Sergio Solano <sergio...@google.com>
Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
Gerrit-CC: Fredrik Söderquist <f...@opera.com>
Gerrit-CC: Menard, Alexis <alexis...@intel.com>
Gerrit-CC: Olga Gerchikov <gerc...@microsoft.com>
Gerrit-CC: Steinar H Gunderson <se...@chromium.org>
Gerrit-CC: Stephen Chenney <sche...@chromium.org>
Gerrit-Attention: Sergio Solano <sergio...@google.com>
Gerrit-Comment-Date: Fri, 19 Dec 2025 19:27:49 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Sergio Solano (Gerrit)

unread,
Feb 9, 2026, 11:24:45 PM (4 days ago) Feb 9
to Stephen Nusko, chrom...@appspot.gserviceaccount.com, Steinar H Gunderson, AI Code Reviewer, Chromium LUCI CQ, Menard, Alexis, chromium...@chromium.org, Dirk Schulze, Fredrik Söderquist, Olga Gerchikov, Stephen Chenney, apavlo...@chromium.org, blink-revie...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, dom+...@chromium.org, dominicc+...@chromium.org, fmalit...@chromium.org, hiroshig...@chromium.org, kinuko...@chromium.org, kouhei...@chromium.org, kouhe...@chromium.org, loading-rev...@chromium.org, pdr+svgw...@chromium.org
Attention needed from Stephen Nusko

Sergio Solano added 4 comments

File third_party/blink/renderer/core/html/parser/literal_buffer.h
Line 160, Patchset 1: size_t size_ = 0;
AI Code Reviewer . resolved

Blink Style Guide: Prefer blink:: types over STL and base types. Consider using 'wtf_size_t' instead of 'size_t' for the member variable 'size_' to match the return type of 'size()' and reduce memory usage.

To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
**Done** | **OK But Won't Fix**: reason | **Later**: b/<bug_id> | **Invalid:** reason


_This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent)._
_AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve._
_[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_

Sergio Solano

Done

File third_party/blink/renderer/core/html/parser/markup_tokenizer_inlines.h
Line 52, Patchset 1: for (char c : std::string_view(expected_characters)) {
AI Code Reviewer . resolved

Blink Style Guide: Prefer blink:: types over STL and base types. Please use 'StringView' (WTF::StringView) instead of 'std::string_view'.

To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
**Done** | **OK But Won't Fix**: reason | **Later**: b/<bug_id> | **Invalid:** reason


_This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent)._
_AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve._
_[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_

Sergio Solano

Done

Line 45, Patchset 1: for (char c : std::string_view(expected_characters)) {
AI Code Reviewer . resolved

Blink Style Guide: Prefer blink:: types over STL and base types. Please use 'StringView' (WTF::StringView) instead of 'std::string_view'.

To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
**Done** | **OK But Won't Fix**: reason | **Later**: b/<bug_id> | **Invalid:** reason


_This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent)._
_AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve._
_[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_

Sergio Solano

Done

File third_party/blink/renderer/core/xml/parser/xml_document_parser.cc
Line 1885, Patchset 1: int /*nbDefaulted*/,
AI Code Reviewer . resolved

Blink Style Guide: Prefer blink:: types over STL and base types. Please use 'StringView' (WTF::StringView) instead of 'std::string_view'.

To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
**Done** | **OK But Won't Fix**: reason | **Later**: b/<bug_id> | **Invalid:** reason


_This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent)._
_AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve._
_[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_

Sergio Solano

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Stephen Nusko
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: I0219f3b90126dfdf20b16dbc73cf2cb240166e86
    Gerrit-Change-Number: 7281269
    Gerrit-PatchSet: 4
    Gerrit-Owner: Sergio Solano <sergio...@google.com>
    Gerrit-Reviewer: Sergio Solano <sergio...@google.com>
    Gerrit-Reviewer: Stephen Nusko <nus...@chromium.org>
    Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
    Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
    Gerrit-CC: Fredrik Söderquist <f...@opera.com>
    Gerrit-CC: Menard, Alexis <alexis...@intel.com>
    Gerrit-CC: Olga Gerchikov <gerc...@microsoft.com>
    Gerrit-CC: Steinar H Gunderson <se...@chromium.org>
    Gerrit-CC: Stephen Chenney <sche...@chromium.org>
    Gerrit-Attention: Stephen Nusko <nus...@chromium.org>
    Gerrit-Comment-Date: Tue, 10 Feb 2026 04:24:36 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Stephen Nusko (Gerrit)

    unread,
    Feb 10, 2026, 1:47:04 AM (4 days ago) Feb 10
    to Sergio Solano, chrom...@appspot.gserviceaccount.com, Steinar H Gunderson, AI Code Reviewer, Chromium LUCI CQ, Menard, Alexis, chromium...@chromium.org, Dirk Schulze, Fredrik Söderquist, Olga Gerchikov, Stephen Chenney, apavlo...@chromium.org, blink-revie...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, dom+...@chromium.org, dominicc+...@chromium.org, fmalit...@chromium.org, hiroshig...@chromium.org, kinuko...@chromium.org, kouhei...@chromium.org, kouhe...@chromium.org, loading-rev...@chromium.org, pdr+svgw...@chromium.org
    Attention needed from Sergio Solano

    Stephen Nusko added 8 comments

    File third_party/blink/renderer/core/html/parser/markup_tokenizer_inlines.h
    Line 52, Patchset 4 (Latest): for (unsigned i = 0; i < expected_characters.length(); ++i) {
    source.AdvanceAndASSERT(expected_characters[i]);
    }
    Stephen Nusko . unresolved

    Same here?

    Line 45, Patchset 4 (Latest): for (unsigned i = 0; i < expected_characters.length(); ++i) {
    source.AdvanceAndASSERTIgnoringCase(expected_characters[i]);
    }
    Stephen Nusko . unresolved

    This could just be a for each loop right?

    ```
    for (const auto& expected : expected_characters) {
    source.AdvanceAndASSERTIgnoringCase(expected);
    }
    ```
    File third_party/blink/renderer/core/style/style_variables.h
    Line 273, Patchset 4 (Parent): // It is legal to copy Member<> with memcpy() here, since we are in a
    // constructor. (We could use an initializer, but Clang doesn't
    // manage to combine the loads and stores into larger parts.)
    UNSAFE_TODO(memcpy(&values_, &other.values_, sizeof(values_)));
    UNSAFE_TODO(memcpy(&children_, &other.children_, sizeof(children_)));
    Stephen Nusko . unresolved

    This comment is very clear that this is heavily optimized code.

    blink code should be spanified with extreme care.

    Can you do some due diligence here and

    1) check that speedometer3/jetstream2 doesn't experience a regression
    2) Look for any micro benchmarks around this css parser?
    3) That if you look for the assembly code in particular here it generates similar optimized code similar or better than before?

    If we can't do 3) we should perhaps leave this until an expert with the skill to do so has a chance to look.

    File third_party/blink/renderer/core/svg/animation/svg_smil_element.cc
    Line 85, Patchset 4 (Latest): // SAFETY: The loop iterates over a WTF::Vector within the bounds of the
    // container, from a valid iterator to the end.
    Stephen Nusko . unresolved

    a WTF::Vector is not hardened I don't think we should promote this to UNSAFE_BUFFERS leave as UNSAFE_TODO, we can't meaningfully verify the bounds here by any API promise.

    Line 903, Patchset 4 (Latest): search_start != begin_times_.end(); UNSAFE_BUFFERS(++search_start)) {
    Stephen Nusko . unresolved

    Same here (SMILInstanceTimeList is just a blink::Vector)

    File third_party/blink/renderer/core/xml/parser/xml_document_parser.cc
    Line 1280, Patchset 4 (Latest): char buffer[1024];
    // SAFETY: vsnprintf ensures not to write more than 1024 bytes.
    UNSAFE_BUFFERS(vsnprintf(buffer, sizeof(buffer), message, args));
    Stephen Nusko . unresolved

    Can we use `base::SafeSPrintf`?

    Line 1497, Patchset 4 (Latest): // `GetError` is safe as it immediately converts the arguments into a
    // `std::string` using `base::StringPrintV`.
    UNSAFE_BUFFERS(GetParser(closure)->GetError(XMLErrors::kErrorTypeWarning,
    message, args));
    Stephen Nusko . unresolved

    I don't understand what is the buffers usage here we are suppressing? This just looks like we are reinterpreting casting and calling a function on the result? Can you let me know the error? looks like we shouldn't need a UNSAFE_BUFFERS?

    Line 1511, Patchset 4 (Latest): UNSAFE_BUFFERS(GetParser(closure)->GetError(XMLErrors::kErrorTypeNonFatal,
    Stephen Nusko . unresolved

    Same here?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Sergio Solano
    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: I0219f3b90126dfdf20b16dbc73cf2cb240166e86
      Gerrit-Change-Number: 7281269
      Gerrit-PatchSet: 4
      Gerrit-Owner: Sergio Solano <sergio...@google.com>
      Gerrit-Reviewer: Sergio Solano <sergio...@google.com>
      Gerrit-Reviewer: Stephen Nusko <nus...@chromium.org>
      Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
      Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
      Gerrit-CC: Fredrik Söderquist <f...@opera.com>
      Gerrit-CC: Menard, Alexis <alexis...@intel.com>
      Gerrit-CC: Olga Gerchikov <gerc...@microsoft.com>
      Gerrit-CC: Steinar H Gunderson <se...@chromium.org>
      Gerrit-CC: Stephen Chenney <sche...@chromium.org>
      Gerrit-Attention: Sergio Solano <sergio...@google.com>
      Gerrit-Comment-Date: Tue, 10 Feb 2026 06:46:38 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Stephen Nusko (Gerrit)

      unread,
      Feb 10, 2026, 1:48:22 AM (4 days ago) Feb 10
      to Sergio Solano, chrom...@appspot.gserviceaccount.com, Steinar H Gunderson, AI Code Reviewer, Chromium LUCI CQ, Menard, Alexis, chromium...@chromium.org, Dirk Schulze, Fredrik Söderquist, Olga Gerchikov, Stephen Chenney, apavlo...@chromium.org, blink-revie...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, dom+...@chromium.org, dominicc+...@chromium.org, fmalit...@chromium.org, hiroshig...@chromium.org, kinuko...@chromium.org, kouhei...@chromium.org, kouhe...@chromium.org, loading-rev...@chromium.org, pdr+svgw...@chromium.org
      Attention needed from Sergio Solano

      Stephen Nusko added 1 comment

      File third_party/blink/renderer/core/style/style_variables.h
      Line 273, Patchset 4 (Parent): // It is legal to copy Member<> with memcpy() here, since we are in a
      // constructor. (We could use an initializer, but Clang doesn't
      // manage to combine the loads and stores into larger parts.)
      UNSAFE_TODO(memcpy(&values_, &other.values_, sizeof(values_)));
      UNSAFE_TODO(memcpy(&children_, &other.children_, sizeof(children_)));
      Stephen Nusko . unresolved

      This comment is very clear that this is heavily optimized code.

      blink code should be spanified with extreme care.

      Can you do some due diligence here and

      1) check that speedometer3/jetstream2 doesn't experience a regression
      2) Look for any micro benchmarks around this css parser?
      3) That if you look for the assembly code in particular here it generates similar optimized code similar or better than before?

      If we can't do 3) we should perhaps leave this until an expert with the skill to do so has a chance to look.

      Stephen Nusko

      And I see you already did speedometer 😄

      https://pinpoint-dot-chromeperf.appspot.com/job/1023ec81b10000

      But can you run it on mac-m1_mini_2020-perf with 150 tries (it should default) as described here: https://chromium.googlesource.com/chromium/src/+/HEAD/docs/benchmark_performance_regressions.md

      Gerrit-Comment-Date: Tue, 10 Feb 2026 06:48:02 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Stephen Nusko <nus...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      chromeperf@appspot.gserviceaccount.com (Gerrit)

      unread,
      Feb 10, 2026, 2:02:54 PM (3 days ago) Feb 10
      to Sergio Solano, Stephen Nusko, Steinar H Gunderson, AI Code Reviewer, Chromium LUCI CQ, Menard, Alexis, chromium...@chromium.org, Dirk Schulze, Fredrik Söderquist, Olga Gerchikov, Stephen Chenney, apavlo...@chromium.org, blink-revie...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, dom+...@chromium.org, dominicc+...@chromium.org, fmalit...@chromium.org, hiroshig...@chromium.org, kinuko...@chromium.org, kouhei...@chromium.org, kouhe...@chromium.org, loading-rev...@chromium.org, pdr+svgw...@chromium.org
      Attention needed from Sergio Solano

      Message from chrom...@appspot.gserviceaccount.com

      📍 Job mac-m1_mini_2020-perf/speedometer3 complete.

      See results at: https://pinpoint-dot-chromeperf.appspot.com/job/14ee0c64f10000

      Gerrit-Comment-Date: Tue, 10 Feb 2026 19:02:43 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      chromeperf@appspot.gserviceaccount.com (Gerrit)

      unread,
      Feb 10, 2026, 2:08:56 PM (3 days ago) Feb 10
      to Sergio Solano, Stephen Nusko, Steinar H Gunderson, AI Code Reviewer, Chromium LUCI CQ, Menard, Alexis, chromium...@chromium.org, Dirk Schulze, Fredrik Söderquist, Olga Gerchikov, Stephen Chenney, apavlo...@chromium.org, blink-revie...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, dom+...@chromium.org, dominicc+...@chromium.org, fmalit...@chromium.org, hiroshig...@chromium.org, kinuko...@chromium.org, kouhei...@chromium.org, kouhe...@chromium.org, loading-rev...@chromium.org, pdr+svgw...@chromium.org
      Attention needed from Sergio Solano

      Message from chrom...@appspot.gserviceaccount.com

      📍 Job mac-m1_mini_2020-perf/jetstream2 complete.

      See results at: https://pinpoint-dot-chromeperf.appspot.com/job/17ddebc4f10000

      Gerrit-Comment-Date: Tue, 10 Feb 2026 19:08:48 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy
      Reply all
      Reply to author
      Forward
      0 new messages