Index: src/mips/full-codegen-mips.cc |
diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc |
index 201742efec74a2c7e98d50c030645f794155be42..ec4a8500dce7b19fda3c6ded1463f39bb0d71dcd 100644 |
--- a/src/mips/full-codegen-mips.cc |
+++ b/src/mips/full-codegen-mips.cc |
@@ -1,4 +1,4 @@ |
-// Copyright 2011 the V8 project authors. All rights reserved. |
+// Copyright 2012 the V8 project authors. All rights reserved. |
// Redistribution and use in source and binary forms, with or without |
// modification, are permitted provided that the following conditions are |
// met: |
@@ -315,7 +315,8 @@ void FullCodeGenerator::ClearAccumulator() { |
} |
-void FullCodeGenerator::EmitStackCheck(IterationStatement* stmt) { |
+void FullCodeGenerator::EmitStackCheck(IterationStatement* stmt, |
+ Label* back_edge_target) { |
// The generated code is used in Deoptimizer::PatchStackCheckCodeAt so we need |
// to make sure it is constant. Branch may emit a skip-or-jump sequence |
// instead of the normal Branch. It seems that the "skip" part of that |
@@ -1098,7 +1099,7 @@ void FullCodeGenerator::VisitForInStatement(ForInStatement* stmt) { |
__ Addu(a0, a0, Operand(Smi::FromInt(1))); |
__ push(a0); |
- EmitStackCheck(stmt); |
+ EmitStackCheck(stmt, &loop); |
__ Branch(&loop); |
// Remove the pointers stored on the stack. |