JSEntryTrampoline: check for stack space before pushing arguments
authorjkummerow <jkummerow@chromium.org>
Tue, 7 Apr 2015 09:13:36 +0000 (02:13 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 7 Apr 2015 09:13:44 +0000 (09:13 +0000)
commit146598f44a1efd0f942745abfd6c08a073972c01
treeb8d22b64e5427f832f336ddd8a6153c6baabfa40
parent13d6de49864c89318e8f877d4be55171c6e2d62a
JSEntryTrampoline: check for stack space before pushing arguments

Optimistically pushing a lot of arguments can run into the stack limit of the process, at least on operating systems where this limit is close to the limit that V8 sets for itself.

BUG=chromium:469768
LOG=y

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

Cr-Commit-Position: refs/heads/master@{#27614}
src/arm/builtins-arm.cc
src/arm64/builtins-arm64.cc
src/ia32/builtins-ia32.cc
src/x64/builtins-x64.cc
test/mjsunit/regress/regress-crbug-469768.js [new file with mode: 0644]