Commit 48795506 authored by zhengxing.li's avatar zhengxing.li Committed by Commit bot

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

  port d2f78c6b (r32476)

  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.

BUG=

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

Cr-Commit-Position: refs/heads/master@{#32489}
parent 54a9d349
......@@ -4666,6 +4666,9 @@ void ArrayConstructorStub::Generate(MacroAssembler* masm) {
Label subclassing;
// Enter the context of the Array function.
__ mov(esi, FieldOperand(edi, JSFunction::kContextOffset));
__ cmp(edx, edi);
__ j(not_equal, &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