Просмотр исходного кода

Enabling Wasm modules for xplat - wip

Arun 9 лет назад
Родитель
Сommit
afe3c6eff9

+ 1 - 0
lib/CMakeLists.txt

@@ -8,3 +8,4 @@ add_subdirectory (Common)
 add_subdirectory (Parser)
 add_subdirectory (Runtime)
 add_subdirectory (Jsrt)
+add_subdirectory (WasmReader)

+ 1 - 1
lib/Common/CommonDefines.h

@@ -623,7 +623,7 @@
 #define ASMJS_PLAT
 #endif
 
-#if defined(ASMJS_PLAT) && defined(_WIN32)
+#if defined(ASMJS_PLAT) 
 #define ENABLE_WASM
 #endif
 

+ 7 - 0
lib/Runtime/Library/CMakeLists.txt

@@ -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)

+ 2 - 1
lib/WasmReader/CMakeLists.txt

@@ -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 (