mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Rename EWasm/ewasm/eWasm to Ewasm
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
/**
|
||||
* Full assembly stack that can support EVM-assembly and Yul as input and EVM, EVM1.5 and
|
||||
* eWasm as output.
|
||||
* Ewasm as output.
|
||||
*/
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ Dialect const& languageToDialect(AssemblyStack::Language _language, EVMVersion _
|
||||
return EVMDialect::strictAssemblyForEVMObjects(_version);
|
||||
case AssemblyStack::Language::Yul:
|
||||
return Dialect::yul();
|
||||
case AssemblyStack::Language::EWasm:
|
||||
case AssemblyStack::Language::Ewasm:
|
||||
return WasmDialect::instance();
|
||||
}
|
||||
yulAssert(false, "");
|
||||
@@ -108,7 +108,7 @@ void AssemblyStack::translate(AssemblyStack::Language _targetLanguage)
|
||||
return;
|
||||
|
||||
solAssert(
|
||||
m_language == Language::StrictAssembly && _targetLanguage == Language::EWasm,
|
||||
m_language == Language::StrictAssembly && _targetLanguage == Language::Ewasm,
|
||||
"Invalid language combination"
|
||||
);
|
||||
|
||||
@@ -214,9 +214,9 @@ MachineAssemblyObject AssemblyStack::assemble(Machine _machine) const
|
||||
/// TODO: fill out text representation
|
||||
return object;
|
||||
}
|
||||
case Machine::eWasm:
|
||||
case Machine::Ewasm:
|
||||
{
|
||||
yulAssert(m_language == Language::EWasm, "");
|
||||
yulAssert(m_language == Language::Ewasm, "");
|
||||
Dialect const& dialect = languageToDialect(m_language, EVMVersion{});
|
||||
|
||||
MachineAssemblyObject object;
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
/**
|
||||
* Full assembly stack that can support EVM-assembly and Yul as input and EVM, EVM1.5 and
|
||||
* eWasm as output.
|
||||
* Ewasm as output.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
@@ -52,13 +52,13 @@ struct MachineAssemblyObject
|
||||
|
||||
/*
|
||||
* Full assembly stack that can support EVM-assembly and Yul as input and EVM, EVM1.5 and
|
||||
* eWasm as output.
|
||||
* Ewasm as output.
|
||||
*/
|
||||
class AssemblyStack
|
||||
{
|
||||
public:
|
||||
enum class Language { Yul, Assembly, StrictAssembly, EWasm };
|
||||
enum class Machine { EVM, EVM15, eWasm };
|
||||
enum class Language { Yul, Assembly, StrictAssembly, Ewasm };
|
||||
enum class Machine { EVM, EVM15, Ewasm };
|
||||
|
||||
AssemblyStack():
|
||||
AssemblyStack(langutil::EVMVersion{}, Language::Assembly, dev::solidity::OptimiserSettings::none())
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
along with solidity. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/**
|
||||
* EWasm to binary encoder.
|
||||
* Component that transforms internal Wasm representation to binary.
|
||||
*/
|
||||
|
||||
#include <libyul/backends/wasm/BinaryTransform.h>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
along with solidity. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/**
|
||||
* EWasm to binary encoder.
|
||||
* Component that transforms internal Wasm representation to binary.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
along with solidity. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/**
|
||||
* Component that transforms interval Wasm representation to text.
|
||||
* Component that transforms internal Wasm representation to text.
|
||||
*/
|
||||
|
||||
#include <libyul/backends/wasm/TextTransform.h>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
along with solidity. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/**
|
||||
* Component that transforms interval Wasm representation to text.
|
||||
* Component that transforms internal Wasm representation to text.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
Reference in New Issue
Block a user