Reviewers: Jakob,
Description:
Omit stack check in non-looping loops.
Please review this at https://codereview.chromium.org/285333002/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+1, -0 lines):
M src/hydrogen.cc
Index: src/hydrogen.cc
diff --git a/src/hydrogen.cc b/src/hydrogen.cc
index
b232a5e43917b0746ac10baa65b18e8c007fe9e1..c5d601ca2e3dde6b2f00a3426077a54d16e1e355
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 {
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.