Browse Source

Increase the Wasm function size limit to 7654321 bytes

Michael Ferris 8 năm trước cách đây
mục cha
commit
bb6ab73270
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      lib/WasmReader/WasmLimits.h
  2. 1 1
      test/wasm/limits.js

+ 1 - 1
lib/WasmReader/WasmLimits.h

@@ -26,7 +26,7 @@ namespace Wasm {
         static const uint32 MaxMemoryInitialPages = 16384;
         static const uint32 MaxMemoryMaximumPages = 65536;
         static const uint32 MaxModuleSize = 1024 * 1024 * 1024;
-        static const uint32 MaxFunctionSize = 128 * 1024;
+        static const uint32 MaxFunctionSize = 7654321;
     public:
         // Use accessors to easily switch to config flags if needed
         static uint32 GetMaxTypes() { return CONFIG_FLAG(WasmIgnoreLimits) ? UINT32_MAX : MaxTypes; }

+ 1 - 1
test/wasm/limits.js

@@ -21,7 +21,7 @@ const MaxBrTableElems = 1000000;
 const MaxMemoryInitialPages = 16384;
 const MaxMemoryMaximumPages = 65536;
 const MaxModuleSize = 1024 * 1024 * 1024;
-const MaxFunctionSize = 128 * 1024;
+const MaxFunctionSize = 7654321;
 
 /* global assert,testRunner */ // eslint rule
 WScript.LoadScriptFile("../UnitTestFrameWork/UnitTestFrameWork.js");