Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 55b569c1a9f9b2891c3e529c61c2f94f97995109
      
https://github.com/WebKit/WebKit/commit/55b569c1a9f9b2891c3e529c61c2f94f97995109
  Author: Yusuke Suzuki <[email protected]>
  Date:   2024-09-05 (Thu, 05 Sep 2024)

  Changed paths:
    M Source/JavaScriptCore/bytecode/InstructionStream.h
    M Source/JavaScriptCore/runtime/CachedTypes.cpp
    M Source/WTF/wtf/DebugHeap.h
    M Source/WTF/wtf/FastMalloc.h
    M Source/WTF/wtf/SystemMalloc.h
    M Source/WTF/wtf/Vector.h

  Log Message:
  -----------
  [WTF] Add Malloc::nextCapacity feature and leverage it in 
InstructionStreamBuffer
https://bugs.webkit.org/show_bug.cgi?id=279212
rdar://135358535

Reviewed by Keith Miller.

InstructionStreamBuffer gets shrinked at last. So increasing the size rapidly 
does not matter. And we know that this is a bottleneck in
BytecodeGenerator. This patch adds Malloc::nextCapacity which controls the next 
capacity based on the curent capacity. And we use customized
function for InstructionStreamBuffer.

* Source/JavaScriptCore/bytecode/InstructionStream.h:
* Source/JavaScriptCore/runtime/CachedTypes.cpp:
(JSC::CachedInstructionStream::decode const):
* Source/WTF/wtf/DebugHeap.h:
* Source/WTF/wtf/FastMalloc.h:
(WTF::FastMalloc::nextCapacity):
(WTF::FastCompactMalloc::nextCapacity):
* Source/WTF/wtf/SystemMalloc.h:
(WTF::SystemMalloc::nextCapacity):
* Source/WTF/wtf/Vector.h:
(WTF::Malloc>::expandCapacity):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to