Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f6a959b7e8e4d37d7e891d3a37cf7f45072d15bd
      
https://github.com/WebKit/WebKit/commit/f6a959b7e8e4d37d7e891d3a37cf7f45072d15bd
  Author: Yusuke Suzuki <[email protected]>
  Date:   2026-08-27 (Thu, 27 Aug 2026)

  Changed paths:
    M Source/JavaScriptCore/bytecode/CodeBlock.cpp
    M Source/JavaScriptCore/bytecode/CodeBlock.h
    M Source/JavaScriptCore/bytecode/LazyValueProfile.cpp
    M Source/JavaScriptCore/bytecode/LazyValueProfile.h
    M Source/JavaScriptCore/bytecode/ValueProfile.h
    M Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp
    M Source/JavaScriptCore/dfg/DFGPredictionInjectionPhase.cpp
    M Source/JavaScriptCore/jit/BaselineJITPlan.cpp
    M Source/JavaScriptCore/profiler/ProfilerBytecodeSequence.cpp

  Log Message:
  -----------
  [JSC] Remove valueProfileLock
https://bugs.webkit.org/show_bug.cgi?id=322701
rdar://185966544

Reviewed by Keith Miller.

ValueProfile collection was taking a lock only on 32bit before, and
valueProfileLock was empty on 64bit. Now 32bit JIT is dropped and we no
longer need to consider about this locking case. This patch removes
valueProfileLock (It was NoLockingNecessaryTag so no effect).

* Source/JavaScriptCore/bytecode/CodeBlock.cpp:
(JSC::CodeBlock::updateAllNonLazyValueProfilePredictionsAndCountLiveness):
(JSC::CodeBlock::updateAllNonLazyValueProfilePredictions):
(JSC::CodeBlock::updateAllLazyValueProfilePredictions):
(JSC::CodeBlock::updateAllPredictions):
(JSC::CodeBlock::shouldOptimizeNowFromBaseline):
(JSC::CodeBlock::valueProfilePredictionForBytecodeIndex):
* Source/JavaScriptCore/bytecode/CodeBlock.h:
(JSC::CodeBlock::valueProfileLock): Deleted.
* Source/JavaScriptCore/bytecode/LazyValueProfile.cpp:
(JSC::CompressedLazyValueProfileHolder::computeUpdatedPredictions):
(JSC::LazyOperandValueProfileParser::prediction const):
* Source/JavaScriptCore/bytecode/LazyValueProfile.h:
* Source/JavaScriptCore/bytecode/ValueProfile.h:
(JSC::ValueProfileBase::briefDescription):
(JSC::ValueProfileBase::computeUpdatedPrediction):
(JSC::ValueProfileBase::computeUpdatedPredictionForExtraValue):
* Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp:
(JSC::DFG::ByteCodeParser::injectLazyOperandSpeculation):
(JSC::DFG::ByteCodeParser::getPredictionWithoutOSRExit):
(JSC::DFG::ByteCodeParser::handleVarargsInlining):
(JSC::DFG::ByteCodeParser::parseBlock):
* Source/JavaScriptCore/dfg/DFGPredictionInjectionPhase.cpp:
(JSC::DFG::PredictionInjectionPhase::run):
* Source/JavaScriptCore/jit/BaselineJITPlan.cpp:
(JSC::BaselineJITPlan::compileInThreadImpl):
* Source/JavaScriptCore/profiler/ProfilerBytecodeSequence.cpp:
(JSC::Profiler::BytecodeSequence::BytecodeSequence):

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



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

Reply via email to