Fix bug restoring of JS entry sp so to fix profiler-related valgrind issues.
authorfschneider@chromium.org <fschneider@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 17 May 2011 11:11:12 +0000 (11:11 +0000)
committerfschneider@chromium.org <fschneider@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 17 May 2011 11:11:12 +0000 (11:11 +0000)
commit7d446f7f4c5d27eb4c78d374e5ddad76301fd95b
treec1bbb835c1e53abad54a0daf25e7ec7fd56e4b9f
parent9bddc8e0d8a16ac88b0183109a738ebe891bec6b
Fix bug restoring of JS entry sp so to fix profiler-related valgrind issues.

The profiler did not correctly identify when there was a JS frame
on the stack after an exception was thrown.

I also refactored the code to use PopTryHandler macro-instructions on all platforms

BUG=73722
TEST=No more valgrind errors related to v8::internal::StackFrameIterator.
Review URL: http://codereview.chromium.org/7019010

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@7910 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/arm/code-stubs-arm.cc
src/frames.h
src/ia32/code-stubs-ia32.cc
src/x64/code-stubs-x64.cc