Check the return value of API calls on ia32 and x64.
authorjkummerow@chromium.org <jkummerow@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 5 Sep 2012 16:08:13 +0000 (16:08 +0000)
committerjkummerow@chromium.org <jkummerow@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 5 Sep 2012 16:08:13 +0000 (16:08 +0000)
commit5330f5b24f825dfa84cd19cd240a9e9287374828
tree57b273b0d1eb433c5513642cf38e7dd8f6c31abd
parentfe5ce826c8f573800c034f3c87c7e28a07e7d476
Check the return value of API calls on ia32 and x64.

This implies that the return value of native getters is checked. The nice part
is that one can even see the name of the property in question in the abort
output when the check failed.

Under some circumstances even the return value of interceptors gets checked, but
I'm not 100% sure about this, because the interceptor code is basically tuned to
death.

The change seems to have very low overhead, so it might be feasible to keep this
check enabled unconditionally.

Review URL: https://chromiumcodereview.appspot.com/10918071
Patch from Sven Panne <svenpanne@chromium.org>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12446 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/ia32/macro-assembler-ia32.cc
src/objects.cc
src/x64/macro-assembler-x64.cc