From: "YO4 (Yoshinao Muramatsu) via ruby-core" <ruby-core@...>
Date: 2024-12-20T11:49:57+00:00
Subject: [ruby-core:120346] [Ruby master Feature#18439] YJIT: Support Microsoft x86 calling convention

Issue #18439 has been updated by YO4 (Yoshinao Muramatsu).


The Windows version of ruby limits Integer to 30 bits even in x64 environments.
I am afraid that to support this in yjit would add complexity, which would harm the evolution of yjit.
Would 30bit Integer support actually have a negative impact?

Nevertheless, regardless of yjit support, I would like to see the Windows version of Integer's limitation removed.

----------------------------------------
Feature #18439: YJIT: Support Microsoft x86 calling convention
https://bugs.ruby-lang.org/issues/18439#change-111120

* Author: usa (Usaku NAKAMURA)
* Status: Assigned
* Assignee: yjit
----------------------------------------
I heard that supporting YJIT for VC++ needs mmap from k0kubun-san, so I implemented tiny mmap emulation on Windows and committed it to master.
And, I found we need more changes to actually enabled YJIT for VC++, at least:

- YJIT requires `OPT_DIRECT_THREADED_CODE` or `OPT_CALL_THREADED_CODE` in `rb_yjit_compile_iseq()`.  Really?
- Maybe ABI deffers between VC++ and YJIT's expectation.

Can I get support to fix above?



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/