mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Pinhole optimise working fairly well...
This commit is contained in:
parent
ef95ba9ac3
commit
305ddf1fed
4
vm.cpp
4
vm.cpp
@ -163,7 +163,7 @@ public:
|
|||||||
|
|
||||||
thisTxCode.clear();
|
thisTxCode.clear();
|
||||||
if (_o["code"].type() == str_type)
|
if (_o["code"].type() == str_type)
|
||||||
thisTxCode = compileLLL(_o["code"].get_str(), nullptr);
|
thisTxCode = compileLLL(_o["code"].get_str());
|
||||||
else
|
else
|
||||||
for (auto const& j: _o["code"].get_array())
|
for (auto const& j: _o["code"].get_array())
|
||||||
thisTxCode.push_back(toByte(j));
|
thisTxCode.push_back(toByte(j));
|
||||||
@ -278,7 +278,7 @@ public:
|
|||||||
get<2>(a)[adr++] = toInt(k);
|
get<2>(a)[adr++] = toInt(k);
|
||||||
}
|
}
|
||||||
if (o["code"].type() == str_type)
|
if (o["code"].type() == str_type)
|
||||||
get<3>(a) = compileLLL(o["code"].get_str(), nullptr);
|
get<3>(a) = compileLLL(o["code"].get_str());
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
get<3>(a).clear();
|
get<3>(a).clear();
|
||||||
|
Loading…
Reference in New Issue
Block a user