-
Notifications
You must be signed in to change notification settings - Fork 15
fix: restore reflection dynamicKind for .call/.apply/.bind #1917
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
53 commits
Select commit
Hold shift + click to select a range
2b6a00d
fix: scope codegraph batch complexity targets to file paths
carlos-alm b28051a
fix: exclude parameters and interface/type members from dead-role cla…
carlos-alm 17fbcba
fix: credit import-type usages as exports consumers
carlos-alm 26918bb
fix: prevent fn-impact/query crash when -f/--file is passed
carlos-alm be6432c
fix: correct exported-symbol detection for literal and object-literal…
carlos-alm 4ead840
fix: exclude primitive type keywords from ast --kind string matching
carlos-alm f6326bf
fix: resolve call edges through renamed import specifiers
carlos-alm 590f560
fix: couple file_hashes updates with edge regeneration in incremental…
carlos-alm d3ea4a4
fix: compare signature-change diffs using new-file line ranges
carlos-alm c306812
feat: add environment doctor check for stale native binary and missin…
carlos-alm 8bb5893
fix: eliminate non-deterministic ordering in community detection
carlos-alm 46037b1
fix: sync update-graph.sh hook extension allowlist with EXTENSIONS
carlos-alm 6a84cf9
fix: recompute directory structure metrics for affected directories o…
carlos-alm 8d936d1
refactor: register hardcoded execFileSync/execSync maxBuffer values i…
carlos-alm 11c84be
fix: gate blast-radius check on newly introduced risk, not pre-existi…
carlos-alm 963301a
fix: gate identifier-argument dynamic call edges on callback-acceptin…
carlos-alm 3e8035d
fix: gate Array.from's callback arg by position, not just callee name
carlos-alm 879635e
fix: scope reexportedSymbols to actually-named re-export specifiers
carlos-alm 0fe9fc3
fix: stop CFG block/edge count from overriding AST-derived cyclomatic…
carlos-alm ccf3c19
fix: backfill edges.technique for incrementally-inserted calls edges
carlos-alm d5b1162
fix: wrap remote embedding JSON parse failure in EngineError
carlos-alm 8971017
refactor: extract shared platform-default-path helper in config.ts
carlos-alm 056c5e4
refactor: decompose loadConfig and related high-effort functions in c…
carlos-alm 0738171
refactor: decompose findDbPath and openRepo in db/connection.ts (docs…
carlos-alm 6f2423c
refactor: dedupe busy/locked error detection into isBusyOrLockedError
carlos-alm 4c02378
fix: log statSync failures in findDbPath instead of silently swallowi…
carlos-alm 0698e16
test: add direct unit coverage for closeDbPair/closeDbPairDeferred/cl…
carlos-alm 4ac3b99
fix: correct blast-radius/fn-impact computation for line-shifted decl…
carlos-alm 6767f09
feat: wire points-to solver max-iterations cap through DEFAULTS.analy…
carlos-alm 5f6f30a
refactor: route console.log calls in domain/search through logger
carlos-alm b479318
refactor: reduce cyclomatic complexity of computeDeltaModularityDirected
carlos-alm c39ac40
refactor: unify impact-level rendering format between audit and fn-im…
carlos-alm 067674f
refactor: dedupe computeSavings via pct helper and persist partial to…
carlos-alm f6807b4
fix: add main.rs driver to rust dynamic tracer fixture
carlos-alm 1c07a54
fix: scope diff file-header detection to between-hunk positions
carlos-alm bf82aa2
fix: update titan-grind's dead-symbol script for current roles --json…
carlos-alm cd02d27
fix: thread configured busyTimeoutMs through remaining read-only quer…
carlos-alm 980b5dc
fix: resolve computed string-literal keys in object-literal extractio…
carlos-alm 4a873a3
fix: add same-class bare-call fallback to incremental rebuild path (d…
carlos-alm 8f3348a
fix: unify Object.defineProperty accessor fallback kind-filtering bet…
carlos-alm acf804c
refactor: share chunked statement-cache primitive between builder and…
carlos-alm 986c851
refactor: cache prepared statements in applyEdgeTechniquesAfterNative…
carlos-alm 71e9174
fix: replace fixed-depth directory-proximity check with symmetric dis…
carlos-alm d2935cc
refactor: remove unreachable Partition delta-computation interface me…
carlos-alm 6515186
fix: emit reference edges for function identifiers used as object-lit…
carlos-alm 30c491a
refactor: unify call-ref and tests rendering format between audit and…
carlos-alm 9db911b
fix: classify destructured bindings as constant, not function (docs c…
carlos-alm 70559fc
refactor: adopt timeMedian in remaining benchmark timing loops
carlos-alm 822e0eb
refactor: decompose runPerfBenchmarks in token-benchmark.ts
carlos-alm fcdfe7d
fix: attribute liveness to Lua functions assigned to global/builtin i…
carlos-alm ee6362c
refactor: extract shared sedi() helper for tracer scripts
carlos-alm d4e6212
fix: restore reflection dynamicKind for .call/.apply/.bind (docs chec…
carlos-alm 92756af
fix: resolve merge conflicts with main
carlos-alm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<guard means two constructs that refer to the same target on the same source line will never upgrade a pre-recorded dyn=0 edge to dyn=1, even when the dynamicKind-tagged one is textually first on that line. The most realistic trigger is a bare decorator and a call-expression decorator concatenated on the same line (e.g.@Log @Log() class Foo {}), which the WASM walk pass still delivers out-of-source-order (walk arrives after query phase regardless of line). Native's single-pass walk would emit dyn=1; WASM would not upgrade and emits dyn=0. Consider<=to close this parity gap without reintroducing #1687 —.call/.apply/.bindalways arrive at an equal or later line than a prior direct call, never an earlier one.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch on the same-line decorator gap — but
<=isn't safe here: it would also allowf(); f.call({});written on a single line to re-upgrade, since.call/.apply/.bindare collected in the same query phase as the direct call (not walk-phase-reordered like decorators), soN <= Nwould reintroduce #1687 for that case.Call.lineonly has line granularity, so neither<nor<=alone can distinguish the two same-line scenarios. Filed #2029 to track the real fix (needs either column granularity or a walk-phase/query-phase discriminator) — out of scope for this PR since it needs a structural change, not addressed here.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right — I missed that same-line
f(); f.call({})would hitN <= Nand reintroduce #1687, since those are query-phase calls where line order is preserved but column-level position is what actually distinguishes them. The two same-line scenarios (walk-reordered bare decorator vs. same-phase.call) are indistinguishable at line granularity alone, so neither<nor<=can correctly cover both. The<guard is the right conservative choice here and #2029 is the correct place to resolve it with column or phase discriminator information. Happy to close this out.