Index: src/codegen.cc |
=================================================================== |
--- src/codegen.cc (revision 1668) |
+++ src/codegen.cc (working copy) |
@@ -566,12 +566,23 @@ |
} |
+void CodeGenerator::CodeForReturnPosition(FunctionLiteral* fun) { |
+ if (FLAG_debug_info) { |
+ int pos = fun->start_position(); |
+ if (pos != RelocInfo::kNoPosition) { |
+ masm()->RecordStatementPosition(pos); |
+ masm()->RecordPosition(pos); |
+ } |
+ } |
+} |
+ |
+ |
void CodeGenerator::CodeForStatementPosition(Node* node) { |
if (FLAG_debug_info) { |
int pos = node->statement_pos(); |
if (pos != RelocInfo::kNoPosition) { |
masm()->RecordStatementPosition(pos); |
- CodeForSourcePosition(pos); |
+ masm()->RecordPosition(pos); |
} |
} |
} |