Fix problem in r4998. Initialize target of break and continue in fast smi loop on X64.

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5001 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
whesse@chromium.org 2010-07-01 16:00:51 +00:00
parent 94ae008739
commit 8afef876dd

View File

@ -1645,6 +1645,9 @@ void CodeGenerator::GenerateFastSmiLoop(ForStatement* node) {
Visit(node->init());
JumpTarget loop(JumpTarget::BIDIRECTIONAL);
// Set type and stack height of BreakTargets.
node->continue_target()->set_direction(JumpTarget::FORWARD_ONLY);
node->break_target()->set_direction(JumpTarget::FORWARD_ONLY);
IncrementLoopNesting();
loop.Bind();