Index: src/full-codegen.cc |
diff --git a/src/full-codegen.cc b/src/full-codegen.cc |
index 2846d2ba14c37cae14a2732ab79d6bbaaae77735..3a5a6301a8276a409d9514921585a48a1d027b6a 100644 |
--- a/src/full-codegen.cc |
+++ b/src/full-codegen.cc |
@@ -805,7 +805,7 @@ void FullCodeGenerator::SetReturnPosition(FunctionLiteral* fun) { |
void FullCodeGenerator::SetStatementPosition(Statement* stmt) { |
- if (!isolate()->debugger()->IsDebuggerActive()) { |
+ if (!info_->is_debug()) { |
CodeGenerator::RecordPositions(masm_, stmt->position()); |
} else { |
// Check if the statement will be breakable without adding a debug break |
@@ -827,7 +827,7 @@ void FullCodeGenerator::SetStatementPosition(Statement* stmt) { |
void FullCodeGenerator::SetExpressionPosition(Expression* expr) { |
- if (!isolate()->debugger()->IsDebuggerActive()) { |
+ if (!info_->is_debug()) { |
CodeGenerator::RecordPositions(masm_, expr->position()); |
} else { |
// Check if the expression will be breakable without adding a debug break |