Index: src/handles.cc |
=================================================================== |
--- src/handles.cc (revision 15486) |
+++ src/handles.cc (working copy) |
@@ -499,6 +499,7 @@ |
return right + script->line_offset()->value(); |
} |
+ |
// Convert code position into column number. |
int GetScriptColumnNumber(Handle<Script> script, int code_pos) { |
int line_number = GetScriptLineNumber(script, code_pos); |
@@ -513,6 +514,7 @@ |
return code_pos - (prev_line_end_pos + 1); |
} |
+ |
int GetScriptLineNumberSafe(Handle<Script> script, int code_pos) { |
DisallowHeapAllocation no_allocation; |
if (!script->line_ends()->IsUndefined()) { |