Handled return-value of SetElement in some cases, or avoided it in other.
authorlrn@chromium.org <lrn@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 3 Mar 2011 10:16:22 +0000 (10:16 +0000)
committerlrn@chromium.org <lrn@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 3 Mar 2011 10:16:22 +0000 (10:16 +0000)
commit8fddb2a664326630d2c786828c8215c9df01a68c
tree4c110c8415925de630a630ad977e27882ff7e57f
parente3c95a645f34aa2dce6f034356f99d65912af53d
Handled return-value of SetElement in some cases, or avoided it in other.

SetElement can cause an exception to be thrown. If its return value
isn't checked, this exception might not be handled at the correct time.
In some cases, it's a matter of returning Exception::Failure() from
a runtime function.
In other cases, code using SetElement on a JSArray has been changed
to setting directly on a FixedArray and only creating the JSArray
at the end.

Review URL: http://codereview.chromium.org/6588130

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@7039 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/jsregexp.cc
src/objects.cc
src/objects.h
src/parser.cc
src/runtime.cc