Skip to content

Commit

Permalink
[MERGE #4070 @Cellule] Increase the Wasm function size limit to 76543…
Browse files Browse the repository at this point in the history
…21 bytes

Merge pull request #4070 from Cellule:wasm_func_limit

Bumping limit according to discussion on WebAssembly/design#1138

Fixes OS#14291237
  • Loading branch information
Cellule committed Oct 26, 2017
2 parents b8e6804 + bb6ab73 commit 191d7ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/WasmReader/WasmLimits.h
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down
2 changes: 1 addition & 1 deletion test/wasm/limits.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 191d7ff

Please sign in to comment.