[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pnet-developers] [patch #6235] Make jit_function_apply work for all ABI
From: |
Kirill Kononenko |
Subject: |
[Pnet-developers] [patch #6235] Make jit_function_apply work for all ABIs (FASTCALL, STDCALL). |
Date: |
Wed, 17 Oct 2007 10:48:54 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20070723 Iceweasel/2.0.0.6 (Debian-2.0.0.6-0etch1) |
URL:
<http://savannah.gnu.org/patch/?6235>
Summary: Make jit_function_apply work for all ABIs
(FASTCALL, STDCALL).
Project: DotGNU Portable.NET
Submitted by: krokas
Submitted on: Wednesday 10/17/2007 at 10:48
Category: None
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
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.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Wednesday 10/17/2007 at 10:48 Name: krokas-071017.patch Size: 5kB
By: krokas
<http://savannah.gnu.org/patch/download.php?file_id=14155>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/patch/?6235>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pnet-developers] [patch #6235] Make jit_function_apply work for all ABIs (FASTCALL, STDCALL).,
Kirill Kononenko <=