예제 #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
        }