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

Method moveCode

deps/v8/tools/codemap.mjs:115–119  ·  view source on GitHub ↗

* Moves a dynamic code entry. Throws an exception if there is no dynamic * code entry with the specified starting address. * * @param {number} from The starting address of the entry being moved. * @param {number} to The destination address.

(from, to)

Source from the content-addressed store, hash-verified

113 * @param {number} to The destination address.
114 */
115 moveCode(from, to) {
116 const removedNode = this.dynamics_.remove(from);
117 this.deleteAllCoveredNodes_(this.dynamics_, to, to + removedNode.value.size);
118 this.dynamics_.insert(to, removedNode.value);
119 }
120
121 /**
122 * Discards a dynamic code entry. Throws an exception if there is no dynamic

Callers 3

processCodeMoveMethod · 0.45
processCodeMoveMethod · 0.45
codemap.mjsFile · 0.45

Calls 3

removeMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected