Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/engine/compiler/SinglePassCompiler.v3
Original file line number Diff line number Diff line change
Expand Up @@ -2127,6 +2127,10 @@ class SinglePassCompiler(xenv: SpcExecEnv, masm: MacroAssembler, regAlloc: RegAl
if (Trace.compiler) Trace.OUT.put1(" OSR (+%d)", osr_entry_label.create_pos).ln();
masm.bindLabel(osr_entry_label);
emit_reload_regs();
if (SpcTuning.inlineWhammProbes && SpcTuning.intrinsifyWhammProbe) {
Comment thread
titzer marked this conversation as resolved.
// Clear sidetable pointer in this slot
masm.emit_mov_m_l(frame.inlined_instance_slot, 0);
}
for (i < u32.!(state.length)) {
var sv = state[i];
var iv = SpcVal(sv.kindFlags(IS_STORED | TAG_STORED), NO_REG, 0);
Expand Down
Binary file added test/wizeng/osr_gc.wasm
Binary file not shown.
1 change: 1 addition & 0 deletions test/wizeng/osr_gc.wasm.exit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
1 change: 1 addition & 0 deletions test/wizeng/osr_gc.wasm.flags
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--expose=wizeng
7 changes: 7 additions & 0 deletions test/wizeng/osr_gc.wat
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
(module
(import "wizeng" "force_gc" (func $gc))
(func (export "main") (local $i i32)
;; the loop tiers up while this frame still holds the interpreter's sidetable pointer
(loop $l
(call $gc)
(br_if $l (i32.lt_u (local.tee $i (i32.add (local.get $i) (i32.const 1))) (i32.const 10))))))
Loading