summaryrefslogtreecommitdiff
path: root/lib/ruby_vm/mjit/c_pointer.rb
AgeCommit message (Collapse)Author
2023-03-06Rename MJIT filenames to RJITTakashi Kokubun
Notes: Merged: https://github.com/ruby/ruby/pull/7462
2023-03-05Implement non-embedded ivarsTakashi Kokubun
2023-03-05Implement getivarTakashi Kokubun
2023-03-05Refactor BranchStubTakashi Kokubun
2023-03-05Fix broken rebaseTakashi Kokubun
2023-03-05Implement --mjit-statsTakashi Kokubun
2023-03-05Compile a real return valueTakashi Kokubun
2023-03-05Expose the address of MJIT Pointers (#7446)Aaron Patterson
This way we can manually dereference pointers with Fiddle Notes: Merged-By: k0kubun <[email protected]>
2023-01-20Add `offsetof` so we can get the offset of membersAaron Patterson
I want to get the offset of fields inside structs, but I don't want to instantiate the struct. I need to embed the offsets inside machine code, and I can't get the offsets without calling `new` on the struct. This commit adds an `offset` method so you can get the offset of a member without instantiating anything. You can do: ```ruby C.rb_control_frame_t.offsetof(:sp) #=> 8 ``` I don't think this implementation is perfect, you can only get immediate fields. But it is better than nothing! Notes: Merged: https://github.com/ruby/ruby/pull/7163
2022-12-22Remove MJIT's private constants from docs [ci skip]Takashi Kokubun
2022-12-21Put RubyVM::MJIT::Compiler under ruby_vm directory (#6989)Takashi Kokubun
[Misc #19250] Notes: Merged-By: k0kubun <[email protected]>