Correctly check for stack limit in JSON.stringify.
authoryangguo@chromium.org <yangguo@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 25 Oct 2012 12:18:24 +0000 (12:18 +0000)
committeryangguo@chromium.org <yangguo@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 25 Oct 2012 12:18:24 +0000 (12:18 +0000)
commite40b33d39edc41366891b3c93d58514fc229d829
tree09c6a23c50d3c4cb58a2e8d487197ff31a0446b5
parentb55988625dfaee4b9fd264b265abaeaeb04e2bdb
Correctly check for stack limit in JSON.stringify.

Changes include:
 - inline functions in a way as not to waste stack space.
 - reset StackReserveSize to the value prior to r12808.
 - check stack overflow dynamically.

R=ulan@chromium.org
BUG=

Review URL: https://chromiumcodereview.appspot.com/11271021

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12814 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
build/common.gypi
src/json-stringifier.h
test/mjsunit/json-recursive.js