Skip to content
Open
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#### Fixes

- Fixed stale `ReplayProcessor` doc comment links to `ExecutionTracer` after module-structure refactors.
- Preserved `AssemblyOp` source mappings when merging `MastForest`s, preventing source-location loss after node deduplication.

## 0.22.0 (2025-03-18)

Expand Down
5 changes: 5 additions & 0 deletions core/src/mast/debuginfo/asm_op_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ impl OpToAsmOpId {
self.inner.num_elements()
}

/// Returns all sparse `(op_idx, asm_op_id)` entries for a node, if the node exists.
pub fn asm_ops_for_node(&self, node_id: MastNodeId) -> Option<&[(usize, AsmOpId)]> {
self.inner.row(node_id)
}

/// Registers AssemblyOps for a node's operations.
///
/// `asm_ops` is a list of `(op_idx, asm_op_id)` pairs. The `op_idx` values must be strictly
Expand Down
5 changes: 5 additions & 0 deletions core/src/mast/debuginfo/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,11 @@ impl DebugInfo {
self.asm_ops.get(asm_op_id)
}

/// Returns all sparse `(op_idx, asm_op_id)` entries registered for a node.
pub fn asm_ops_for_node(&self, node_id: MastNodeId) -> Option<&[(usize, AsmOpId)]> {
self.asm_op_storage.asm_ops_for_node(node_id)
}

// ASSEMBLY OP MUTATORS
// --------------------------------------------------------------------------------------------

Expand Down
Loading
Loading