Index: src/full-codegen/full-codegen.cc |
diff --git a/src/full-codegen/full-codegen.cc b/src/full-codegen/full-codegen.cc |
index ab620954e9f1e2443f72ee54b4d4ed59d1f0798e..03140c9b0e87d545ed18ab84623ba7e8e879f0d3 100644 |
--- a/src/full-codegen/full-codegen.cc |
+++ b/src/full-codegen/full-codegen.cc |
@@ -615,15 +615,14 @@ void FullCodeGenerator::EmitHasProperty() { |
RestoreContext(); |
} |
-bool RecordStatementPosition(MacroAssembler* masm, int pos) { |
- if (pos == RelocInfo::kNoPosition) return false; |
- return masm->positions_recorder()->RecordStatementPosition(pos); |
+void RecordStatementPosition(MacroAssembler* masm, int pos) { |
+ if (pos == RelocInfo::kNoPosition) return; |
+ masm->positions_recorder()->RecordStatementPosition(pos); |
} |
- |
-bool RecordPosition(MacroAssembler* masm, int pos) { |
- if (pos == RelocInfo::kNoPosition) return false; |
- return masm->positions_recorder()->RecordPosition(pos); |
+void RecordPosition(MacroAssembler* masm, int pos) { |
+ if (pos == RelocInfo::kNoPosition) return; |
+ masm->positions_recorder()->RecordPosition(pos); |
} |
@@ -647,8 +646,8 @@ void FullCodeGenerator::SetReturnPosition(FunctionLiteral* fun) { |
void FullCodeGenerator::SetStatementPosition( |
Statement* stmt, FullCodeGenerator::InsertBreak insert_break) { |
if (stmt->position() == RelocInfo::kNoPosition) return; |
- bool recorded = RecordStatementPosition(masm_, stmt->position()); |
- if (recorded && insert_break == INSERT_BREAK && info_->is_debug() && |
+ RecordStatementPosition(masm_, stmt->position()); |
+ if (insert_break == INSERT_BREAK && info_->is_debug() && |
!stmt->IsDebuggerStatement()) { |
DebugCodegen::GenerateSlot(masm_, RelocInfo::DEBUG_BREAK_SLOT_AT_POSITION); |
} |
@@ -662,8 +661,8 @@ void FullCodeGenerator::SetExpressionPosition(Expression* expr) { |
void FullCodeGenerator::SetExpressionAsStatementPosition(Expression* expr) { |
if (expr->position() == RelocInfo::kNoPosition) return; |
- bool recorded = RecordStatementPosition(masm_, expr->position()); |
- if (recorded && info_->is_debug()) { |
+ RecordStatementPosition(masm_, expr->position()); |
+ if (info_->is_debug()) { |
DebugCodegen::GenerateSlot(masm_, RelocInfo::DEBUG_BREAK_SLOT_AT_POSITION); |
} |
} |