Fixed bug in while-loops that caused an assertion to fail.
authorfschneider@chromium.org <fschneider@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 10 Nov 2009 09:57:13 +0000 (09:57 +0000)
committerfschneider@chromium.org <fschneider@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 10 Nov 2009 09:57:13 +0000 (09:57 +0000)
commit091c7a23062d4b93287a4d562aad6440816c7ec7
tree8e3709d4c8a47de525396b766fb96fc4fcefa5e3
parent95d550578c047c27d55cecd61c8ff56903645321
Fixed bug in while-loops that caused an assertion to fail.

We forgot resetting true-/false-label to NULL after evaluating the
condition expression in dowhile- and while-loops.
This change fixes this.

This causes an assertion to fail in VisitIfStatement whenever there is an
if-statement after a while-loop before. e.g. like in:

  var i=0, j=0;
  while(j<5) { j++; }
  if (i ==0 ) { j++; }

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3255 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/compiler.cc
src/fast-codegen.cc