diff options
-rw-r--r-- | test/ruby/test_zjit.rb | 10 | ||||
-rw-r--r-- | zjit/src/hir.rs | 30 |
2 files changed, 40 insertions, 0 deletions
@@ -714,6 +714,16 @@ class TestZJIT < Test::Unit::TestCase end end def test_send_backtrace backtrace = [ "-e:2:in 'Object#jit_frame1'", @@ -2405,6 +2405,14 @@ pub fn iseq_to_hir(iseq: *const rb_iseq_t) -> Result<Function, ParseError> { } YARVINSN_pop => { state.stack_pop()?; } YARVINSN_dup => { state.stack_push(state.stack_top()?); } YARVINSN_swap => { let right = state.stack_pop()?; let left = state.stack_pop()?; @@ -4314,6 +4322,28 @@ mod tests { Return v8 "#]]); } } #[cfg(test)] |