aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/interface
diff options
context:
space:
mode:
Diffstat (limited to 'libsolidity/interface')
-rw-r--r--libsolidity/interface/CompilerStack.cpp35
-rw-r--r--libsolidity/interface/CompilerStack.h13
2 files changed, 0 insertions, 48 deletions
diff --git a/libsolidity/interface/CompilerStack.cpp b/libsolidity/interface/CompilerStack.cpp
index 44220402..c3fcc1ef 100644
--- a/libsolidity/interface/CompilerStack.cpp
+++ b/libsolidity/interface/CompilerStack.cpp
@@ -400,15 +400,6 @@ eth::LinkerObject const& CompilerStack::cloneObject(string const& _contractName)
return contract(_contractName).cloneObject;
}
-dev::h256 CompilerStack::contractCodeHash(string const& _contractName) const
-{
- auto const& obj = runtimeObject(_contractName);
- if (obj.bytecode.empty() || !obj.linkReferences.empty())
- return dev::h256();
- else
- return dev::keccak256(obj.bytecode);
-}
-
Json::Value CompilerStack::streamAssembly(ostream& _outStream, string const& _contractName, StringMap _sourceCodes, bool _inJsonFormat) const
{
Contract const& currentContract = contract(_contractName);
@@ -522,24 +513,6 @@ ContractDefinition const& CompilerStack::contractDefinition(string const& _contr
return *contract(_contractName).contract;
}
-size_t CompilerStack::functionEntryPoint(
- std::string const& _contractName,
- FunctionDefinition const& _function
-) const
-{
- shared_ptr<Compiler> const& compiler = contract(_contractName).compiler;
- if (!compiler)
- return 0;
- eth::AssemblyItem tag = compiler->functionEntryLabel(_function);
- if (tag.type() == eth::UndefinedItem)
- return 0;
- eth::AssemblyItems const& items = compiler->runtimeAssemblyItems();
- for (size_t i = 0; i < items.size(); ++i)
- if (items.at(i).type() == eth::Tag && items.at(i).data() == tag.data())
- return i;
- return 0;
-}
-
tuple<int, int, int, int> CompilerStack::positionFromSourceLocation(SourceLocation const& _sourceLocation) const
{
int startLine;
@@ -744,14 +717,6 @@ void CompilerStack::compileContract(
}
}
-std::string CompilerStack::defaultContractName() const
-{
- if (m_stackState != CompilationSuccessful)
- BOOST_THROW_EXCEPTION(CompilerError() << errinfo_comment("Compilation was not successful."));
-
- return contract("").contract->name();
-}
-
CompilerStack::Contract const& CompilerStack::contract(string const& _contractName) const
{
if (m_contracts.empty())
diff --git a/libsolidity/interface/CompilerStack.h b/libsolidity/interface/CompilerStack.h
index 76d36c7b..d97b3960 100644
--- a/libsolidity/interface/CompilerStack.h
+++ b/libsolidity/interface/CompilerStack.h
@@ -117,7 +117,6 @@ public:
bool parseAndAnalyze(std::string const& _sourceCode);
/// @returns a list of the contract names in the sources.
std::vector<std::string> contractNames() const;
- std::string defaultContractName() const;
/// Compiles the source units that were previously added and parsed.
/// @returns false on error.
@@ -159,11 +158,6 @@ public:
/// @returns either the contract's name or a mixture of its name and source file, sanitized for filesystem use
std::string const filesystemFriendlyName(std::string const& _contractName) const;
- /// @returns hash of the runtime bytecode for the contract, i.e. the code that is
- /// returned by the constructor or the zero-h256 if the contract still needs to be linked or
- /// does not have runtime code.
- dev::h256 contractCodeHash(std::string const& _contractName = "") const;
-
/// Streams a verbose version of the assembly to @a _outStream.
/// @arg _sourceCodes is the map of input files to source code strings
/// @arg _inJsonFromat shows whether the out should be in Json format
@@ -197,13 +191,6 @@ public:
/// does not exist.
ContractDefinition const& contractDefinition(std::string const& _contractName) const;
- /// @returns the offset of the entry point of the given function into the list of assembly items
- /// or zero if it is not found or does not exist.
- size_t functionEntryPoint(
- std::string const& _contractName,
- FunctionDefinition const& _function
- ) const;
-
/// Helper function for logs printing. Do only use in error cases, it's quite expensive.
/// line and columns are numbered starting from 1 with following order:
/// start line, start column, end line, end column
class='insertions'>+0 * editors/vile & xvile: Upgrade version 9.8m => 9.8nmarino2014-08-103-7/+9 * - Update to 9.8mmiwi2014-05-194-55/+17 * - Update to version 9.8lmiwi2014-02-275-51/+104 * Stage supportantoine2014-01-082-10/+8 * - Remove manual creation and removal of share/applications, as it's now in th...amdmi32013-10-221-1/+0 * Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-211-0/+1 * Introduce ICONV_CONFIGURE_ARG variable defined at Uses/iconv.mk.bsam2013-09-051-1/+1 * - Remove MAKE_JOBS_SAFE variableak2013-08-151-1/+0 * - Convert to new perl frameworkaz2013-08-031-1/+1 * - Update to 9.8.kmiwi2013-07-113-5/+10 * Convert from USE_MOTIF to USES=motifbapt2013-07-101-1/+1 * - Update to 9.8jmiwi2013-04-293-5/+11 * - Convert USE_ICONV=yes to USES=iconvmva2013-04-271-1/+1 * - Update to 9.8imiwi2013-02-077-1004/+322 * Convert to new options frameworkbapt2013-01-061-34/+13 * - Reassign to the heap at maintainer's requesttabthorpe2012-12-291-6/+2 * Add share/xvile/macros/complete.rc to pkg-plist, which I forgot to do ingj2012-04-211-0/+1 * Update to 9.8g.gj2012-04-166-4/+23 * Update to 9.8e.gj2011-04-112-4/+4 * Fix MASTER_SITES to point to the correct directory. Also modifygj2010-12-191-4/+4 * Update to 9.8c.gj2010-12-182-138/+5 * Update to 9.7gz.gj2010-08-036-2/+35 * Update to 9.7za.gj2010-02-013-24/+10 * Add patch-x11.c to prevent a core dump in case the user has "set rc light"gj2010-01-012-0/+22 * Update to version 9.7y.gj2009-12-297-22/+46 * Update to version 9.7t.gj2009-08-136-2/+46 * Update to 9.7m.gj2009-03-256-2/+18 * Update to 9.7j.gj2009-01-057-6/+74 * Update to version 9.7.gj2008-06-176-78/+53 * - Remove unneeded dependency from gtk12/gtk20 [1]miwi2008-04-201-3/+1 * - Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORGmiwi2008-03-241-1/+2 * It seems that vile now automatically turns on ICONV unless otherwise specifiedgj2008-02-171-0/+12 * Add patch-filec.c to hopefully fix problems seen on the build machines. Itgj2008-02-141-0/+11