Commit ec5590dc authored by mbrandy's avatar mbrandy Committed by Commit bot

PPC: Array constructor failed to enter it's function execution context.

Port d2f78c6b

Original commit message:
    This becomes visible if an exception is thrown by the constructor.
    We do this on "new Array(3.5)", throwing a RangeError.

R=mvstanton@chromium.org, joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com
BUG=

Review URL: https://codereview.chromium.org/1484423003

Cr-Commit-Position: refs/heads/master@{#32480}
parent 2d0e9abe
......@@ -5013,6 +5013,9 @@ void ArrayConstructorStub::Generate(MacroAssembler* masm) {
__ AssertUndefinedOrAllocationSite(r5, r7);
}
// Enter the context of the Array function.
__ LoadP(cp, FieldMemOperand(r4, JSFunction::kContextOffset));
Label subclassing;
__ cmp(r6, r4);
__ bne(&subclassing);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment