Lines Matching refs:code_pos
13391 int Script::GetColumnNumber(Handle<Script> script, int code_pos) { in GetColumnNumber() argument
13392 int line_number = GetLineNumber(script, code_pos); in GetColumnNumber()
13398 if (line_number == 0) return code_pos + script->column_offset(); in GetColumnNumber()
13401 return code_pos - (prev_line_end_pos + 1); in GetColumnNumber()
13405 int Script::GetLineNumberWithArray(int code_pos) { in GetLineNumberWithArray() argument
13412 if ((Smi::cast(line_ends_array->get(0)))->value() >= code_pos) { in GetLineNumberWithArray()
13419 if ((Smi::cast(line_ends_array->get(left + half)))->value() > code_pos) { in GetLineNumberWithArray()
13429 int Script::GetLineNumber(Handle<Script> script, int code_pos) { in GetLineNumber() argument
13431 return script->GetLineNumberWithArray(code_pos); in GetLineNumber()
13435 int Script::GetLineNumber(int code_pos) { in GetLineNumber() argument
13437 if (!line_ends()->IsUndefined()) return GetLineNumberWithArray(code_pos); in GetLineNumber()
13446 if (pos == code_pos) break; in GetLineNumber()