From 8afef876dd96c639ae778582f6b1a9ba8d284a6d Mon Sep 17 00:00:00 2001 From: "whesse@chromium.org" Date: Thu, 1 Jul 2010 16:00:51 +0000 Subject: [PATCH] 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 --- src/x64/codegen-x64.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/x64/codegen-x64.cc b/src/x64/codegen-x64.cc index e7f3a44..f3ee40c 100644 --- a/src/x64/codegen-x64.cc +++ b/src/x64/codegen-x64.cc @@ -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(); -- 2.7.4