Source/Packages

Runtime.NativePhysicalNative

packages/execution/src/Runtime/NativePhysicalNative.alpha

3,420 lines207 declarations187.4 KiBSHA-256 9c16b0741974

def · lines 2511–2520

npScratchInto

Full file
The scratch follows the result slots: [+0] repeat iteration, [+8] count, [+16] first body record, [+24] body record count, [+32] a timespec (seconds, nanoseconds) for the fence wait's nanosleep. Its address is rbx + 8 * resultSlots, computed into the given register.
2511def npScratchInto =
2512  (lambda unrestricted register : (family X86NativeRegister64) .
2513    (lambda unrestricted tail : (family X86NativeAssembly) .
2514      (npLoad64
2515        register
2516        npR15
2517        (npD (byte 32))
2518        (nativePhysicalNativeEmit
2519          (nativePhysicalNativeShiftLeft register (nativePhysicalNativeImmediate8 (byte 3)))
2520          (npAdd register npRBX tail)))))

The compiler supplied declaration spans and resolved links from this source snapshot. This page does not assert that this file belongs to a checked closure.