Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b8c00b2367af14febdae26c030af6b2f520ec5cb
      
https://github.com/WebKit/WebKit/commit/b8c00b2367af14febdae26c030af6b2f520ec5cb
  Author: Yusuke Suzuki <[email protected]>
  Date:   2025-06-17 (Tue, 17 Jun 2025)

  Changed paths:
    M Source/JavaScriptCore/debugger/DebuggerCallFrame.cpp
    M Source/JavaScriptCore/interpreter/Interpreter.cpp
    M Source/JavaScriptCore/runtime/JSCallee.h

  Log Message:
  -----------
  [JSC] Further optimize eval
https://bugs.webkit.org/show_bug.cgi?id=294592
rdar://153603343

Reviewed by Yijia Huang.

Direct call to `eval` can happen only form JS code execution in normal
execution. Thus we can avoid some unnecessary setup for executeEval.
This patch removes super costly operations in executeEval which is not
necessary for direct call to `eval`. We also clear scope of eval callee
instead of setting a global scope.

* Source/JavaScriptCore/debugger/DebuggerCallFrame.cpp:
(JSC::DebuggerCallFrame::evaluateWithScopeExtension):
* Source/JavaScriptCore/interpreter/Interpreter.cpp:
(JSC::Interpreter::executeEval):
* Source/JavaScriptCore/runtime/JSCallee.h:
(JSC::JSCallee::setScope):

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