aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-01-06 07:08:47 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-01-06 09:23:38 +0800
commitc269a12c5ed6fc243e0efd68902f0a0db71fb618 (patch)
tree74602f16e9a3a04078da82b8353c28fc52572897
parent124190336b0a70ea32d5f8ca0c4b364f1fc774d0 (diff)
downloaddexon-solidity-c269a12c5ed6fc243e0efd68902f0a0db71fb618.tar.gz
dexon-solidity-c269a12c5ed6fc243e0efd68902f0a0db71fb618.tar.zst
dexon-solidity-c269a12c5ed6fc243e0efd68902f0a0db71fb618.zip
Support strict assembly mode in AssemblyStack
-rw-r--r--libsolidity/interface/AssemblyStack.cpp2
-rw-r--r--libsolidity/interface/AssemblyStack.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/libsolidity/interface/AssemblyStack.cpp b/libsolidity/interface/AssemblyStack.cpp
index 7cec2798..1b4bd270 100644
--- a/libsolidity/interface/AssemblyStack.cpp
+++ b/libsolidity/interface/AssemblyStack.cpp
@@ -46,6 +46,8 @@ assembly::AsmFlavour languageToAsmFlavour(AssemblyStack::Language _language)
{
case AssemblyStack::Language::Assembly:
return assembly::AsmFlavour::Loose;
+ case AssemblyStack::Language::StrictAssembly:
+ return assembly::AsmFlavour::Strict;
case AssemblyStack::Language::JULIA:
return assembly::AsmFlavour::IULIA;
}
diff --git a/libsolidity/interface/AssemblyStack.h b/libsolidity/interface/AssemblyStack.h
index 2ae596ed..6ae7e8d1 100644
--- a/libsolidity/interface/AssemblyStack.h
+++ b/libsolidity/interface/AssemblyStack.h
@@ -51,7 +51,7 @@ struct MachineAssemblyObject
class AssemblyStack
{
public:
- enum class Language { JULIA, Assembly };
+ enum class Language { JULIA, Assembly, StrictAssembly };
enum class Machine { EVM, EVM15, eWasm };
explicit AssemblyStack(Language _language = Language::Assembly):