aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/GasEstimator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libsolidity/GasEstimator.cpp')
-rw-r--r--libsolidity/GasEstimator.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/libsolidity/GasEstimator.cpp b/libsolidity/GasEstimator.cpp
index 01219a65..d576561a 100644
--- a/libsolidity/GasEstimator.cpp
+++ b/libsolidity/GasEstimator.cpp
@@ -52,7 +52,7 @@ GasEstimator::ASTGasConsumptionSelfAccumulated GasEstimator::structuralEstimatio
GasMeter meter(block.startState->copy());
auto const end = _items.begin() + block.end;
for (auto iter = _items.begin() + block.begin; iter != end; ++iter)
- particularCosts[iter->getLocation()] += meter.estimateMax(*iter);
+ particularCosts[iter->location()] += meter.estimateMax(*iter);
}
set<ASTNode const*> finestNodes = finestNodesAtLocation(_ast);
@@ -61,7 +61,7 @@ GasEstimator::ASTGasConsumptionSelfAccumulated GasEstimator::structuralEstimatio
{
if (!finestNodes.count(&_node))
return true;
- gasCosts[&_node][0] = gasCosts[&_node][1] = particularCosts[_node.getLocation()];
+ gasCosts[&_node][0] = gasCosts[&_node][1] = particularCosts[_node.location()];
return true;
};
auto onEdge = [&](ASTNode const& _parent, ASTNode const& _child)
@@ -156,7 +156,7 @@ GasEstimator::GasConsumption GasEstimator::functionalEstimation(
{
auto state = make_shared<KnownState>();
- unsigned parametersSize = CompilerUtils::getSizeOnStack(_function.getParameters());
+ unsigned parametersSize = CompilerUtils::sizeOnStack(_function.parameters());
if (parametersSize > 16)
return GasConsumption::infinite();
@@ -178,9 +178,9 @@ set<ASTNode const*> GasEstimator::finestNodesAtLocation(
set<ASTNode const*> nodes;
SimpleASTVisitor visitor(function<bool(ASTNode const&)>(), [&](ASTNode const& _n)
{
- if (!locations.count(_n.getLocation()))
+ if (!locations.count(_n.location()))
{
- locations[_n.getLocation()] = &_n;
+ locations[_n.location()] = &_n;
nodes.insert(&_n);
}
});