MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / CaptureX86

Function CaptureX86

src/hx/gc/GcRegCapture.cpp:14–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12namespace hx {
13
14void CaptureX86(RegisterCaptureBuffer &outBuffer)
15{
16 void *regEsi;
17 void *regEdi;
18 void *regEbx;
19 #ifdef __GNUC__
20 asm ("mov %%esi, %0\n\t" : "=r" (regEsi) );
21 asm ("mov %%edi, %0\n\t" : "=r" (regEdi) );
22 asm ("mov %%ebx, %0\n\t" : "=r" (regEbx) );
23 #else
24 __asm {
25 mov regEsi, esi
26 mov regEdi, edi
27 mov regEbx, ebx
28 }
29 #endif
30 outBuffer.esi = regEsi;
31 outBuffer.edi = regEdi;
32 outBuffer.ebx = regEbx;
33}
34
35} // end namespace hx
36

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected