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

refactor: initcode generation #3574

Merged

Conversation

charles-cooper
Copy link
Member

move internal function generation to after ctor generation. prior to this commit, the existing code relies on the fact that the code generation of runtime internal functions properly sets the frame information of the ctor's callees. if this precondition is not met in the future, the compiler could panic because the memory allocation info will not be available.

What I did

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-->

move internal function generation to after ctor generation. prior to
this commit, the existing code relies on the fact that the code
generation of runtime internal functions properly sets the frame
information of the ctor's callees. if this precondition is not met in
the future, the compiler could panic because the memory allocation info
will not be available.

chainsec june 2023 review 6.2
@codecov-commenter
Copy link

codecov-commenter commented Aug 31, 2023

Codecov Report

Merging #3574 (385f21c) into master (43c8d85) will decrease coverage by 0.02%.
Report is 4 commits behind head on master.
The diff coverage is 100.00%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the GitHub App Integration for your organization. Read more.

@@            Coverage Diff             @@
##           master    #3574      +/-   ##
==========================================
- Coverage   89.13%   89.11%   -0.02%     
==========================================
  Files          85       85              
  Lines       11365    11366       +1     
  Branches     2585     2585              
==========================================
- Hits        10130    10129       -1     
- Misses        813      816       +3     
+ Partials      422      421       -1     
Files Changed Coverage Δ
vyper/codegen/module.py 98.80% <100.00%> (+<0.01%) ⬆️

... and 4 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@fubuloubu fubuloubu changed the title chore: refactor initcode generation refactor: initcode generation Aug 31, 2023
@charles-cooper charles-cooper merged commit ef1c589 into vyperlang:master Aug 31, 2023
76 of 77 checks passed
@charles-cooper charles-cooper deleted the chore/initcode-style branch August 31, 2023 20:26
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