mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-09 19:45:13 +02:00
[pitboss/grind] deferred session-0002 (20260516T052512Z-20f8)
This commit is contained in:
parent
7a2f82c2ab
commit
282acddbbf
11 changed files with 214 additions and 45 deletions
|
|
@ -191,6 +191,11 @@ const SYNTHETIC_DISAMBIG_BIT: u32 = 0x8000_0000;
|
|||
/// * `ordinal`, the per-function call ordinal matching
|
||||
/// `CallMeta.call_ordinal`, allowing cross-file consumers to address a
|
||||
/// specific call site rather than just a callee name.
|
||||
/// * `span`, optional 1-based `(line, col)` source coordinate of the call
|
||||
/// expression, populated at CFG-build time when source bytes are
|
||||
/// available. `None` for legacy summaries loaded from SQLite that
|
||||
/// pre-date the span field, and for synthetic test fixtures that build
|
||||
/// `CalleeSite` values directly.
|
||||
#[derive(Debug, Clone, Default, Serialize, Deserialize, PartialEq, Eq, Hash)]
|
||||
pub struct CalleeSite {
|
||||
pub name: String,
|
||||
|
|
@ -202,6 +207,8 @@ pub struct CalleeSite {
|
|||
pub qualifier: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "is_zero_u32")]
|
||||
pub ordinal: u32,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
pub span: Option<(u32, u32)>,
|
||||
}
|
||||
|
||||
fn is_zero_u32(n: &u32) -> bool {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue