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: rm seq_unchecked usage in codebase #2485

Merged
merged 10 commits into from
Oct 14, 2021

Conversation

skellet0r
Copy link
Contributor

What I did

With the guidance of @charles-cooper, removed seq_unchecked usage in various places in the codebase.

How I did it

mainly just s/seq_unchecked/seq

How to verify it

Tests pass as usual

Description for the changelog

fix: remove seq_unchecked usage in LLL

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

@codecov-commenter
Copy link

codecov-commenter commented Oct 14, 2021

Codecov Report

Merging #2485 (893766f) into master (12a8b6a) will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2485      +/-   ##
==========================================
+ Coverage   84.54%   84.56%   +0.02%     
==========================================
  Files          93       93              
  Lines        9237     9228       -9     
  Branches     2091     2086       -5     
==========================================
- Hits         7809     7804       -5     
+ Misses        939      937       -2     
+ Partials      489      487       -2     
Impacted Files Coverage Δ
vyper/builtin_functions/functions.py 88.95% <ø> (ø)
vyper/evm/opcodes.py 100.00% <ø> (ø)
vyper/old_codegen/lll_node.py 82.53% <ø> (+0.55%) ⬆️
vyper/old_codegen/parser.py 85.18% <ø> (ø)
vyper/lll/compile_lll.py 94.34% <100.00%> (-0.09%) ⬇️
vyper/lll/optimizer.py 84.07% <100.00%> (+1.27%) ⬆️
vyper/old_codegen/return_.py 93.93% <100.00%> (+0.18%) ⬆️
vyper/old_codegen/stmt.py 87.94% <0.00%> (-0.06%) ⬇️
vyper/old_codegen/expr.py 79.10% <0.00%> (+0.04%) ⬆️

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 12a8b6a...893766f. Read the comment docs.

vyper/old_codegen/lll_node.py Outdated Show resolved Hide resolved
vyper/old_codegen/lll_node.py Show resolved Hide resolved
vyper/old_codegen/return_.py Show resolved Hide resolved
skellet0r and others added 2 commits October 14, 2021 13:41
Charles: A string can be a symbol _sym_xyz or straight variable reference like x, in either case is either a PUSH or a DUP.

Co-authored-by: Charles Cooper <cooper.charles.m@gmail.com>
@@ -322,12 +322,6 @@ def _compile_to_assembly(code, withargs=None, existing_labels=None, break_dest=N
o.append("POP")
return o
# Seq without popping.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
# Seq without popping.

Copy link
Member

@charles-cooper charles-cooper left a comment

Choose a reason for hiding this comment

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

LGTM pending tests passing

@charles-cooper charles-cooper enabled auto-merge (squash) October 14, 2021 19:11
@charles-cooper charles-cooper merged commit 5bf1383 into vyperlang:master Oct 14, 2021
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.

3 participants