Home
last modified time | relevance | path

Searched refs:line_ends (Results 1 - 7 of 7) sorted by relevance

/third_party/node/deps/v8/src/debug/
H A Ddebug-interface.cc524 CHECK(script->line_ends().IsFixedArray()); in GetPossibleBreakpoints()
525 i::Handle<i::FixedArray> line_ends = in GetPossibleBreakpoints() local
526 i::Handle<i::FixedArray>::cast(i::handle(script->line_ends(), isolate)); in GetPossibleBreakpoints()
527 CHECK(line_ends->length()); in GetPossibleBreakpoints()
531 ? GetSmiValue(line_ends, line_ends->length() - 1) + 1 in GetPossibleBreakpoints()
546 while (offset > GetSmiValue(line_ends, current_line_end_index)) { in GetPossibleBreakpoints()
548 CHECK(current_line_end_index < line_ends->length()); in GetPossibleBreakpoints()
553 line_offset = GetSmiValue(line_ends, current_line_end_index - 1) + 1; in GetPossibleBreakpoints()
580 CHECK(script->line_ends() in GetSourceOffset()
581 i::Handle<i::FixedArray> line_ends = i::Handle<i::FixedArray>::cast( GetSourceOffset() local
[all...]
H A Ddebug.cc2565 Handle<FixedArray> line_ends(FixedArray::cast(script->line_ends()), in PrintBreakLocation()
2567 int line_start = line == 0 ? 0 : Smi::ToInt(line_ends->get(line - 1)) + 1; in PrintBreakLocation()
2568 int line_end = Smi::ToInt(line_ends->get(line)); in PrintBreakLocation()
/third_party/node/deps/v8/src/objects/
H A Dstring.cc949 static void CalculateLineEndsImpl(std::vector<int>* line_ends, in CalculateLineEndsImpl() argument
956 if (IsLineTerminatorSequence(current, next)) line_ends->push_back(i); in CalculateLineEndsImpl()
960 line_ends->push_back(src_len - 1); in CalculateLineEndsImpl()
965 line_ends->push_back(src_len); in CalculateLineEndsImpl()
977 std::vector<int> line_ends; in CalculateLineEnds() local
978 line_ends.reserve(line_count_estimate); in CalculateLineEnds()
985 CalculateLineEndsImpl(&line_ends, content.ToOneByteVector(), in CalculateLineEnds()
988 CalculateLineEndsImpl(&line_ends, content.ToUC16Vector(), in CalculateLineEnds()
992 int line_count = static_cast<int>(line_ends.size()); in CalculateLineEnds()
996 array->set(i, Smi::FromInt(line_ends[ in CalculateLineEnds()
[all...]
H A Dobjects.cc4824 if (!script->line_ends().IsUndefined(isolate)) return; in InitLineEnds()
4841 DCHECK(script->line_ends().IsFixedArray()); in InitLineEnds()
4853 // For wasm, we do not create an artificial line_ends array, but do the in GetPositionInfo()
4945 if (line_ends().IsUndefined()) { in GetPositionInfo()
4946 // Slow mode: we do not have line_ends. We have to iterate through source. in GetPositionInfo()
4951 DCHECK(line_ends().IsFixedArray()); in GetPositionInfo()
4952 FixedArray ends = FixedArray::cast(line_ends()); in GetPositionInfo()
/third_party/node/deps/v8/src/runtime/
H A Druntime-debug.cc564 FixedArray line_ends_array = FixedArray::cast(script->line_ends()); in ScriptLinePosition()
/third_party/node/deps/v8/src/profiler/
H A Dheap-snapshot-generator.cc1453 TagObject(script.line_ends(), "(script line ends)", HeapEntry::kCode); in ExtractScriptReferences()
1454 SetInternalReference(entry, "line_ends", script.line_ends(), in ExtractScriptReferences()
/third_party/node/deps/v8/src/diagnostics/
H A Dobjects-printer.cc2200 os << "\n - line ends: " << Brief(line_ends()); in ScriptPrint()

Completed in 33 milliseconds