Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Unified Diff: src/codegen.cc

Issue 2883042: Breakpoint position should be inside function body. (Closed)
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/codegen.cc
diff --git a/src/codegen.cc b/src/codegen.cc
index 84b73a4ecb8620b0ceaaf69b1db70bc35b5dfcb6..444698c536c330dd492f2cdb38adf9990edd3b55 100644
--- a/src/codegen.cc
+++ b/src/codegen.cc
@@ -433,7 +433,7 @@ void CodeGenerator::CodeForFunctionPosition(FunctionLiteral* fun) {
void CodeGenerator::CodeForReturnPosition(FunctionLiteral* fun) {
- if (FLAG_debug_info) RecordPositions(masm(), fun->end_position(), false);
+ if (FLAG_debug_info) RecordPositions(masm(), fun->end_position() - 1, false);
}
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/debug.cc » ('j') | src/full-codegen.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698