Index: src/arm/lithium-arm.cc |
=================================================================== |
--- src/arm/lithium-arm.cc (revision 10131) |
+++ src/arm/lithium-arm.cc (working copy) |
@@ -2202,7 +2202,12 @@ |
LInstruction* LChunkBuilder::DoStackCheck(HStackCheck* instr) { |
- return AssignEnvironment(AssignPointerMap(new LStackCheck)); |
+ if (instr->is_function_entry()) { |
+ return MarkAsCall(new LStackCheck, instr); |
+ } else { |
+ ASSERT(instr->is_backwards_branch()); |
+ return AssignEnvironment(AssignPointerMap(new LStackCheck)); |
+ } |
} |