mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 04:36:42 +00:00
Merge branch 'develop-evmcc' of https://github.com/imapp-pl/ethereum into develop-evmcc
This commit is contained in:
commit
29432beef8
1 changed files with 4 additions and 9 deletions
|
|
@ -101,7 +101,10 @@ int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
auto compilationStartTime = std::chrono::high_resolution_clock::now();
|
auto compilationStartTime = std::chrono::high_resolution_clock::now();
|
||||||
|
|
||||||
auto compiler = eth::jit::Compiler();
|
eth::jit::Compiler::Options options;
|
||||||
|
options.dumpCFG = opt_dump_graph;
|
||||||
|
|
||||||
|
auto compiler = eth::jit::Compiler(options);
|
||||||
auto module = compiler.compile({bytecode.data(), bytecode.size()});
|
auto module = compiler.compile({bytecode.data(), bytecode.size()});
|
||||||
|
|
||||||
auto compilationEndTime = std::chrono::high_resolution_clock::now();
|
auto compilationEndTime = std::chrono::high_resolution_clock::now();
|
||||||
|
|
@ -115,14 +118,6 @@ int main(int argc, char** argv)
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (opt_dump_graph)
|
|
||||||
{
|
|
||||||
std::ofstream ofs("blocks.dot");
|
|
||||||
compiler.dumpBasicBlockGraph(ofs);
|
|
||||||
ofs.close();
|
|
||||||
std::cout << "Basic blocks graph written to block.dot\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
if (opt_interpret)
|
if (opt_interpret)
|
||||||
{
|
{
|
||||||
auto engine = eth::jit::ExecutionEngine();
|
auto engine = eth::jit::ExecutionEngine();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue