mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
C++ namespace cleanup (except tests).
This commit is contained in:
committed by
Daniel Kirchner
parent
8385256bdc
commit
6b23412fae
@@ -32,8 +32,9 @@
|
||||
#include <libdevcore/CommonData.h>
|
||||
|
||||
using namespace std;
|
||||
using namespace dev;
|
||||
using namespace yul;
|
||||
using namespace solidity;
|
||||
using namespace solidity::yul;
|
||||
using namespace solidity::util;
|
||||
|
||||
size_t CodeSize::codeSize(Statement const& _statement)
|
||||
{
|
||||
@@ -152,12 +153,12 @@ void CodeCost::visit(Expression const& _expression)
|
||||
ASTWalker::visit(_expression);
|
||||
}
|
||||
|
||||
void CodeCost::addInstructionCost(eth::Instruction _instruction)
|
||||
void CodeCost::addInstructionCost(evmasm::Instruction _instruction)
|
||||
{
|
||||
dev::eth::Tier gasPriceTier = dev::eth::instructionInfo(_instruction).gasPriceTier;
|
||||
if (gasPriceTier < dev::eth::Tier::VeryLow)
|
||||
evmasm::Tier gasPriceTier = evmasm::instructionInfo(_instruction).gasPriceTier;
|
||||
if (gasPriceTier < evmasm::Tier::VeryLow)
|
||||
m_cost -= 1;
|
||||
else if (gasPriceTier < dev::eth::Tier::High)
|
||||
else if (gasPriceTier < evmasm::Tier::High)
|
||||
m_cost += 1;
|
||||
else
|
||||
m_cost += 49;
|
||||
|
||||
Reference in New Issue
Block a user