Description[turbofan] Avoid going through ArgumentsAdaptorTrampoline for CSA/C++ builtins.
When we call from TurboFan to a CSA or C++ builtin, we can avoid the
ArgumentsAdaptorFrame in case of a parameter arity mismatch by just
filling up missing arguments with undefined or removing additional
arguments on the call site already. This is safe for CSA/C++ builtins,
since those that care about variable arguments are marked with the
kDontAdaptArgumentsSentinel.
R=danno@chromium.org
BUG=v8:5267
Review-Url: https://codereview.chromium.org/2684963002
Cr-Commit-Position: refs/heads/master@{#44218}
Committed: https://chromium.googlesource.com/v8/v8/+/9df5674bd53b4a262e72f45263df9e886842c269
Patch Set 1 #Patch Set 2 : Obviously do this only for native functions. #Patch Set 3 : Exclude JavaScript builtins. #Messages
Total messages: 22 (16 generated)
|