diff options
author | Takashi Kokubun <[email protected]> | 2025-02-06 15:31:51 -0500 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2025-04-18 21:52:56 +0900 |
commit | e74345039ffa4486d0bd02432c58a4ec2b3b1f29 () | |
tree | 0daca14f7c1d99ab6528a4c1326fbbdcb8cf67d7 /zjit/src/lib.rs | |
parent | a8f1dad1e77270f9e4160e937a1d24ee07d19126 (diff) |
Return null on Arm
Notes: Merged: https://.com/ruby/ruby/pull/13131
-rw-r--r-- | zjit/src/lib.rs | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -80,10 +80,17 @@ pub extern "C" fn rb_zjit_parse_option() -> bool { pub extern "C" fn rb_zjit_iseq_gen_entry_point(iseq: IseqPtr, _ec: EcPtr) -> *const u8 { ir::iseq_to_ssa(iseq); - let cb = ZJITState::get_code_block(); - let start_ptr = cb.get_write_ptr(); - x86_emit(cb); - // TODO: use std::ptr::null() if compilation fails - start_ptr.raw_ptr(cb) } |