示例#1
0
文件: Jit.cs 项目: jncronin/tysos
        internal static unsafe void *JitCompile(metadata.TypeSpec ts)
        {
            var s = InitTysilaState();

            // Add the new vtable to the requestor
            ((JitRequestor)s.r).VTableRequestor.Request(ts);

            // Compile all needed bits
            JitProcess.ProcessRequestedItems(s, Program.stab);

            // Add everything from the current state to output sections
            return(CopyToOutput(s, RDataSection));   // First VTable requested will be at start of RData section
        }
示例#2
0
文件: Jit.cs 项目: jncronin/tysos
        internal static unsafe void *JitCompile(metadata.MethodSpec meth)
        {
            var s = InitTysilaState();

            // Add the new method to the requestor
            ((JitRequestor)s.r).FullMethodRequestor.Request(meth);

            // Compile all needed bits
            JitProcess.ProcessRequestedItems(s, Program.stab);

            // Add everything from the current state to output sections
            return(CopyToOutput(s, TextSection));    // First Method requested will be at start of Text section
        }