Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Jerryscript
提交
052c68d2
T
Third Party Jerryscript
项目概览
OpenHarmony
/
Third Party Jerryscript
9 个月 前同步成功
通知
5
Star
19
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Jerryscript
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
052c68d2
编写于
6月 25, 2021
作者:
G
Gavin1012
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
expand the heap size to 64kb <wanggang203@huawei.com>
Signed-off-by:
N
Gavin1012
<
wanggang203@huawei.com
>
上级
ee070bff
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
17 addition
and
8 deletion
+17
-8
jerry-core/api/external-context-helpers.c
jerry-core/api/external-context-helpers.c
+2
-2
jerry-port/config-jupiter.h
jerry-port/config-jupiter.h
+15
-6
未找到文件。
jerry-core/api/external-context-helpers.c
浏览文件 @
052c68d2
...
...
@@ -34,7 +34,7 @@ static void * bms_task_context_alloc (size_t total_size, void *cb_data_p)
*/
void
bms_task_context_init
(
void
)
{
jerry_context_t
*
bms_task_context
=
jerry_create_context
(
GT
_TASK_HEAP_SIZE
*
CONVERTION_RATIO
,
jerry_context_t
*
bms_task_context
=
jerry_create_context
(
BMS
_TASK_HEAP_SIZE
*
CONVERTION_RATIO
,
bms_task_context_alloc
,
NULL
);
jerry_port_default_set_current_context
(
bms_task_context
);
...
...
@@ -60,7 +60,7 @@ static void * js_task_context_alloc (size_t total_size, void *cb_data_p)
*/
void
js_task_context_init
(
void
)
{
jerry_context_t
*
js_task_context
=
jerry_create_context
(
GT
_TASK_HEAP_SIZE
*
CONVERTION_RATIO
,
jerry_context_t
*
js_task_context
=
jerry_create_context
(
JS
_TASK_HEAP_SIZE
*
CONVERTION_RATIO
,
js_task_context_alloc
,
NULL
);
jerry_port_default_set_current_context
(
js_task_context
);
...
...
jerry-port/config-jupiter.h
浏览文件 @
052c68d2
...
...
@@ -15,14 +15,23 @@
#define INPUTJS_BUFFER_SIZE (32 * 1024)
#define SNAPSHOT_BUFFER_SIZE (24 * 1024)
#define CONVERTION_RATIO (1024)
#define CONTEXT_SIZE_FOR_TASK (3)
#
define GT_TASK_HEAP_SIZE (48)
#define BMS_TASK_
FOR_CONTEXT_SIZE (3
)
#
define BMS_TASK_CONTEXT_AND_HEAP_SIZE (GT_TASK_HEAP_SIZE + BMS_TASK_FOR_CONTEXT_SIZE)
#
ifndef BMS_TASK_HEAP_SIZE
#define BMS_TASK_
HEAP_SIZE (48
)
#
endif
/* BMS_TASK_HEAP_SIZE */
#define
JS_TASK_CONTEXT_AND_HEAP_SIZE_BYTE (51416) // >= 51400 + 8
#define
BMS_TASK_CONTEXT_AND_HEAP_SIZE (BMS_TASK_HEAP_SIZE + CONTEXT_SIZE_FOR_TASK)
#endif // JERRY_IAR_JUPITER
#endif // JERRY_FOR_IAR_CONFIG
#ifndef JS_TASK_HEAP_SIZE
#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)
#endif
/* JERRY_IAR_JUPITER */
#endif
/* JERRY_FOR_IAR_CONFIG */
#endif // CONFIG_JUPITER_H
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录