Skip to content

Commit fdd7c95

Browse files
authored
Merge pull request #12 from JuliaDebug/teh/corecompiler
Update for recent changes in JuliaInterpreter
2 parents e4ea062 + 595276f commit fdd7c95

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/LoweredCodeUtils.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
module LoweredCodeUtils
22

3-
using Core: SimpleVector, CodeInfo, SSAValue
3+
using Core: SimpleVector, CodeInfo
44
using Base.Meta: isexpr
55
using JuliaInterpreter
6+
using JuliaInterpreter: SSAValue, SlotNumber, Frame
67
using JuliaInterpreter: @lookup, moduleof, pc_expr, step_expr!, is_global_ref, whichtt,
78
next_until!, finish_and_return!, nstatements, codelocation
89

@@ -36,6 +37,7 @@ function getcallee(stmt)
3637
error(stmt, " is not a call expression")
3738
end
3839

40+
ismethod(frame::Frame) = ismethod(pc_expr(frame))
3941
ismethod(stmt) = isexpr(stmt, :method)
4042
ismethod1(stmt) = isexpr(stmt, :method, 1)
4143
ismethod3(stmt) = isexpr(stmt, :method, 3)
@@ -464,7 +466,7 @@ function bodymethod(mkw::Method)
464466
if isa(stmt, Expr)
465467
if stmt.head == :call
466468
a = stmt.args[argno]
467-
if isa(a, Core.SlotNumber)
469+
if isa(a, SlotNumber)
468470
if slotnames[a.id] == Symbol("#self#")
469471
return true
470472
end

0 commit comments

Comments
 (0)