Jamie Lokier 1574136a25
Precompiles: Change precompile tests to use fixtureCallEvm
Move the EVM setup and call in precompile tests to `fixtureCallEvm` in
`call_evm`.  Extra return values needed for testing are returned specially, and
the convention for reporting gas used is changed to match `asmCallEvm`.

Although the precompile tests used `execPrecompiles` before, `executeOpcodes`
does perfectly well as a substitute, allowing `fixtureCallEvm` to be shared.

_Significantly, this patch also makes `Computation` more or less an internal
type of the EVM now._

Nothing outside the EVM (except `call_evm`) needs access any more to
`Computation`, `execComputation`, `executeOpcodes` or `execPrecompiles`.
Many imports can be trimmed, some files removed, and EVMC is much closer.

(As a bonus, the functions in `call_evm` reveal what capabilities parts of the
program have needed over time, makes certain bugs and inconsistencies clearer,
and suggests how to refactor into a more useful shared entry point.)

Signed-off-by: Jamie Lokier <jamie@shareable.org>
2021-05-05 02:31:46 +01:00
..
2020-07-21 13:25:27 +07:00
2019-11-13 21:49:39 +07:00
2021-04-30 12:56:18 +07:00
2020-11-19 14:23:07 +07:00
2020-01-20 18:36:58 +02:00
2019-01-28 12:38:23 +02:00
2018-05-28 13:22:28 +03:00
2021-04-28 15:24:14 +03:00
2019-04-17 03:56:28 +02:00
2020-07-21 00:16:59 +07:00
2019-11-13 21:49:39 +07:00