MCPcopy Index your code
hub / github.com/nodejs/node / find_object_next

Function find_object_next

deps/v8/tools/windbg.js:430–436  ·  view source on GitHub ↗
(addr, max_distance)

Source from the content-addressed store, hash-verified

428}
429
430function find_object_next(addr, max_distance) {
431 if (!Number.isSafeInteger(int(addr))) return;
432
433 const ptr_size = tagged_size();
434 const aligned_addr = addr - (addr % ptr_size) + ptr_size;
435 return find_object_near(aligned_addr, max_distance, x => x + ptr_size);
436}
437
438function print_object_prev(addr, max_slots = 100) {
439 let obj_addr = find_object_prev(addr, max_slots);

Callers 2

print_object_nextFunction · 0.85
print_objects_in_rangeFunction · 0.85

Calls 3

intFunction · 0.85
tagged_sizeFunction · 0.85
find_object_nearFunction · 0.85

Tested by

no test coverage detected