Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

aleth-interpreter library #5080

Merged
merged 6 commits into from
Jun 20, 2018
Merged

aleth-interpreter library #5080

merged 6 commits into from
Jun 20, 2018

Conversation

chfast
Copy link
Collaborator

@chfast chfast commented Jun 19, 2018

No description provided.

@chfast chfast requested review from gumb0 and axic June 19, 2018 11:33
#include "VMConfig.h"
#include "VMFace.h"

#include <libevm/VMFace.h>
Copy link
Member

Choose a reason for hiding this comment

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

So libaleth-interpreter depends on libevm? This is going to change later, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Only on headers. This should change, but is not a priority. Home helper functions are defined in VMFace.h. I didn't want to do a lot of changes when moving files.

At least this PR allow building aleth-interpreter as a shared library and distribute it in this form.

@@ -0,0 +1,433 @@
/*
Copy link
Member

Choose a reason for hiding this comment

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

Hm, why does github doesn't show this file as moved

Copy link
Member

Choose a reason for hiding this comment

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

Did you change it?

Copy link
Member

Choose a reason for hiding this comment

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

Ah is it copied?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's a copy. The config was shared between legacy and interpreter VMs.

Copy link
Member

Choose a reason for hiding this comment

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

Perhaps you want to move the file to libaleth-interpreter and place a copy into the original directory?

That way if libaleth-interpreter is split out of the main tree using "git magic" the history will stay proper.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't think VMConfig is super important, but I can try to do it.

@chfast
Copy link
Collaborator Author

chfast commented Jun 19, 2018

I believe there are 2 easy changes that can be done here later. Use instruction metrics from evmc library and do not include headers from libevm. Maybe third would be to remove some compile time optimization options (only leave the default values).

But we have to decide what to do with #5065 as these 2 are in conflict.

@axic
Copy link
Member

axic commented Jun 19, 2018

The above is my only comment and I like the change FWIW. Would vote to merge this first, the other PR should detect if files are moved during a rebase and apply the changes properly.

@codecov-io
Copy link

codecov-io commented Jun 20, 2018

Codecov Report

Merging #5080 into develop will decrease coverage by 2.32%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #5080      +/-   ##
===========================================
- Coverage    60.95%   58.62%   -2.33%     
===========================================
  Files          337      335       -2     
  Lines        26787    26434     -353     
  Branches      3162     3136      -26     
===========================================
- Hits         16327    15496     -831     
- Misses        9404     9932     +528     
+ Partials      1056     1006      -50

Copy link
Collaborator Author

@chfast chfast left a comment

Choose a reason for hiding this comment

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

Applied requested git history changes. GitHub might be confused because the commits are not in chronological order.

@@ -0,0 +1,444 @@
/*
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is a copy now.

@chfast chfast merged commit 1e5d1f7 into develop Jun 20, 2018
@chfast chfast deleted the aleth-interpreter branch June 20, 2018 17:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants