Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 55e02ed439a110cfada886ab9ee81b28c5a52967
      
https://github.com/WebKit/WebKit/commit/55e02ed439a110cfada886ab9ee81b28c5a52967
  Author: Yusuke Suzuki <ysuz...@apple.com>
  Date:   2025-08-27 (Wed, 27 Aug 2025)

  Changed paths:
    M Source/JavaScriptCore/wasm/WasmFormat.cpp
    M Source/JavaScriptCore/wasm/WasmFormat.h
    M Source/JavaScriptCore/wasm/WasmModuleInformation.h
    M Source/JavaScriptCore/wasm/WasmSectionParser.cpp
    M Source/JavaScriptCore/wasm/js/JSWebAssemblyInstance.cpp
    M Source/JavaScriptCore/wasm/js/WebAssemblyModuleRecord.cpp

  Log Message:
  -----------
  [JSC] Copy wasm section content to extracted data instead of calling 
parseUInt8 byte by byte
https://bugs.webkit.org/show_bug.cgi?id=297988
rdar://159308336

Reviewed by Yijia Huang.

Profiler pointed out that significant amount of time is used for
CustomSection and Segment copying. But they are just copying
byte-by-byte. We should just check the range and use memcpySpan.

* Source/JavaScriptCore/wasm/WasmFormat.cpp:
(JSC::Wasm::Segment::tryCreate):
(JSC::Wasm::Segment::create): Deleted.
(JSC::Wasm::Segment::destroy): Deleted.
* Source/JavaScriptCore/wasm/WasmFormat.h:
(JSC::Wasm::Segment::byte): Deleted.
(JSC::Wasm::Segment::isActive const): Deleted.
(JSC::Wasm::Segment::isPassive const): Deleted.
* Source/JavaScriptCore/wasm/WasmModuleInformation.h:
* Source/JavaScriptCore/wasm/WasmSectionParser.cpp:
(JSC::Wasm::SectionParser::parseData):
(JSC::Wasm::SectionParser::parseCustom):
* Source/JavaScriptCore/wasm/js/JSWebAssemblyInstance.cpp:
(JSC::JSWebAssemblyInstance::memoryInit):
(JSC::JSWebAssemblyInstance::copyDataSegment):
* Source/JavaScriptCore/wasm/js/WebAssemblyModuleRecord.cpp:
(JSC::WebAssemblyModuleRecord::evaluate):

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



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

Reply via email to