v8/test
wingo@igalia.com 418ddc800a Allocate generator result objects before unwinding try handlers
When a generator suspends, it saves its state out to the heap and
unwinds try handlers but doesn't pop anything off the stack.  Instead it
relies on no GC happening between the suspend and the return from the
generator.  However this was not the case: boxing the result object
could cause GC, which would try to traverse the stack but would
misinterpret words from unwound try handlers as heap objects.

This CL changes to allocate the result objects before the suspend.  It
also removes the generators-iteration skip introduced in r15065.

R=mstarzinger@chromium.org
TEST=mjsunit/harmony/generators-iteration
BUG=

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15079 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2013-06-12 11:02:51 +00:00
..
cctest Unify processing of weak lists in heap.cc 2013-06-12 09:31:39 +00:00
message Change 'Parse error' to three more informative messages. 2013-04-26 14:26:54 +00:00
mjsunit Allocate generator result objects before unwinding try handlers 2013-06-12 11:02:51 +00:00
mozilla Remove SCons related files 2013-04-18 11:01:14 +00:00
preparser Remove SCons related files 2013-04-18 11:01:14 +00:00
test262 Fix bogus arguments length check in StringLocaleCompare. 2013-05-10 13:50:10 +00:00