Skip to content

Commit 3932df2

Browse files
authored
Merge pull request #31 from JuliaDebug/teh/for_revise
Fixes and API extensions to serve as foundation for Revise 3.0
2 parents 00c82ff + aa47ee1 commit 3932df2

File tree

7 files changed

+505
-108
lines changed

7 files changed

+505
-108
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "LoweredCodeUtils"
22
uuid = "6f1432cf-f94c-5a45-995e-cdbf5db27b0b"
33
authors = ["Tim Holy <[email protected]>"]
4-
version = "1.0.0"
4+
version = "1.1.0"
55

66
[deps]
77
JuliaInterpreter = "aa1ae85d-cabe-5617-a682-6adf51b2e16a"

docs/src/edges.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ Code:
182182
Here the edges are printed right after each line.
183183

184184
!!! note
185-
Useful output from `print_with_code` requires at least version 1.6.0-DEV.95 of Julia.
185+
"Nice" output from `print_with_code` requires at least version 1.6.0-DEV.95 of Julia.
186186

187187
Suppose we want to evaluate just the lines needed to compute `s`.
188188
We can find out which lines these are with

src/LoweredCodeUtils.jl

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
11
module LoweredCodeUtils
22

3+
if isdefined(Base, :Experimental) && isdefined(Base.Experimental, Symbol("@optlevel"))
4+
@eval Base.Experimental.@optlevel 1
5+
end
6+
37
using Core: SimpleVector, CodeInfo, NewvarNode, GotoNode
48
using Base.Meta: isexpr
59
using JuliaInterpreter
610
using JuliaInterpreter: SSAValue, SlotNumber, Frame
7-
using JuliaInterpreter: @lookup, moduleof, pc_expr, step_expr!, is_global_ref, whichtt,
11+
using JuliaInterpreter: @lookup, moduleof, pc_expr, step_expr!, is_global_ref, is_quotenode, whichtt,
812
next_until!, finish_and_return!, get_return, nstatements, codelocation
913

1014
const SSAValues = Union{Core.Compiler.SSAValue, JuliaInterpreter.SSAValue}
1115

1216
const structheads = VERSION >= v"1.5.0-DEV.702" ? () : (:struct_type, :abstract_type, :primitive_type)
1317
const trackedheads = (:method, structheads...)
1418

15-
export signature, rename_framemethods!, methoddef!, methoddefs!, bodymethod, CodeEdges,
16-
lines_required, lines_required!, selective_eval!, selective_eval_fromstart!
19+
export signature, rename_framemethods!, methoddef!, methoddefs!, bodymethod
20+
export CodeEdges, lines_required, lines_required!, selective_eval!, selective_eval_fromstart!
1721

1822
include("utils.jl")
1923
include("signatures.jl")

0 commit comments

Comments
 (0)