MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / addressToObject

Method addressToObject

lib/mapfiles/map-file.ts:292–302  ·  view source on GitHub ↗
(segment: string, address: string)

Source from the content-addressed store, hash-verified

290 }
291
292 addressToObject(segment: string, address: string): LineNumber {
293 const addressWithoutOffset = Number.parseInt(address, 16);
294 const addressWithOffset = this.getSegmentOffset(segment) + addressWithoutOffset;
295
296 return {
297 segment: segment,
298 addressWithoutOffset: addressWithoutOffset,
299 addressInt: addressWithOffset,
300 address: addressWithOffset.toString(16),
301 };
302 }
303
304 /**
305 * Try to match information about the address where a symbol is

Callers 4

tryReadingLineNumbersMethod · 0.80

Calls 2

getSegmentOffsetMethod · 0.95
toStringMethod · 0.80

Tested by

no test coverage detected