[webkit-changes] [WebKit/WebKit] 6299ee: [JSC] Update RegExp tracing code

Michael Saboff noreply at github.com
Wed Mar 27 05:21:11 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6299ee9f0fddf6a9e9d12b0b59ee9ba5abb531f3
      https://github.com/WebKit/WebKit/commit/6299ee9f0fddf6a9e9d12b0b59ee9ba5abb531f3
  Author: Michael Saboff <msaboff at apple.com>
  Date:   2024-03-27 (Wed, 27 Mar 2024)

  Changed paths:
    M Source/JavaScriptCore/jsc.cpp
    M Source/JavaScriptCore/runtime/RegExp.cpp
    M Source/JavaScriptCore/runtime/RegExp.h
    M Source/JavaScriptCore/runtime/VM.cpp
    M Source/JavaScriptCore/runtime/VM.h

  Log Message:
  -----------
  [JSC] Update RegExp tracing code
https://bugs.webkit.org/show_bug.cgi?id=271625
rdar://125334427

Reviewed by Yusuke Suzuki.

Moved the tracing output header generation from VM.cpp to RegExp.cpp to is same place as where the code to format the trace entries.
Parameterized the formatting code to use a width value.  Fixed the dumping of trace data to work in the jsc shell when
processing modules.  Eliminated use of snprintf() in favor of makeString() calls.  Some other minor changes made as well.

This code is build time enabled through ENABLE_REGEXP_TRACING, which is by default turned off.

* Source/JavaScriptCore/jsc.cpp:
(runJSC):
* Source/JavaScriptCore/runtime/RegExp.cpp:
(JSC::RegExp::printTraceHeader):
(JSC::RegExp::printTraceData):
* Source/JavaScriptCore/runtime/RegExp.h:
* Source/JavaScriptCore/runtime/VM.cpp:
(JSC::VM::dumpRegExpTrace):
* Source/JavaScriptCore/runtime/VM.h:

Canonical link: https://commits.webkit.org/276730@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