summaryrefslogtreecommitdiff
path: root/mjit_c.rb
diff options
context:
space:
mode:
authorTakashi Kokubun <[email protected]>2023-03-03 21:29:20 -0800
committerTakashi Kokubun <[email protected]>2023-03-05 23:28:59 -0800
commit7456b10c33ef984a685d174d7ff4ed418001923f ()
tree482216e36a269d038c042531ad7e52713aca8109 /mjit_c.rb
parentf81c7a674751681d77d84110ffdb9c609b602cea (diff)
Implement getblockparamproxy
Notes: Merged: https://.com/ruby/ruby/pull/7448
-rw-r--r--mjit_c.rb12
1 files changed, 12 insertions, 0 deletions
@@ -702,6 +702,10 @@ module RubyVM::MJIT # :nodoc: all
Primitive.cexpr! %q{ UINT2NUM(VM_FRAME_FLAG_CFRAME_KW) }
end
def C.VM_FRAME_MAGIC_CFUNC
Primitive.cexpr! %q{ UINT2NUM(VM_FRAME_MAGIC_CFUNC) }
end
@@ -826,6 +830,10 @@ module RubyVM::MJIT # :nodoc: all
Primitive.cexpr! %q{ ULONG2NUM(SHAPE_MASK) }
end
def C.rb_cFalseClass
Primitive.cexpr! %q{ PTR2NUM(rb_cFalseClass) }
end
@@ -1408,6 +1416,10 @@ module RubyVM::MJIT # :nodoc: all
expandarray_postarg: [CType::Immediate.parse("size_t"), Primitive.cexpr!("OFFSETOF((*((struct rb_mjit_runtime_counters *)NULL)), expandarray_postarg)")],
expandarray_not_array: [CType::Immediate.parse("size_t"), Primitive.cexpr!("OFFSETOF((*((struct rb_mjit_runtime_counters *)NULL)), expandarray_not_array)")],
expandarray_rhs_too_small: [CType::Immediate.parse("size_t"), Primitive.cexpr!("OFFSETOF((*((struct rb_mjit_runtime_counters *)NULL)), expandarray_rhs_too_small)")],
compiled_block_count: [CType::Immediate.parse("size_t"), Primitive.cexpr!("OFFSETOF((*((struct rb_mjit_runtime_counters *)NULL)), compiled_block_count)")],
)
end