Lines Matching defs:position
13 #include "src/codegen/source-position-table.h"
529 int position;
538 : position(is_start ? literal->start_position()
543 : position(is_start ? change.start_position : change.end_position),
550 if (a.position != b.position) return a.position < b.position;
553 // If the literals start in the same position, we want the one with the
554 // furthest (i.e. largest) end position to be first.
558 // If they also end in the same position, we want the first in order of
563 // If the literals end in the same position, we want the one with the
564 // nearest (i.e. largest) start position to be first.
568 // If they also end in the same position, we want the last in order of
579 // If any of start/end position is kNoSourcePosition, this literal is
797 // In case of multiple functions with different stack position, the latest
862 // function whose start position is 0.
869 // start position
881 // This is the top-level function, so special case its start position
941 SourcePosition position = iterator.source_position();
942 position.SetScriptOffset(
943 LiveEdit::TranslatePosition(diffs, position.ScriptOffset()));
944 builder.AddPosition(iterator.code_offset(), position,
1139 // See if there is a mapping from this function's start position to a
1172 // Don't check the start position of the top-level function, as it can
1224 int position) {
1225 auto it = std::lower_bound(diffs.begin(), diffs.end(), position,
1226 [](const SourceChangeRange& change, int position) {
1227 return change.end_position < position;
1229 if (it != diffs.end() && position == it->end_position) {
1232 if (it == diffs.begin()) return position;
1233 DCHECK(it == diffs.end() || position <= it->start_position);
1235 return position + (it->new_end_position - it->end_position);