Index: src/interpreter/bytecode-generator.cc |
diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc |
index c7264eac851dcbc2a30d71c15ffe95630ab120a1..0137fd2599d860213bfaaeaf0f19c0dbabf65d20 100644 |
--- a/src/interpreter/bytecode-generator.cc |
+++ b/src/interpreter/bytecode-generator.cc |
@@ -630,7 +630,7 @@ void BytecodeGenerator::MakeBytecodeBody() { |
VisitDeclarations(scope()->declarations()); |
// Perform a stack-check before the body. |
- builder()->StackCheck(); |
+ builder()->StackCheck(info()->literal()->start_position()); |
// Visit statements in the function body. |
VisitStatements(info()->literal()->body()); |
@@ -1028,7 +1028,7 @@ void BytecodeGenerator::VisitCaseClause(CaseClause* clause) { |
void BytecodeGenerator::VisitIterationBody(IterationStatement* stmt, |
LoopBuilder* loop_builder) { |
ControlScopeForIteration execution_control(this, stmt, loop_builder); |
- builder()->StackCheck(); |
+ builder()->StackCheck(stmt->position()); |
Visit(stmt->body()); |
} |