Skip to content

Commit 0ad9067

Browse files
committed
JS: pragma[noopt] -> pragma[noinline]
1 parent 96b6c83 commit 0ad9067

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

javascript/ql/src/semmle/javascript/dataflow/internal/CallGraphs.qll

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -84,18 +84,18 @@ module CallGraph {
8484
getAFunctionReference(function, 0, t.continue()).flowsTo(callback)
8585
)
8686
or
87-
result = getABoundFunctionReferenceAux(function, boundArgs, t)
87+
exists(DataFlow::StepSummary summary, DataFlow::TypeTracker t2 |
88+
result = getABoundFunctionReferenceAux(function, boundArgs, t2, summary) and
89+
t = t2.append(summary)
90+
)
8891
}
8992

90-
pragma[noopt]
93+
pragma[noinline]
9194
private
92-
DataFlow::SourceNode getABoundFunctionReferenceAux(DataFlow::FunctionNode function, int boundArgs, DataFlow::TypeTracker t) {
93-
exists(DataFlow::TypeTracker t2, DataFlow::SourceNode prev |
94-
prev = getABoundFunctionReference(function, boundArgs, t2) and
95-
exists(DataFlow::StepSummary summary |
96-
DataFlow::StepSummary::step(prev, result, summary) and
97-
t = t2.append(summary)
98-
)
95+
DataFlow::SourceNode getABoundFunctionReferenceAux(DataFlow::FunctionNode function, int boundArgs, DataFlow::TypeTracker t, DataFlow::StepSummary summary) {
96+
exists(DataFlow::SourceNode prev |
97+
prev = getABoundFunctionReference(function, boundArgs, t) and
98+
DataFlow::StepSummary::step(prev, result, summary)
9999
)
100100
}
101101

0 commit comments

Comments
 (0)