Description[builtins] Unify the various versions of [[Call]] with a Call builtin.
The new Call and CallFunction builtins supersede the current
CallFunctionStub (and CallIC magic) and will be the single bottleneck
for all calling, including the currently special Function.prototype.call
and Function.prototype.apply builtins, which had handwritten (and
not fully compliant) versions of CallFunctionStub, and also the
CallIC(s), which where also slightly different.
This also reduces the overhead for API function calls, which is still
unnecessary high, but let's do that step-by-step.
This also fixes a bunch of cases where the implicit ToObject for
sloppy receivers was done in the wrong context (in the caller
context instead of the callee context), which basically meant
that we allowed cross context access to %ObjectPrototype%.
MIPS and MIPS64 ports contributed by akos.palfi@imgtec.com.
R=mstarzinger@chromium.org, jarin@chromium.org, mvstanton@chromium.org
CQ_INCLUDE_TRYBOTS=tryserver.v8:v8_linux_layout_dbg,v8_linux_nosnap_dbg
BUG=v8:4413
LOG=n
Committed: https://crrev.com/ef268a83be4dead004047c25b702319ea4be7277
Cr-Commit-Position: refs/heads/master@{#30627}
Committed: https://crrev.com/ccbb4ff00f1d8f32fd9227cd7aba1723791e5744
Cr-Commit-Position: refs/heads/master@{#30629}
Patch Set 1 #Patch Set 2 : Cleanup and refactoring the CallCallableStub. #Patch Set 3 : Turn the stub into builtin(s). Some cleanup and TODOs. #Patch Set 4 : Fix FrameScope for API functions. #
Total comments: 2
Patch Set 5 : ia32 port. #
Total comments: 2
Patch Set 6 : arm port. #Patch Set 7 : arm64 port. #Patch Set 8 : REBASE #Patch Set 9 : Renaming to Call/CallFunction. Add comments. #Patch Set 10 : Merge MIPS/MIPS64 ports from akos.palfi@imgtec.com. #Patch Set 11 : AssertFunction was wrong #
Created: 5 years, 3 months ago
Messages
Total messages: 55 (23 generated)
|