[webkit-changes] [WebKit/WebKit] 05b9d3: [JSC] Avoid unnecessary move in FunctionCallResolv...
Tadeu Zagallo
noreply at github.com
Mon Feb 27 03:25:23 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 05b9d3d37cb2fd7b34bd0724b1e039891710825b
https://github.com/WebKit/WebKit/commit/05b9d3d37cb2fd7b34bd0724b1e039891710825b
Author: Tadeu Zagallo <tzagallo at apple.com>
Date: 2023-02-27 (Mon, 27 Feb 2023)
Changed paths:
M Source/JavaScriptCore/bytecompiler/NodesCodegen.cpp
Log Message:
-----------
[JSC] Avoid unnecessary move in FunctionCallResolveNode
https://bugs.webkit.org/show_bug.cgi?id=252912
rdar://105887432
Reviewed by Yusuke Suzuki.
When generating bytecode for FunctionCallResolveNode, if the target function is
a local variable, we don't need to move it into a new temporary unless there's
an assignment in the call arguments. E.g. we need to copy `f` for `f(f=x)`, but
not for `f(x)`.
* Source/JavaScriptCore/bytecompiler/NodesCodegen.cpp:
(JSC::FunctionCallResolveNode::emitBytecode):
Canonical link: https://commits.webkit.org/260872@main
More information about the webkit-changes
mailing list