From 53139a0a9b85f6c5bc806784bd940e3f7abfb5b3 Mon Sep 17 00:00:00 2001 From: "svenpanne@chromium.org" Date: Thu, 15 May 2014 09:25:03 +0000 Subject: [PATCH] Omit stack check in non-looping loops. R=jkummerow@chromium.org Review URL: https://codereview.chromium.org/285333002 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21322 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/hydrogen.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hydrogen.cc b/src/hydrogen.cc index b232a5e..c5d601c 100644 --- a/src/hydrogen.cc +++ b/src/hydrogen.cc @@ -4612,6 +4612,7 @@ void HOptimizedGraphBuilder::VisitDoWhileStatement(DoWhileStatement* stmt) { set_current_block(body_exit); loop_successor = graph()->CreateBasicBlock(); if (stmt->cond()->ToBooleanIsFalse()) { + loop_entry->loop_information()->stack_check()->Eliminate(); Goto(loop_successor); body_exit = NULL; } else { -- 2.7.4