mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 21:26:42 +00:00
Improve Memory code formatting
This commit is contained in:
parent
3ee33cc699
commit
64513d5aaa
2 changed files with 35 additions and 35 deletions
|
|
@ -218,18 +218,18 @@ void Memory::dump(uint64_t _begin, uint64_t _end)
|
||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
|
|
||||||
using namespace dev::eth::jit;
|
using namespace dev::eth::jit;
|
||||||
|
|
||||||
EXPORT uint8_t* mem_resize(Runtime* _rt, i256* _size)
|
EXPORT uint8_t* mem_resize(Runtime* _rt, i256* _size)
|
||||||
{
|
{
|
||||||
auto size = _size->a; // Trunc to 64-bit
|
auto size = _size->a; // Trunc to 64-bit
|
||||||
auto& memory = _rt->getMemory();
|
auto& memory = _rt->getMemory();
|
||||||
memory.resize(size);
|
memory.resize(size);
|
||||||
return memory.data();
|
return memory.data();
|
||||||
}
|
}
|
||||||
|
|
||||||
EXPORT void evmccrt_memory_dump(uint64_t _begin, uint64_t _end)
|
EXPORT void evmccrt_memory_dump(uint64_t _begin, uint64_t _end)
|
||||||
{
|
{
|
||||||
//if (_end == 0)
|
//if (_end == 0)
|
||||||
// _end = Runtime::getMemory().size();
|
// _end = Runtime::getMemory().size();
|
||||||
|
|
||||||
|
|
@ -250,6 +250,6 @@ EXPORT void evmccrt_memory_dump(uint64_t _begin, uint64_t _end)
|
||||||
// std::cerr << std::hex << std::setw(2) << static_cast<int>(b) << ' ';
|
// std::cerr << std::hex << std::setw(2) << static_cast<int>(b) << ' ';
|
||||||
//}
|
//}
|
||||||
//std::cerr << std::endl;
|
//std::cerr << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // extern "C"
|
} // extern "C"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue