MCPcopy Create free account
hub / github.com/GJDuck/e9patch / getOffset

Method getOffset

src/e9tool/e9metadata.cpp:95–100  ·  view source on GitHub ↗

* Get register offset relative to the current %rsp value. */

Source from the content-addressed store, hash-verified

93 * Get register offset relative to the current %rsp value.
94 */
95 int32_t getOffset(Register reg) const
96 {
97 const RegInfo *rinfo = getInfo(reg);
98 assert(rinfo != nullptr);
99 return rsp_offset - rinfo->offset;
100 }
101
102 /*
103 * Get register saved.

Callers 5

sendTemporaryRestoreRegFunction · 0.80
sendLoadRegToArgFunction · 0.80
sendLoadTargetMetadataFunction · 0.80
sendLoadArgumentMetadataFunction · 0.80
sendCallMetadataMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected