Index: src/x64/full-codegen-x64.cc |
diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc |
index 292c7b46988bd9bc431f0b2fffdf52341f5cab25..76da35b3aa6cf38a2c5476a2e867c1b2f6c34fe6 100644 |
--- a/src/x64/full-codegen-x64.cc |
+++ b/src/x64/full-codegen-x64.cc |
@@ -317,7 +317,8 @@ void FullCodeGenerator::ClearAccumulator() { |
} |
-void FullCodeGenerator::EmitStackCheck(IterationStatement* stmt) { |
+void FullCodeGenerator::EmitStackCheck(IterationStatement* stmt, |
+ Label* back_edge_target) { |
Comment cmnt(masm_, "[ Stack check"); |
Label ok; |
__ CompareRoot(rsp, Heap::kStackLimitRootIndex); |
@@ -1071,7 +1072,7 @@ void FullCodeGenerator::VisitForInStatement(ForInStatement* stmt) { |
__ bind(loop_statement.continue_label()); |
__ SmiAddConstant(Operand(rsp, 0 * kPointerSize), Smi::FromInt(1)); |
- EmitStackCheck(stmt); |
+ EmitStackCheck(stmt, &loop); |
__ jmp(&loop); |
// Remove the pointers stored on the stack. |