You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that even with enter_generated the arg value, rather than arg types, are being passed to the generator. Copied over from #157 (comment):
julia>@generatedfunctionf(x)
:(return x)
end
f (generic function with 1 method)
julia>callf() =f("Hello")
callf (generic function with 1 method)
julia>using JuliaInterpreter
julia> fr = JuliaInterpreter.enter_call(callf)
Frame forcallf() in Main at REPL[2]:1111 ─ %1= (f)("Hello")
21 └── return%1
julia> fr, pc =debug_command(fr, "s")
(Frame forf(x) in Main at REPL[1]:2121 ─ return x
x ="Hello"
caller:callf() in Main at REPL[2]:1, breakpoint(f(x) in Main at REPL[1]:2, %0))
julia> JuliaInterpreter.locals(fr)
2-element Array{JuliaInterpreter.Variable,1}:#self# = f
x ="Hello"
julia> fr = JuliaInterpreter.enter_call(callf)
Frame forcallf() in Main at REPL[2]:1111 ─ %1= (f)("Hello")
21 └── return%1
julia> fr, pc =debug_command(fr, "sg")
(Frame forf(x) in Main at REPL[1]:212CodeInfo(quote
x ="Hello"
caller:callf() in Main at REPL[2]:1, breakpoint(f(x) in Main at REPL[1]:2, %0))
julia> JuliaInterpreter.locals(fr)
2-element Array{JuliaInterpreter.Variable,1}:#self# = f
x ="Hello"
Shouldn't x = String? Note the CodeInfo(quote in the method body; the full expansion is
julia> fr.framecode.src
CodeInfo(quotereturn x
end)
The text was updated successfully, but these errors were encountered:
It seems that even with
enter_generated
the arg value, rather than arg types, are being passed to the generator. Copied over from #157 (comment):Shouldn't
x = String
? Note theCodeInfo(quote
in the method body; the full expansion isThe text was updated successfully, but these errors were encountered: