This commit is contained in:
Tristan B. Velloza Kildaire 2021-11-10 17:01:17 +02:00
parent c58bf07bb1
commit cae3cfe88c
1 changed files with 23 additions and 0 deletions

View File

@ -165,6 +165,29 @@ public final class DCodeEmitter : CodeEmitter
return registerToCheck;
}
/**
* Represents a function's code
*
* Includes: Name, address, the assembly
* for it (for all entities within)
*/
private struct FunctionCode
{
public string functionName;
public ulong entryAddress;
/**
* Block-by-block asm-D emitted
* blocks
*/
public string[] asmLines;
/* TODO: Return register name (Actually use standard rax, eax for compat) */
}
// private string[] emitFunctionEnter()
/**
* Current stackpointer along with the offsets
* from it to variables (a varName -> offset map)