Skip to content

refactor[codegen]: refactor assembly #4663

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

Draft
wants to merge 69 commits into
base: master
Choose a base branch
from

Conversation

charles-cooper
Copy link
Member

What I did

remove recursion from assembly. continuation of #4629

How I did it

How to verify it

Commit message

Commit message for the final, squashed PR. (Optional, but reviewers will appreciate it! Please see our commit message style guide for what we would ideally like to see in a commit message.)

Description for the changelog

Cute Animal Picture

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

def __init__(self, item: bytes | Label):
self.data = item

def __repr__(self):

Check notice

Code scanning / CodeQL

Explicit returns mixed with implicit (fall through) returns Note

Mixing implicit and explicit returns may indicate an error as implicit returns always return None.
# at _sym_revert0 to: INVALID
return [_revert_label, "JUMPI"]
# a string (assembly instruction) but with additional metadata from the source code
class TaggedInstruction(str):

Check warning

Code scanning / CodeQL

`__eq__` not overridden when adding attributes Warning

The class 'TaggedInstruction' does not override
'__eq__'
, but adds the new attribute
error_msg
.
The class 'TaggedInstruction' does not override
'__eq__'
, but adds the new attribute
pc_debugger
.
The class 'TaggedInstruction' does not override
'__eq__'
, but adds the new attribute
ast_source
.
Copy link

codecov bot commented May 26, 2025

Codecov Report

Attention: Patch coverage is 95.46061% with 34 lines in your changes missing coverage. Please review.

Project coverage is 92.92%. Comparing base (533682d) to head (694f63d).

Files with missing lines Patch % Lines
vyper/ir/compile_ir.py 96.38% 11 Missing and 10 partials ⚠️
vyper/compiler/phases.py 89.13% 1 Missing and 4 partials ⚠️
vyper/venom/venom_to_assembly.py 92.72% 4 Missing ⚠️
vyper/compiler/output.py 88.00% 3 Missing ⚠️
vyper/cli/venom_main.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4663      +/-   ##
==========================================
+ Coverage   92.80%   92.92%   +0.12%     
==========================================
  Files         131      131              
  Lines       18947    19033      +86     
  Branches     3289     3262      -27     
==========================================
+ Hits        17583    17686     +103     
+ Misses        933      927       -6     
+ Partials      431      420      -11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

2 participants