Source/Packages

Runtime.NativePhysicalNative

packages/execution/src/Runtime/NativePhysicalNative.alpha

2,298 lines165 declarations135.2 KiBSHA-256 cd2006b824a4

def · lines 2103–2109

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.
2103def npScratchInto =
2104  (lambda unrestricted register : (family X86NativeRegister64) .
2105    (lambda unrestricted tail : (family X86NativeAssembly) .
2106      (npLoad64 register npR15 (npD (byte 32))
2107      (nativePhysicalNativeEmit
2108        (nativePhysicalNativeShiftLeft register (nativePhysicalNativeImmediate8 (byte 3)))
2109      (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.