patchDotGNU Portable.NET - Patches: patch #6235, Make jit_function_apply work for...


You are not allowed to post comments on this tracker with your current authentication level.

patch #6235: Make jit_function_apply work for all ABIs (FASTCALL, STDCALL).

Submitted by:  Kirill Kononenko <krokas>
Submitted on:  Wed 17 Oct 2007 10:48:53 AM UTC  
Category: NonePriority: 5 - Normal
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open

Wed 17 Oct 2007 10:48:53 AM UTC, original submission:

The patch builds a special trampoline (jit_function_t cdecl_trampoline; ) with a CDECL ABI. The trampoline gets all standard parameters at begin, but has at the end an extra pointer to a function. The trampoline uses jit_insn_call_indirect to call the function pointer with the parameters, which were passed at the begin. Because the trampoline has a CDECL ABI, jit_function_apply is then called for the trampoline. This fixes jit_function_apply to work for all different ABIs,not only the CDECL, for which jit_insn_call_indirect works too.

Kirill Kononenko <krokas>


Attached Files
file #14155:  krokas-071017.patch added by krokas (5KiB - text/x-patch)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by krokas (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 17 Oct 2007 10:48:53 AM UTCkrokasAttached File-=>Added krokas-071017.patch, #14155

    Back to the top

    Powered by Savane 3.1-cleanup1