@@ -8,3 +8,4 @@ add_subdirectory (Common)
add_subdirectory (Parser)
add_subdirectory (Runtime)
add_subdirectory (Jsrt)
+add_subdirectory (WasmReader)
@@ -623,7 +623,7 @@
#define ASMJS_PLAT
#endif
-#if defined(ASMJS_PLAT) && defined(_WIN32)
+#if defined(ASMJS_PLAT)
#define ENABLE_WASM
@@ -114,6 +114,13 @@ set(CRLIB_SOURCE_CODES
TypedArray.cpp
TypedArrayIndexEnumerator.cpp
UriHelper.cpp
+ WasmLibrary.cpp
+ WebAssembly.cpp
+ WebAssemblyEnvironment.cpp
+ WebAssemblyInstance.cpp
+ WebAssemblyMemory.cpp
+ WebAssemblyModule.cpp
+ WebAssemblyTable.cpp
)
if(CC_TARGETS_AMD64)
@@ -3,11 +3,12 @@ add_library (Chakra.WasmReader OBJECT
WasmDataSegment.cpp
WasmElementSegment.cpp
WasmFunctionInfo.cpp
- WasmModule.cpp
WasmSection.cpp
WasmSignature.cpp
WasmBinaryReader.cpp
WasmByteCodeGenerator.cpp
+ WasmCustomReader.cpp
+ WasmGlobal.cpp
target_include_directories (