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

Unified Diff: src/compiler.cc

Issue 43020: Move InitLineEnds and GetLineNumber to handles.cc to avoid... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 9 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/accessors.cc ('k') | src/handles.h » ('j') | src/handles.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.cc
===================================================================
--- src/compiler.cc (revision 1480)
+++ src/compiler.cc (working copy)
@@ -317,7 +317,7 @@
// the line number is not for free.
if (Logger::is_enabled() || OProfileAgent::is_enabled()) {
if (script->name()->IsString()) {
- int line_num = script->GetLineNumber(start_position);
+ int line_num = GetScriptLineNumber(script, start_position);
if (line_num > 0) {
line_num += script->line_offset()->value() + 1;
}
« no previous file with comments | « src/accessors.cc ('k') | src/handles.h » ('j') | src/handles.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698