зеркало из https://github.com/github/ruby.git
Update a stubbed type for RJIT
cfunc.func is actually used by RJIT
This commit is contained in:
Родитель
317163c79c
Коммит
607b86ed1f
|
@ -1004,6 +1004,10 @@ module RubyVM::RJIT # :nodoc: all
|
|||
)
|
||||
end
|
||||
|
||||
def C.rb_cfunc_t
|
||||
@rb_cfunc_t ||= self.VALUE
|
||||
end
|
||||
|
||||
def C.rb_control_frame_t
|
||||
@rb_control_frame_t ||= CType::Struct.new(
|
||||
"rb_control_frame_struct", Primitive.cexpr!("SIZEOF(struct rb_control_frame_struct)"),
|
||||
|
@ -1594,10 +1598,6 @@ module RubyVM::RJIT # :nodoc: all
|
|||
CType::Stub.new(:rb_event_flag_t)
|
||||
end
|
||||
|
||||
def C.rb_cfunc_t
|
||||
CType::Stub.new(:rb_cfunc_t)
|
||||
end
|
||||
|
||||
def C.rb_method_alias_t
|
||||
CType::Stub.new(:rb_method_alias_t)
|
||||
end
|
||||
|
|
|
@ -602,6 +602,7 @@ generator = BindingGenerator.new(
|
|||
rb_callcache
|
||||
rb_callinfo
|
||||
rb_captured_block
|
||||
rb_cfunc_t
|
||||
rb_control_frame_t
|
||||
rb_cref_t
|
||||
rb_execution_context_struct
|
||||
|
|
Загрузка…
Ссылка в новой задаче