mirror of
https://github.com/ruby/ruby.git
synced 2025-08-27 15:06:10 +02:00
Implement putstring
This commit is contained in:
parent
32e6f15beb
commit
8d29b0635b
Notes:
git
2023-03-06 07:29:53 +00:00
5 changed files with 37 additions and 12 deletions
|
@ -1,9 +1,5 @@
|
|||
module RubyVM::MJIT
|
||||
class ExitCompiler
|
||||
def initialize
|
||||
@gc_refs = [] # TODO: GC offsets?
|
||||
end
|
||||
|
||||
# Used for invalidating a block on entry.
|
||||
# @param pc [Integer]
|
||||
# @param asm [RubyVM::MJIT::Assembler]
|
||||
|
@ -133,7 +129,7 @@ module RubyVM::MJIT
|
|||
end
|
||||
|
||||
def to_value(obj)
|
||||
@gc_refs << obj
|
||||
GC_REFS << obj
|
||||
C.to_value(obj)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue