Index: src/full-codegen.cc |
diff --git a/src/full-codegen.cc b/src/full-codegen.cc |
index 5c5ba6b2566e8d4598b8c3ac253829e00b42d105..e72ac5374bd9e8315a25b6a1249261e049e4a0a2 100644 |
--- a/src/full-codegen.cc |
+++ b/src/full-codegen.cc |
@@ -1073,7 +1073,7 @@ void FullCodeGenerator::VisitDoWhileStatement(DoWhileStatement* stmt) { |
// Check stack before looping. |
PrepareForBailoutForId(stmt->BackEdgeId(), NO_REGISTERS); |
__ bind(&stack_check); |
- EmitStackCheck(stmt); |
+ EmitStackCheck(stmt, &body); |
__ jmp(&body); |
PrepareForBailoutForId(stmt->ExitId(), NO_REGISTERS); |
@@ -1102,7 +1102,7 @@ void FullCodeGenerator::VisitWhileStatement(WhileStatement* stmt) { |
SetStatementPosition(stmt); |
// Check stack before looping. |
- EmitStackCheck(stmt); |
+ EmitStackCheck(stmt, &body); |
__ bind(&test); |
VisitForControl(stmt->cond(), |
@@ -1145,7 +1145,7 @@ void FullCodeGenerator::VisitForStatement(ForStatement* stmt) { |
SetStatementPosition(stmt); |
// Check stack before looping. |
- EmitStackCheck(stmt); |
+ EmitStackCheck(stmt, &body); |
__ bind(&test); |
if (stmt->cond() != NULL) { |