Commit 8afef876 authored by whesse@chromium.org's avatar whesse@chromium.org

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
parent 94ae0087
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment