Index: src/fast-codegen.cc |
=================================================================== |
--- src/fast-codegen.cc (revision 3073) |
+++ src/fast-codegen.cc (working copy) |
@@ -66,7 +66,34 @@ |
return offset; |
} |
+void FastCodeGenerator::SetFunctionPosition(FunctionLiteral* fun) { |
+ if (FLAG_debug_info) { |
+ CodeGenerator::RecordPositions(masm_, fun->start_position()); |
+ } |
+} |
+ |
+void FastCodeGenerator::SetReturnPosition(FunctionLiteral* fun) { |
+ if (FLAG_debug_info) { |
+ CodeGenerator::RecordPositions(masm_, fun->end_position()); |
+ } |
+} |
+ |
+ |
+void FastCodeGenerator::SetStatementPosition(Statement* stmt) { |
+ if (FLAG_debug_info) { |
+ CodeGenerator::RecordPositions(masm_, stmt->statement_pos()); |
+ } |
+} |
+ |
+ |
+void FastCodeGenerator::SetSourcePosition(int pos) { |
+ if (FLAG_debug_info && pos != RelocInfo::kNoPosition) { |
+ masm_->RecordPosition(pos); |
+ } |
+} |
+ |
+ |
void FastCodeGenerator::VisitDeclaration(Declaration* decl) { |
UNREACHABLE(); |
} |