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

[Merged by Bors] - fix(vm): off-by-one in code block stringification. #1999

Closed
wants to merge 1 commit into from

Conversation

tsutton
Copy link
Contributor

@tsutton tsutton commented Apr 2, 2022

Acked-by: Taylor Sutton tsutton125@gmail.com

This Pull Request fixes/closes #1998

The call to retrieve operands modifies pc, setting it to the index of
the next instruction. So, we save its initial value and use that
for printing.

The call to retrieve operands modifies pc, setting it to the index of
the *next* instruction. So, we save its initial value and use that
for printing.

Acked-by: Taylor Sutton <tsutton125@gmail.com>
@codecov
Copy link

codecov bot commented Apr 2, 2022

Codecov Report

Merging #1999 (82e9652) into main (a5337a9) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #1999      +/-   ##
==========================================
- Coverage   45.90%   45.90%   -0.01%     
==========================================
  Files         206      206              
  Lines       17148    17148              
==========================================
- Hits         7872     7871       -1     
- Misses       9276     9277       +1     
Impacted Files Coverage Δ
boa_engine/src/vm/code_block.rs 45.37% <0.00%> (-0.45%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a5337a9...82e9652. Read the comment docs.

@raskad raskad added the bug Something isn't working label Apr 2, 2022
@raskad raskad added this to the v0.15.0 milestone Apr 2, 2022
Copy link
Member

@raskad raskad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find, thank you for the contribution!

Copy link
Member

@jedel1043 jedel1043 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jedel1043
Copy link
Member

bors r+

bors bot pushed a commit that referenced this pull request Apr 2, 2022
Acked-by: Taylor Sutton <tsutton125@gmail.com>

This Pull Request fixes/closes #1998 

The call to retrieve operands modifies pc, setting it to the index of
the *next* instruction. So, we save its initial value and use that
for printing.
@bors
Copy link

bors bot commented Apr 2, 2022

Pull request successfully merged into main.

Build succeeded:

@bors bors bot changed the title fix(vm): off-by-one in code block stringification. [Merged by Bors] - fix(vm): off-by-one in code block stringification. Apr 2, 2022
@bors bors bot closed this Apr 2, 2022
Razican pushed a commit that referenced this pull request Jun 8, 2022
Acked-by: Taylor Sutton <tsutton125@gmail.com>

This Pull Request fixes/closes #1998 

The call to retrieve operands modifies pc, setting it to the index of
the *next* instruction. So, we save its initial value and use that
for printing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Locations in dumps of compiled code blocks are off by one
3 participants