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

Function find_chunk

deps/v8/tools/windbg.js:597–609  ·  view source on GitHub ↗
(address)

Source from the content-addressed store, hash-verified

595}
596
597function find_chunk(address) {
598 if (!Number.isSafeInteger(int(address))) return undefined;
599
600 let chunks = get_chunks(isolate_address);
601 for (let c of chunks) {
602 let chunk = cast(c.address, "v8::internal::MemoryChunk");
603 if (address >= chunk.area_start_ && address < chunk.area_end_) {
604 return c;
605 }
606 }
607
608 return undefined;
609}
610
611function print_memory(space = "all") {
612 if (isolate_address == 0) {

Callers 2

print_owning_spaceFunction · 0.85
dpFunction · 0.85

Calls 3

intFunction · 0.85
get_chunksFunction · 0.85
castFunction · 0.70

Tested by

no test coverage detected