@@ -169,7 +169,7 @@ function postprint_linelinks(io::IO, idx::Int, src::CodeInfo, cl::CodeLinks, bbc
169
169
stmt = src. code[idx]
170
170
if isexpr (stmt, :(= ))
171
171
lhs = stmt. args[1 ]
172
- if isslotnum (lhs)
172
+ if @issslotnum (lhs)
173
173
# id = lhs.id
174
174
# preds, succs = cl.slotpreds[id], cl.slotsuccs[id]
175
175
printstyled (io, " see slot " , lhs. id, ' \n ' , color= :yellow )
@@ -246,7 +246,7 @@ function direct_links!(cl::CodeLinks, src::CodeInfo)
246
246
# An assignment
247
247
stmt = stmt:: Expr
248
248
lhs, rhs = stmt. args[1 ], stmt. args[2 ]
249
- if isslotnum (lhs)
249
+ if @issslotnum (lhs)
250
250
lhs = lhs:: AnySlotNumber
251
251
id = lhs. id
252
252
target = P (SlotNumber (id), cl. slotpreds[id])
@@ -278,11 +278,11 @@ function add_links!(target::Pair{Union{SSAValue,SlotNumber,NamedVar},Links}, @no
278
278
_targetid, targetstore = target
279
279
targetid = _targetid:: Union{SSAValue,SlotNumber,NamedVar}
280
280
# Adds bidirectional edges
281
- if isssa (stmt)
281
+ if @ isssa (stmt)
282
282
stmt = stmt:: AnySSAValue
283
283
push! (targetstore, SSAValue (stmt. id)) # forward edge
284
284
push! (cl. ssasuccs[stmt. id], targetid) # backward edge
285
- elseif isslotnum (stmt)
285
+ elseif @issslotnum (stmt)
286
286
stmt = stmt:: AnySlotNumber
287
287
push! (targetstore, SlotNumber (stmt. id))
288
288
push! (cl. slotsuccs[stmt. id], targetid)
@@ -298,7 +298,7 @@ function add_links!(target::Pair{Union{SSAValue,SlotNumber,NamedVar},Links}, @no
298
298
arng = 1 : length (stmt. args)
299
299
if stmt. head === :call
300
300
f = stmt. args[1 ]
301
- if ! isssa (f) && ! isslotnum (f)
301
+ if ! @ isssa (f) && ! @issslotnum (f)
302
302
# Avoid putting named callees on the namestore
303
303
arng = 2 : length (stmt. args)
304
304
end
@@ -418,7 +418,7 @@ function CodeEdges(src::CodeInfo, cl::CodeLinks)
418
418
stmt = stmt:: Expr
419
419
lhs = stmt. args[1 ]
420
420
# Mark predecessors and successors of this line by following ssas & named assignments
421
- if isslotnum (lhs)
421
+ if @issslotnum (lhs)
422
422
lhs = lhs:: AnySlotNumber
423
423
# This line assigns a slot. Mark all predecessors.
424
424
id = lhs. id
@@ -796,7 +796,7 @@ function selective_eval!(@nospecialize(recurse), frame::Frame, isrequired::Abstr
796
796
pcexec = te ? pc : pcexec
797
797
end
798
798
isa (pc, BreakpointRef) && return pc
799
- pcexec = pcexec === nothing ? pclast : pcexec
799
+ pcexec = ( pcexec === nothing ? pclast : pcexec) :: Int
800
800
frame. pc = pcexec
801
801
node = pc_expr (frame)
802
802
is_return (node) && return lookup_return (frame, node)
0 commit comments