aboutsummaryrefslogtreecommitdiffstats
path: root/CompilerUtils.h
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-01-09 07:27:26 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-01-09 07:27:26 +0800
commit9cf1c066fce4909e2ce2adebc713beef941508c6 (patch)
tree76388826ae2af11d4023bf82672668d69e720db5 /CompilerUtils.h
parenta7b661d3be53b4c6a05401782ab8f90202a4f776 (diff)
downloaddexon-solidity-9cf1c066fce4909e2ce2adebc713beef941508c6.tar.gz
dexon-solidity-9cf1c066fce4909e2ce2adebc713beef941508c6.tar.zst
dexon-solidity-9cf1c066fce4909e2ce2adebc713beef941508c6.zip
Adjustments to Solidity compiler code for Function Hash
Diffstat (limited to 'CompilerUtils.h')
-rw-r--r--CompilerUtils.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/CompilerUtils.h b/CompilerUtils.h
index bffd6f49..6bd8d315 100644
--- a/CompilerUtils.h
+++ b/CompilerUtils.h
@@ -30,9 +30,6 @@ namespace solidity {
class Type; // forward
-/// The size in bytes of the function (hash) identifier
-static const unsigned int g_functionIdentifierOffset = 4;
-
class CompilerUtils
{
public:
@@ -61,10 +58,14 @@ public:
static unsigned getSizeOnStack(std::vector<T> const& _variables);
static unsigned getSizeOnStack(std::vector<std::shared_ptr<Type const>> const& _variableTypes);
+ /// Bytes we need to the start of call data.
+ /// - The size in bytes of the function (hash) identifier.
+ static const unsigned int dataStartOffset;
private:
CompilerContext& m_context;
};
+
template <class T>
unsigned CompilerUtils::getSizeOnStack(std::vector<T> const& _variables)
{