Description[builtins] Fix crash on stack overflow in CheckSpreadAndPushToStack.
For x64, ia32 and x87 we would pop the return address before the stack
overflow check. This meant the stack couldn't be unwound properly if
it was going to overflow. This CL moves the pop of the return address
to after the stack overflow check.
Also adds a regression test to check that a RangeError is thrown.
BUG=689016
Review-Url: https://codereview.chromium.org/2681643004
Cr-Commit-Position: refs/heads/master@{#42984}
Committed: https://chromium.googlesource.com/v8/v8/+/f4739ea863108016153941c29db4bf4568cbd734
Patch Set 1 #Patch Set 2 : Also fix for x87 port #
Messages
Total messages: 11 (7 generated)
|