Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Improve specialization guards and fix mark_stacks
- CONTAINS_OP_SET: add frozenset support in handler and specialize
- TO_BOOL_ALWAYS_TRUE: cache type version instead of checking slots
- LOAD_GLOBAL_BUILTIN: cache builtins dict version alongside globals
- mark_stacks: deoptimize specialized opcodes for correct reachability
  • Loading branch information
youknowone committed Mar 4, 2026
commit dd891517e545ddc27975deeca5204b878b7b1631
4 changes: 2 additions & 2 deletions crates/vm/src/builtins/frame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ pub(crate) mod stack_analysis {
}
oparg = (oparg << 8) | u32::from(u8::from(instructions[i].arg));

// De-instrument: get the underlying real instruction
let opcode = opcode.to_base().unwrap_or(opcode);
// De-instrument and de-specialize: get the underlying base instruction
let opcode = opcode.to_base().unwrap_or(opcode).deoptimize();

let caches = opcode.cache_entries();
let next_i = i + 1 + caches;
Expand Down
Loading
Loading