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

Fix coverage for the first statement in the function #17470

Merged
merged 1 commit into from
Jul 18, 2016

Conversation

yuyichao
Copy link
Contributor

Fixes #17442

Not sure how to add tests but at least this fixes the coverage on my package.

@tkelman
Copy link
Contributor

tkelman commented Jul 18, 2016

why did bd06d27 make this necessary? should see if Coverage.jl's tests might start passing again on this branch

@yuyichao
Copy link
Contributor Author

remove location/pure/inline meta early, in the front end
(the first line node isn't needed, since this info is in the Method object)

@yuyichao
Copy link
Contributor Author

From the commit message

@vtjnash vtjnash merged commit 7cd601e into master Jul 18, 2016
@vtjnash vtjnash deleted the yyc/codegen/coverage-top branch July 18, 2016 05:16
@MichaelHatherly
Copy link
Member

Thanks.

@vtjnash
Copy link
Member

vtjnash commented Jul 18, 2016

Looks like this has fixed coveralls for master (https://coveralls.io/builds/7058631). Thanks :)

@c42f c42f mentioned this pull request Apr 2, 2020
2 tasks
c42f added a commit that referenced this pull request Apr 2, 2020
This special case covering the first function line was required when
line numbers were tracked in a different way - see origin of this use of
`toplineno` in bug #17442 and fix #17470.
c42f added a commit that referenced this pull request Apr 2, 2020
This comes in three pieces:
* In the parser, put an addition LineNumberNode at the top of each
  function body to track the line of the function definition
* In lowering, remove this LineNumberNode from the body and add it as
  the last parameter to method signature in `Expr(:method, name, sig, body)`
* In the runtime, extract the line number node from sig and add it to
  the jl_method_t.

Since the first line is now correctly tracked separately from the body,
a special case in coverage codegen was removed. This was required when
line numbers were tracked in a different way - see origin of this in the
use of `toplineno` in bug #17442 and fix #17470.
c42f added a commit that referenced this pull request Apr 3, 2020
This comes in three pieces:
* In the parser, put an additional LineNumberNode at the top of each
  function body to track the line of the function definition
* In lowering, remove this LineNumberNode from the body and add it as
  the last parameter to method signature in `Expr(:method, name, sig, body)`
* In the runtime, extract the line number node from sig and add it to
  the jl_method_t.

Since the first line is now correctly tracked separately from the body,
a special case in coverage codegen was removed. This was required when
line numbers were tracked in a different way - see origin of this in the
use of `toplineno` in bug #17442 and fix #17470.
oxinabox pushed a commit to oxinabox/julia that referenced this pull request Apr 8, 2020
…35138)

This comes in three pieces:
* In the parser, put an additional LineNumberNode at the top of each
  function body to track the line of the function definition
* In lowering, remove this LineNumberNode from the body and add it as
  the last parameter to method signature in `Expr(:method, name, sig, body)`
* In the runtime, extract the line number node from sig and add it to
  the jl_method_t.

Since the first line is now correctly tracked separately from the body,
a special case in coverage codegen was removed. This was required when
line numbers were tracked in a different way - see origin of this in the
use of `toplineno` in bug JuliaLang#17442 and fix JuliaLang#17470.
ravibitsgoa pushed a commit to ravibitsgoa/julia that referenced this pull request Apr 9, 2020
…35138)

This comes in three pieces:
* In the parser, put an additional LineNumberNode at the top of each
  function body to track the line of the function definition
* In lowering, remove this LineNumberNode from the body and add it as
  the last parameter to method signature in `Expr(:method, name, sig, body)`
* In the runtime, extract the line number node from sig and add it to
  the jl_method_t.

Since the first line is now correctly tracked separately from the body,
a special case in coverage codegen was removed. This was required when
line numbers were tracked in a different way - see origin of this in the
use of `toplineno` in bug JuliaLang#17442 and fix JuliaLang#17470.
ztultrebor pushed a commit to ztultrebor/julia that referenced this pull request Apr 17, 2020
…35138)

This comes in three pieces:
* In the parser, put an additional LineNumberNode at the top of each
  function body to track the line of the function definition
* In lowering, remove this LineNumberNode from the body and add it as
  the last parameter to method signature in `Expr(:method, name, sig, body)`
* In the runtime, extract the line number node from sig and add it to
  the jl_method_t.

Since the first line is now correctly tracked separately from the body,
a special case in coverage codegen was removed. This was required when
line numbers were tracked in a different way - see origin of this in the
use of `toplineno` in bug JuliaLang#17442 and fix JuliaLang#17470.
staticfloat pushed a commit that referenced this pull request Apr 21, 2020
This comes in three pieces:
* In the parser, put an additional LineNumberNode at the top of each
  function body to track the line of the function definition
* In lowering, remove this LineNumberNode from the body and add it as
  the last parameter to method signature in `Expr(:method, name, sig, body)`
* In the runtime, extract the line number node from sig and add it to
  the jl_method_t.

Since the first line is now correctly tracked separately from the body,
a special case in coverage codegen was removed. This was required when
line numbers were tracked in a different way - see origin of this in the
use of `toplineno` in bug #17442 and fix #17470.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0.5 code-coverage regression
4 participants