diff options
author | Takashi Kokubun <[email protected]> | 2025-02-11 16:11:02 -0800 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2025-04-18 21:52:57 +0900 |
commit | bcf5c1cdc4998bd6019c771eb8d50d6ca24d10f2 () | |
tree | 9fc9c379c92db0ed6f35495a0f22740baab7e829 /zjit/src/lib.rs | |
parent | 7447513509bf5e6c7770ed09838a844486c29b8b (diff) |
Generate working putnil-leave using the backend
Notes: Merged: https://.com/ruby/ruby/pull/13131
-rw-r--r-- | zjit/src/lib.rs | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -4,6 +4,7 @@ mod state; mod cruby; mod ir; mod stats; mod utils; mod virtualmem; @@ -12,6 +13,7 @@ mod backend; mod disasm; mod options; use state::ZJITState; #[cfg(feature = "disasm")] use options::get_option; @@ -80,7 +82,7 @@ pub extern "C" fn rb_zjit_iseq_gen_entry_point(iseq: IseqPtr, _ec: EcPtr) -> *co let cb = ZJITState::get_code_block(); let start_ptr = cb.get_write_ptr(); - //x86_emit(cb); #[cfg(feature = "disasm")] if get_option!(dump_disasm) { @@ -89,9 +91,5 @@ pub extern "C" fn rb_zjit_iseq_gen_entry_point(iseq: IseqPtr, _ec: EcPtr) -> *co println!("{}", disasm); } - if cfg!(target_arch = "x86_64") { - start_ptr.raw_ptr(cb) - } else { - std::ptr::null() - } } |