Lines Matching defs:position

101 #include "src/codegen/source-position-table.h"
4802 int position = script->eval_from_position();
4803 if (position < 0) {
4804 // Due to laziness, the position may not have been translated from code
4806 // translate and set the position.
4808 position = 0;
4813 position = shared->abstract_code(isolate).SourcePosition(-position);
4815 DCHECK_GE(position, 0);
4816 script->set_eval_from_position(position);
4818 return position;
4849 bool Script::GetPositionInfo(Handle<Script> script, int position,
4858 return script->GetPositionInfo(position, info, offset_flag);
4889 bool GetPositionInfoSlowImpl(const base::Vector<Char>& source, int position,
4891 if (position < 0) {
4892 position = 0;
4899 if (position <= (line_end - begin)) {
4901 info->column = static_cast<int>((begin + position) - line_begin);
4911 bool GetPositionInfoSlow(const Script script, int position,
4920 ? GetPositionInfoSlowImpl(flat.ToOneByteVector(), position, info)
4921 : GetPositionInfoSlowImpl(flat.ToUC16Vector(), position, info);
4926 bool Script::GetPositionInfo(int position, PositionInfo* info,
4933 DCHECK_LE(0, position);
4938 info->column = position;
4947 if (!GetPositionInfoSlow(*this, position, no_gc, info)) {
4959 if (position < 0) {
4960 position = 0;
4961 } else if (position > Smi::ToInt(ends.get(ends_len - 1))) {
4966 if (Smi::ToInt(ends.get(0)) >= position) {
4969 info->column = position;
4977 if (position > Smi::ToInt(ends.get(mid))) {
4979 } else if (position <= Smi::ToInt(ends.get(mid - 1))) {
4986 DCHECK(Smi::ToInt(ends.get(info->line)) >= position &&
4987 Smi::ToInt(ends.get(info->line - 1)) < position);
4989 info->column = position - info->line_start;
4992 // Line end is position of the linebreak character.
5081 // start position in shared_function_info_table.
5824 // Put the current element into the correct position.
6753 // is used in the source position table, hence the subtraction.