From e088640405b5a326149a8108e7bf95c7f48261f4 Mon Sep 17 00:00:00 2001 From: Pip Cet Date: Thu, 4 Feb 2021 07:36:40 +0000 Subject: [PATCH] jsc/wasm32/wasm32.jsc: parametrize default sizes --- jsc/wasm32/wasm32.jsc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/jsc/wasm32/wasm32.jsc b/jsc/wasm32/wasm32.jsc index b536250d..d73e1347 100644 --- a/jsc/wasm32/wasm32.jsc +++ b/jsc/wasm32/wasm32.jsc @@ -1,5 +1,6 @@ #{#define _GNU_SOURCE} #{#include "js3.h"} +#{#include "thinthin.h"} #{#include "zeropage.h"} #{#include } #{#include } @@ -976,10 +977,10 @@ function Wasm32Thread(kport, process, threadpage, vm) system.threads.push(this); var sizes = { - tablesize: 65536, - memsize: 512 * 1024 * 1024, - stacksize: 1 * 1024 * 1024, - stackbottom: 511 * 1024 * 1024, + tablesize: %{default_sizes.tablesize}, + memsize: %{default_sizes.memsize}, + stacksize: %{default_sizes.stacksize}, + stackbottom: %{default_sizes.stackbottom}, }; vm ||= new Wasm32VM(sizes);