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

Adds -f bytecode_runtime support. #497

Merged
merged 2 commits into from
Nov 24, 2017

Conversation

jacqueswww
Copy link
Contributor

@jacqueswww jacqueswww commented Nov 23, 2017

- What I did

Adds -f bytecode_runtime support. For populus integration the runtime bytecode is required, this adds a format to the viper binary. The solc equivalent would be: --bin-runtime.

- How I did it

Came up for the populus integration. Traced the lll output from -f ir.

- How to verify it

Hmm not sure, place a debugger in def compile and check the lll value.

- Description for the changelog

Adds support for -f bytecode_runtime.

- Cute Animal Picture

@jacqueswww jacqueswww force-pushed the bytecode_runtime_output branch from 913a87d to 4c2f0bf Compare November 23, 2017 14:42
@fubuloubu
Copy link
Member

Nice! Coverage decreased from the added statements... Do we have open loop cases just showing that some bytecode is produced for all of these outputs? It doesn't necessarily need to match anything, just produce something other than empty. That will gain coverage for these circumstances

@jacqueswww
Copy link
Contributor Author

Ah yes good idea, I was contemplating how to write a test for this change 😋

@jacqueswww
Copy link
Contributor Author

jacqueswww commented Nov 24, 2017

@DavidKnott @fubuloubu I added the necessary the -0.0001% (or whichever it is) are the extra changes in the viper bin. Which we just have to live with for now :)

@fubuloubu
Copy link
Member

Love it

@DavidKnott
Copy link
Contributor

LGTM

@DavidKnott DavidKnott merged commit 4ff6b7a into vyperlang:master Nov 24, 2017
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