mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Running vm_tests with JIT
This commit is contained in:
parent
09a50c84a5
commit
8c871d0f9a
17
vm.cpp
17
vm.cpp
@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
#include "vm.h"
|
#include "vm.h"
|
||||||
#include <libdevcore/CommonIO.h>
|
#include <libdevcore/CommonIO.h>
|
||||||
|
#include <libevmjit/VM.h>
|
||||||
|
|
||||||
#define FILL_TESTS
|
#define FILL_TESTS
|
||||||
|
|
||||||
@ -511,9 +512,19 @@ void doTests(json_spirit::mValue& v, bool _fillin)
|
|||||||
u256 gas;
|
u256 gas;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
VM vm(fev.gas);
|
auto useJit = true;
|
||||||
output = vm.go(fev).toVector();
|
if (useJit)
|
||||||
gas = vm.gas(); // Get the remaining gas
|
{
|
||||||
|
jit::VM vm(fev.gas);
|
||||||
|
output = vm.go(fev);
|
||||||
|
gas = vm.gas();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
VM vm(fev.gas);
|
||||||
|
output = vm.go(fev).toVector();
|
||||||
|
gas = vm.gas(); // Get the remaining gas
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (Exception const& _e)
|
catch (Exception const& _e)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user