Repository navigation
Commit e120f36
committed
[JSC] FTL direct calls should not link to the arity-checking entrypoint when they pass enough arguments
https://bugs.webkit.org/show_bug.cgi?id=327759
rdar://190174711
Reviewed by Sosuke Suzuki.
setMaxArgumentCountIncludingThis is set in FTL only when
`numAllocatedArgs > numPassedArgs` is true, but it is not the right use
since setMaxArgumentCountIncludingThis is just telling how many
arguments we passed to this CallLinkInfo. Right now, when the condition
is false, it is left 0, and always using arity-fixup calls.
As the same to DFG, we should just always set numAllocatedArgs as we
already allocated this number of args.
* Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp:
(JSC::FTL::DFG::LowerDFGToB3::compileCompareStrictEq):
Canonical link: https://commits.webkit.org/323924@main1 parent 49740e9 commit e120f36
1 file changed
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14218 | 14218 | | |
14219 | 14219 | | |
14220 | 14220 | | |
14221 | | - | |
14222 | | - | |
| 14221 | + | |
14223 | 14222 | | |
14224 | 14223 | | |
14225 | 14224 | | |
| |||
14263 | 14262 | | |
14264 | 14263 | | |
14265 | 14264 | | |
14266 | | - | |
14267 | | - | |
14268 | | - | |
| 14265 | + | |
14269 | 14266 | | |
14270 | 14267 | | |
14271 | 14268 | | |
| |||
0 commit comments