Description[es6] Make new.target work in functions
This makes new.target work in [[Call]] and [[Construct]] of ordinary
functions.
We achieve this by introducing a new construct stub for functions that
uses the new.target variable. The construct stub pushes the original
constructor just above the receiver in the construct frame.
BUG=v8:3887
LOG=N
R=adamk@chromium.org, dslomov@chromium.org
Committed: https://crrev.com/7a63bf77eb7610afdc1a968f7660781e5160ba8d
Cr-Commit-Position: refs/heads/master@{#29358}
Patch Set 1 #Patch Set 2 : Add arrow tests #Patch Set 3 : Trying to get arm and mips working #Patch Set 4 : Fix push/pop issue on mips #Patch Set 5 : Also adjust the create memento branch #
Total comments: 5
Patch Set 6 : All working #Patch Set 7 : Cleanup #
Total comments: 1
Patch Set 8 : Fix issue with ia32 #Patch Set 9 : Add test again. It got lost in last patchset #
Messages
Total messages: 37 (8 generated)
|