Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inline more things #66

Merged
merged 2 commits into from
Jul 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/breakpoint_rules.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Returns true if according to the rules, the specified
method or function should be instrumented with potential breakpoints.
The default is to instrument everything.
"""
function should_instrument(rules::BreakpointRules, method)
@inline function should_instrument(rules::BreakpointRules, method)
# If we are going to break on it, then definately instrument it
for rule in rules.breakon_rules
match(rule, method) && return true
Expand Down
2 changes: 1 addition & 1 deletion src/core_control.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function Cassette.overdub(::typeof(HandEvalCtx()), args...)
end


function Cassette.overdub(ctx::HandEvalCtx, f, args...)
@inline function Cassette.overdub(ctx::HandEvalCtx, f, args...)
# This is basically the epicenter of all the logic
# We control the flow of stepping modes
# and which methods are instrumented or not.
Expand Down