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

Unified Diff: src/compiler.cc

Issue 21041: Refactor code for determining line position in a source file.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 11 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
« no previous file with comments | « src/bootstrapper.cc ('k') | src/messages.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.cc
===================================================================
--- src/compiler.cc (revision 1220)
+++ src/compiler.cc (working copy)
@@ -304,12 +304,12 @@
// the line number is not for free.
if (Logger::is_enabled()) {
if (script->name()->IsString()) {
- int lineNum = script->GetLineNumber(start_position);
- if (lineNum > 0) {
- lineNum += script->line_offset()->value() + 1;
+ int line_num = script->GetLineNumber(start_position);
+ if (line_num > 0) {
+ line_num += script->line_offset()->value() + 1;
}
LOG(CodeCreateEvent("LazyCompile", *code, *lit->name(),
- String::cast(script->name()), lineNum));
+ String::cast(script->name()), line_num));
} else {
LOG(CodeCreateEvent("LazyCompile", *code, *lit->name()));
}
« no previous file with comments | « src/bootstrapper.cc ('k') | src/messages.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698