Skip to content

Commit b6d8895

Browse files
committed
remove binaryen runtime from nodeos
1 parent af4513a commit b6d8895

File tree

13 files changed

+7
-839
lines changed

13 files changed

+7
-839
lines changed

CMakeModules/EosioTester.cmake.in

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ else()
4747
find_library(libfc fc @CMAKE_INSTALL_FULL_LIBDIR@)
4848
endif()
4949

50-
find_library(libbinaryen binaryen @CMAKE_INSTALL_FULL_LIBDIR@)
5150
find_library(libwasm WASM @CMAKE_INSTALL_FULL_LIBDIR@)
5251
find_library(libwast WAST @CMAKE_INSTALL_FULL_LIBDIR@)
5352
find_library(libwabt wabt @CMAKE_INSTALL_FULL_LIBDIR@)
@@ -75,7 +74,6 @@ macro(add_eosio_test test_name)
7574
${libtester}
7675
${libchain}
7776
${libfc}
78-
${libbinaryen}
7977
${libwast}
8078
${libwasm}
8179
${libwabt}

CMakeModules/EosioTesterBuild.cmake.in

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ else()
4747
find_library(libfc fc @CMAKE_BINARY_DIR@/libraries/fc)
4848
endif()
4949

50-
find_library(libbinaryen binaryen @CMAKE_BINARY_DIR@/externals/binaryen/lib)
5150
find_library(libwasm WASM @CMAKE_BINARY_DIR@/libraries/wasm-jit/Source/WASM)
5251
find_library(libwast WAST @CMAKE_BINARY_DIR@/libraries/wasm-jit/Source/WAST)
5352
find_library(libir IR @CMAKE_BINARY_DIR@/libraries/wasm-jit/Source/IR)
@@ -75,7 +74,6 @@ macro(add_eosio_test test_name)
7574
${libtester}
7675
${libchain}
7776
${libfc}
78-
${libbinaryen}
7977
${libwast}
8078
${libwasm}
8179
${libwabt}

libraries/chain/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ add_library( eosio_chain
3737
asset.cpp
3838

3939
webassembly/wavm.cpp
40-
webassembly/binaryen.cpp
4140
webassembly/wabt.cpp
4241

4342
# get_config.cpp
@@ -51,12 +50,11 @@ add_library( eosio_chain
5150
)
5251

5352
target_link_libraries( eosio_chain eos_utilities fc chainbase Logging IR WAST WASM Runtime
54-
wasm asmjs passes cfg ast emscripten-optimizer support softfloat builtins wabt
53+
softfloat builtins wabt
5554
)
5655
target_include_directories( eosio_chain
5756
PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include" "${CMAKE_CURRENT_BINARY_DIR}/include"
5857
"${CMAKE_CURRENT_SOURCE_DIR}/../wasm-jit/Include"
59-
"${CMAKE_CURRENT_SOURCE_DIR}/../../externals/binaryen/src"
6058
"${CMAKE_SOURCE_DIR}/libraries/wabt"
6159
"${CMAKE_BINARY_DIR}/libraries/wabt"
6260
)

libraries/chain/include/eosio/chain/wasm_interface.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ namespace eosio { namespace chain {
5353
public:
5454
enum class vm_type {
5555
wavm,
56-
binaryen,
5756
wabt
5857
};
5958

@@ -77,4 +76,4 @@ namespace eosio{ namespace chain {
7776
std::istream& operator>>(std::istream& in, wasm_interface::vm_type& runtime);
7877
}}
7978

80-
FC_REFLECT_ENUM( eosio::chain::wasm_interface::vm_type, (wavm)(binaryen)(wabt) )
79+
FC_REFLECT_ENUM( eosio::chain::wasm_interface::vm_type, (wavm)(wabt) )

libraries/chain/include/eosio/chain/wasm_interface_private.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
#include <eosio/chain/wasm_interface.hpp>
44
#include <eosio/chain/webassembly/wavm.hpp>
5-
#include <eosio/chain/webassembly/binaryen.hpp>
65
#include <eosio/chain/webassembly/wabt.hpp>
76
#include <eosio/chain/webassembly/runtime_interface.hpp>
87
#include <eosio/chain/wasm_eosio_injection.hpp>
@@ -27,8 +26,6 @@ namespace eosio { namespace chain {
2726
wasm_interface_impl(wasm_interface::vm_type vm) {
2827
if(vm == wasm_interface::vm_type::wavm)
2928
runtime_interface = std::make_unique<webassembly::wavm::wavm_runtime>();
30-
else if(vm == wasm_interface::vm_type::binaryen)
31-
runtime_interface = std::make_unique<webassembly::binaryen::binaryen_runtime>();
3229
else if(vm == wasm_interface::vm_type::wabt)
3330
runtime_interface = std::make_unique<webassembly::wabt_runtime::wabt_runtime>();
3431
else
@@ -98,7 +95,6 @@ namespace eosio { namespace chain {
9895

9996
#define _REGISTER_INTRINSIC_EXPLICIT(CLS, MOD, METHOD, WASM_SIG, NAME, SIG)\
10097
_REGISTER_WAVM_INTRINSIC(CLS, MOD, METHOD, WASM_SIG, NAME, SIG)\
101-
_REGISTER_BINARYEN_INTRINSIC(CLS, MOD, METHOD, WASM_SIG, NAME, SIG)\
10298
_REGISTER_WABT_INTRINSIC(CLS, MOD, METHOD, WASM_SIG, NAME, SIG)
10399

104100
#define _REGISTER_INTRINSIC4(CLS, MOD, METHOD, WASM_SIG, NAME, SIG)\

0 commit comments

Comments
 (0)