Throw exception on invalid string length instead of OOM.
authoryangguo@chromium.org <yangguo@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 20 Mar 2014 10:49:33 +0000 (10:49 +0000)
committeryangguo@chromium.org <yangguo@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 20 Mar 2014 10:49:33 +0000 (10:49 +0000)
commit9ba80269ee28c86eaebdf67cf8d4c7c5ee477a19
tree8872ccd78e035a4aca59648e2fa8b962f3e79ac3
parentbfcc117f4c3555f2518761842551ba4c62119715
Throw exception on invalid string length instead of OOM.

R=bmeurer@chromium.org
BUG=349329
LOG=Y

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20112 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
19 files changed:
src/api.cc
src/factory.cc
src/func-name-inferrer.cc
src/isolate.cc
src/isolate.h
src/json-stringifier.h
src/parser.cc
src/runtime.cc
src/uri.h
test/cctest/test-strings.cc
test/mjsunit/mjsunit.status
test/mjsunit/string-oom-array-join.js [new file with mode: 0644]
test/mjsunit/string-oom-concat.js [new file with mode: 0644]
test/mjsunit/string-oom-replace-global-regexp-with-string.js [new file with mode: 0644]
test/mjsunit/string-oom-replace-regexp-global-with-function.js [new file with mode: 0644]
test/mjsunit/string-oom-slow-escape.js [new file with mode: 0644]
test/mjsunit/string-oom-slow-json-stringify.js [new file with mode: 0644]
test/mjsunit/string-oom-slow-replace-one-with-string.js [new file with mode: 0644]
test/mjsunit/string-oom-slow-to-uppercase.js [new file with mode: 0644]