Пример #1
0
        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
        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
        }