diff options
author | Takashi Kokubun <[email protected]> | 2023-03-03 22:03:23 -0800 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2023-03-05 23:28:59 -0800 |
commit | 46a14b65fbeca6bc27e43da4248726b289f1157a () | |
tree | 7668a24121cc4ddc3354239a0e45e7afdb9335ef /mjit_c.rb | |
parent | 9fa127416a24312ce2f356c3317f6ff2520977b5 (diff) |
Implement objtostring
Notes: Merged: https://.com/ruby/ruby/pull/7448
-rw-r--r-- | mjit_c.rb | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -104,6 +104,10 @@ module RubyVM::MJIT # :nodoc: all Primitive.cexpr! 'INT2NUM(BUILTIN_TYPE((VALUE)NUM2SIZET(_value)))' end def rb_shape_get_shape_id(obj) _value = to_value(obj) Primitive.cexpr! 'UINT2NUM((unsigned int)rb_shape_get_shape_id((VALUE)NUM2SIZET(_value)))' @@ -837,6 +841,10 @@ module RubyVM::MJIT # :nodoc: all Primitive.cexpr! %q{ ULONG2NUM(RUBY_T_MODULE) } end def C.SHAPE_MASK Primitive.cexpr! %q{ ULONG2NUM(SHAPE_MASK) } end |