From 6c1bd95563879df52f701601f06df2c044f78409 Mon Sep 17 00:00:00 2001 From: Gavin1012 Date: Fri, 24 Sep 2021 17:20:57 +0800 Subject: [PATCH 1/2] enable dynamic js-heap-context buffer for debugging Signed-off-by: Gavin1012 --- jerry-port/config-jupiter.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jerry-port/config-jupiter.h b/jerry-port/config-jupiter.h index e26b062a..fbbc8f9a 100644 --- a/jerry-port/config-jupiter.h +++ b/jerry-port/config-jupiter.h @@ -33,8 +33,8 @@ #define JS_TASK_HEAP_SIZE (64) #endif /* JS_TASK_HEAP_SIZE */ -// >= 51400 + (64-48) * 1024 + 8 -#define JS_TASK_CONTEXT_AND_HEAP_SIZE_BYTE (JS_TASK_HEAP_SIZE * CONVERTION_RATIO + 2248 + 16) +// >= 51400 + (64-48) * 1024 + 8 / JS_TASK_HEAP_SIZE + JERRY_CONTEXT_T +#define JS_TASK_CONTEXT_AND_HEAP_SIZE_BYTE (JS_TASK_HEAP_SIZE * CONVERTION_RATIO + sizeof(jerry_context_t) + 16) #endif /* JERRY_IAR_JUPITER */ -- Gitee From 03cb1c91a5634b927fe365245e1a3ddbc9bbff37 Mon Sep 17 00:00:00 2001 From: Gavin1012 Date: Tue, 9 Nov 2021 19:06:32 +0800 Subject: [PATCH 2/2] shield unannotated fall-through warning Signed-off-by: Gavin1012 --- BUILD.gn | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BUILD.gn b/BUILD.gn index d4f04489..b078ac0b 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -35,6 +35,7 @@ if (defined(ohos_lite)) { # is on lite Os for ipcamera cflags = [ "-Wno-unused-function", "-Wno-sign-compare", + "-Wno-implicit-fallthrough", ] include_dirs = [ "." ] } @@ -66,6 +67,7 @@ if (defined(ohos_lite)) { # is on lite Os for ipcamera "-Wno-unused-function", "-Wno-sign-compare", "-Wno-error", # jerry add + "-Wno-implicit-fallthrough", ] include_dirs = [ "." ] } -- Gitee