Fix a bug in our handling of conditional expressions in test contexts.
authorkmillikin@chromium.org <kmillikin@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 8 Oct 2010 13:07:55 +0000 (13:07 +0000)
committerkmillikin@chromium.org <kmillikin@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 8 Oct 2010 13:07:55 +0000 (13:07 +0000)
commit65edae5b625e0056622c729c283878c99317d441
treea39462ec3b43de1aca2822daea7b2d3ba91a4e74
parentf5ea94da69ddbc2fccad1bebc056875e343c1cfa
Fix a bug in our handling of conditional expressions in test contexts.

In the FullCodeGenerator, we compile the true subexpression of a
conditional (ternary) expression in the inherited context of the
entire expression.  This is correct for effect and value contexts, but
not for test contexts where the context includes a possible
fall-through label.

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5607 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/full-codegen.cc
src/full-codegen.h