DescriptionMIPS: [es6] Correct Function.prototype.apply, Reflect.construct and Reflect.apply.
Port for https://codereview.chromium.org/1523753002/
Original commit message:
Introduce a new Apply builtin that forms a correct and optimizable
foundation for the Function.prototype.apply, Reflect.construct and
Reflect.apply builtins (which properly does the PrepareForTailCall
as required by the ES2015 spec).
The new Apply builtin avoids going to the runtime if it is safe to
just access the backing store elements of the argArray, i.e. if you
pass a JSArray with no holes, or an unmapped, unmodified sloppy or
strict arguments object.
BUG=v8:4413, v8:4430
LOG=n
patch from issue 1530713003 at patchset 1 (http://crrev.com/1530713003#ps1)
Patch Set 1 : Original port from Balázs #Patch Set 2 : minor fixes #
Messages
Total messages: 4 (2 generated)
|