[webkit-changes] [WebKit/WebKit] 46bbf6: [JSC] Add simple compile-time register allocator s...

Dan Hecht noreply at github.com
Tue Feb 25 16:19:42 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 46bbf6cbb7beb79ed548b877420a5e4a551725aa
      https://github.com/WebKit/WebKit/commit/46bbf6cbb7beb79ed548b877420a5e4a551725aa
  Author: Dan Hecht <dan.hecht at apple.com>
  Date:   2025-02-25 (Tue, 25 Feb 2025)

  Changed paths:
    M Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj
    M Source/JavaScriptCore/b3/air/AirAllocateRegistersByGraphColoring.cpp
    M Source/JavaScriptCore/b3/air/AirAllocateRegistersByGreedy.cpp
    A Source/JavaScriptCore/b3/air/AirRegisterAllocatorStats.h
    M Source/JavaScriptCore/runtime/OptionsList.h

  Log Message:
  -----------
  [JSC] Add simple compile-time register allocator stats
https://bugs.webkit.org/show_bug.cgi?id=288494
rdar://145576063

Reviewed by Yijia Huang.

These simple metrics give some easier visbility into
the effects when tuning of the register allocators and
provide another way to compare the quality if their
outputs.

* Source/JavaScriptCore/b3/air/AirAllocateRegistersByGraphColoring.cpp:
* Source/JavaScriptCore/b3/air/AirAllocateRegistersByGreedy.cpp:
(JSC::B3::Air::Greedy::GreedyAllocator::run):
(JSC::B3::Air::Greedy::GreedyAllocator::initSpillCosts):
(JSC::B3::Air::Greedy::GreedyAllocator::addSpillTmpWithInterval):
(JSC::B3::Air::Greedy::GreedyAllocator::emitSpillCodeAndEnqueueNewTmps):
* Source/JavaScriptCore/b3/air/AirRegisterAllocatorStats.h:
(JSC::B3::Air::AirAllocateRegistersStats::dump const):
* Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj:
* Source/JavaScriptCore/runtime/OptionsList.h:

Canonical link: https://commits.webkit.org/291069@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list