summaryrefslogtreecommitdiff
path: root/mjit_c.rb
diff options
context:
space:
mode:
-rw-r--r--mjit_c.rb26
1 files changed, 26 insertions, 0 deletions
@@ -13,6 +13,30 @@ module RubyVM::MJIT
Primitive.cexpr! 'UINT2NUM(SHAPE_FLAG_SHIFT)'
end
def ROBJECT_EMBED_LEN_MAX
Primitive.cexpr! 'INT2NUM(RBIMPL_EMBED_LEN_MAX_OF(VALUE))'
end
@@ -598,7 +622,9 @@ module RubyVM::MJIT
edges: [CType::Pointer.new { self.rb_id_table }, Primitive.cexpr!("OFFSETOF((*((struct rb_shape *)NULL)), edges)")],
edge_name: [self.ID, Primitive.cexpr!("OFFSETOF((*((struct rb_shape *)NULL)), edge_name)")],
next_iv_index: [self.attr_index_t, Primitive.cexpr!("OFFSETOF((*((struct rb_shape *)NULL)), next_iv_index)")],
type: [CType::Immediate.parse("uint8_t"), Primitive.cexpr!("OFFSETOF((*((struct rb_shape *)NULL)), type)")],
parent_id: [self.shape_id_t, Primitive.cexpr!("OFFSETOF((*((struct rb_shape *)NULL)), parent_id)")],
)
end