Description[stubs] Simplify the non-function case of CallConstructStub.
Currently we do this dance between the CallConstructStub, the
CALL_* builtins and the %GetConstructorDelegate, %GetProxyTrap,
and %Apply runtime functions for every [[Construct]] operation on
non-function callables. This is complexity is unnecessary, and can
be simplified to work without any JS builtin. This will also make it
a lot easier to implement ES6 compliant [[Construct]] for proxies.
Also sanitize the invariant for CallConstructStub, which up until now
always restored the context itself, but that force us to always create
another copy of all arguments in case of proxies and other callables,
so we can relax that constraint by making the caller restore the context
(this only affects fullcodegen, since the optimizing compilers already
properly restore the context anyway).
R=mstarzinger@chromium.org
Committed: https://crrev.com/622fa0ea21b3517b1feaed447c87e580bafac865
Cr-Commit-Position: refs/heads/master@{#30691}
Patch Set 1 : #Patch Set 2 : Fix ia32. #
Total comments: 2
Patch Set 3 : Address Michi's comment. #
Messages
Total messages: 15 (6 generated)
|