public CorJitCompilerNativeWrapper(IntPtr pThis, CompileMethodDel compileMethodDel, ProcessShutdownWorkDel processShutdownWork, getMethodAttribs getMethodAttribs) { _pThis = pThis; _compileMethod = compileMethodDel; _processShutdownWork = processShutdownWork; _getMethodAttribs = getMethodAttribs; }
public bool Hook(CompileMethodDel hook) { if (!UnlockpVTable()) { return(false); } Compile = compiler.CompileMethod; Debug.Assert(Compile != null); RuntimeHelpers.PrepareDelegate(hook); RuntimeHelpers.PrepareDelegate(Compile); Marshal.WriteIntPtr(pVTable, Marshal.GetFunctionPointerForDelegate(hook)); return(isHooked = LockpVTable()); }
public CorJitCompilerNativeWrapper(IntPtr pThis, CompileMethodDel compileMethodDel, ProcessShutdownWorkDel processShutdownWork) { _pThis = pThis; _compileMethod = compileMethodDel; _processShutdownWork = processShutdownWork; }