Hi,

The arm64 port follows the procedure call standard defined here:
http://infocenter.arm.com/help/topic/com.arm.doc.ihi0055b/IHI0055B_aapcs64.pdf
, I do not know if/how Windows on Arm differs. The main interface points
are JSEntryStub, CEntryStub,and DirectCEntryStub
(src/arm64/code-stub-arm64.cc). There are some other JS to C++ calls in
TurboFan, look for the macro assembler function "CallCFunction" (used for
calling Cos, Sin for example).

HTH,
Rodolph

On Fri, 6 Apr 2018 at 12:43 Ben Noordhuis <i...@bnoordhuis.nl> wrote:

> On Fri, Apr 6, 2018 at 6:17 PM, Thomson Tan <lilo...@gmail.com> wrote:
> > Thanks Ben. Yes, I am experimenting port V8 to this platform. Would you
> > please point me to the code which handles native code calling convention
> > from JIT code?
>
> Grep src/x64/code-stubs-x64.cc for '_WIN64' and you'll find it used in
> methods like `CallApiCallbackStub::Generate()` and
> `CallApiGetterStub::Generate()`.
>
> The same methods in src/arm64/code-stubs-arm64.cc are likely the ones
> you want - and if not, grep for 'CallApiFunctionAndReturn'.
>
> --
> --
> v8-users mailing list
> v8-users@googlegroups.com
> http://groups.google.com/group/v8-users
> ---
> You received this message because you are subscribed to the Google Groups
> "v8-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to v8-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to