Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Jerryscript
提交
aac59cad
T
Third Party Jerryscript
项目概览
OpenHarmony
/
Third Party Jerryscript
10 个月 前同步成功
通知
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 搜索 >>
未验证
提交
aac59cad
编写于
3月 01, 2023
作者:
O
openharmony_ci
提交者:
Gitee
3月 01, 2023
浏览文件
操作
浏览文件
下载
差异文件
!105 轻量&小型设备使能部分es2015支持
Merge pull request !105 from piggyguy_jdx/support_es6_latest
上级
6cafd286
ab0315cc
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
53 addition
and
4 deletion
+53
-4
BUILD.gn
BUILD.gn
+2
-1
engine.gni
engine.gni
+15
-0
jerry-core/BUILD.gn
jerry-core/BUILD.gn
+2
-1
jerry-core/config.h
jerry-core/config.h
+32
-0
jerry-ext/BUILD.gn
jerry-ext/BUILD.gn
+1
-1
jerry-port/default/BUILD.gn
jerry-port/default/BUILD.gn
+1
-1
未找到文件。
BUILD.gn
浏览文件 @
aac59cad
...
...
@@ -35,6 +35,7 @@ if (defined(ohos_lite)) { # is on lite Os for ipcamera
"JERRY_HEAPDUMP",
"JERRY_REF_TRACKER",
]
defines += es6_support_defines
cflags = [
"-Wno-unused-function",
"-Wno-sign-compare",
...
...
@@ -47,7 +48,6 @@ if (defined(ohos_lite)) { # is on lite Os for ipcamera
defines = [
"JERRY_CPOINTER_32_BIT=0",
"JERRY_DEBUGGER=1",
"JERRY_ES2015=0",
"JERRY_FUNCTION_BACKTRACE",
"JERRY_FUNCTION_NAME",
"JERRY_GC_LIMIT=(0)",
...
...
@@ -65,6 +65,7 @@ if (defined(ohos_lite)) { # is on lite Os for ipcamera
"JERRY_VALGRIND=0",
"JERRY_VM_EXEC_STOP=0",
]
defines += es6_support_defines
if (thirdparty_jerryscript_enable_external_context == true) {
defines += [ "JERRY_EXTERNAL_CONTEXT=1" ]
}
...
...
engine.gni
浏览文件 @
aac59cad
...
...
@@ -26,3 +26,18 @@ ext_path = "${engine_path}/jerry-ext"
libm_path = "${engine_path}/jerry-libm"
port_path = "${engine_path}/jerry-port"
# support es6 with limitation
es6_support_defines = [
"JERRY_ES2015=1",
"JERRY_ES2015_BUILTIN_TYPEDARRAY=1",
"JERRY_ES2015_BUILTIN_SET=1",
"JERRY_ES2015_BUILTIN_PROMISE=1",
"JERRY_ES2015_BUILTIN_PROXY=1",
"JERRY_ES2015_MODULE_SYSTEM=1",
"JERRY_ES2015_BUILTIN_MAP=1",
"JERRY_ES2015_BUILTIN_WEAKMAP=0",
"JERRY_ES2015_BUILTIN_WEAKSET=0",
"JERRY_ES2015_BUILTIN_DATAVIEW=0",
"JERRY_ES2015_BUILTIN_REFLECT=0",
]
jerry-core/BUILD.gn
浏览文件 @
aac59cad
...
...
@@ -223,6 +223,7 @@ if (board_toolchain_type != "iccarm") {
"JERRY_FUNCTION_BACKTRACE",
"JERRY_STACK_LIMIT=0",
]
jerry_core_defines += es6_support_defines
} else {
jerry_core_sources += [
"api/external-context-helpers.c",
...
...
@@ -245,7 +246,6 @@ if (board_toolchain_type != "iccarm") {
"JERRY_DEBUGGER=0",
"JERRY_MEM_GC_BEFORE_EACH_ALLOC=0",
"JERRY_PARSER_DUMP_BYTE_CODE=0",
"JERRY_ES2015=0",
"JERRY_REGEXP_STRICT_MODE=0",
"JERRY_REGEXP_DUMP_BYTE_CODE=0",
"JERRY_SNAPSHOT_EXEC=1",
...
...
@@ -259,6 +259,7 @@ if (board_toolchain_type != "iccarm") {
"SNAPSHOT_BUFFER_SIZE=48*1024",
"_BSD_SOURCE",
]
defines += es6_support_defines
if (thirdparty_jerryscript_enable_external_context == true) {
defines += [ "JERRY_EXTERNAL_CONTEXT=1" ]
}
...
...
jerry-core/config.h
浏览文件 @
aac59cad
...
...
@@ -83,23 +83,55 @@
#ifdef JERRY_FOR_IAR_CONFIG
# error "Should not define this macro on WIN simulator!"
#endif
#ifndef JERRY_BUILTIN_REGEXP
# define JERRY_BUILTIN_REGEXP 0
#endif
#ifndef JERRY_ES2015
# define JERRY_ES2015 0
#endif
#ifndef JERRY_ES2015_BUILTIN_TYPEDARRAY
# define JERRY_ES2015_BUILTIN_TYPEDARRAY 1
#endif
//Maximum size of heap in kilobytes
#ifndef JERRY_GLOBAL_HEAP_SIZE
# define JERRY_GLOBAL_HEAP_SIZE (64)
#endif
#ifndef JERRY_DISABLE_HEAVY_DEBUG
# define JERRY_DISABLE_HEAVY_DEBUG
#endif
#ifndef JERRY_ERROR_MESSAGES
# define JERRY_ERROR_MESSAGES 1
#endif
#ifndef JERRY_LINE_INFO
# define JERRY_LINE_INFO 1
#endif
#ifndef JERRY_MEM_STATS
# define JERRY_MEM_STATS 1
#endif
#ifndef JERRY_SNAPSHOT_EXEC
# define JERRY_SNAPSHOT_EXEC 1
#endif
#ifndef JERRY_SNAPSHOT_SAVE
# define JERRY_SNAPSHOT_SAVE 1
#endif
#ifndef JERRY_LOGGING
# define JERRY_LOGGING 1
#endif
// following config controls temp changes in jerry for debugger function with IDE
#ifndef ACE_DEBUGGER_CUSTOM
# define ACE_DEBUGGER_CUSTOM
#endif
#ifndef JERRY_BUILTIN_EVAL_DISABLED
// disable builtin eval() function
...
...
jerry-ext/BUILD.gn
浏览文件 @
aac59cad
...
...
@@ -68,7 +68,6 @@ if (board_toolchain_type == "iccarm") {
"JERRY_DEBUGGER=0",
"JERRY_MEM_GC_BEFORE_EACH_ALLOC=0",
"JERRY_PARSER_DUMP_BYTE_CODE=0",
"JERRY_ES2015=0",
"JERRY_REGEXP_STRICT_MODE=0",
"JERRY_REGEXP_DUMP_BYTE_CODE=0",
"JERRY_SNAPSHOT_EXEC=1",
...
...
@@ -81,6 +80,7 @@ if (board_toolchain_type == "iccarm") {
"INPUTJS_BUFFER_SIZE=64*1024",
"SNAPSHOT_BUFFER_SIZE=48*1024",
]
defines += es6_support_defines
if (thirdparty_jerryscript_enable_external_context == true) {
defines += [ "JERRY_EXTERNAL_CONTEXT=1" ]
}
...
...
jerry-port/default/BUILD.gn
浏览文件 @
aac59cad
...
...
@@ -53,7 +53,6 @@ if (board_toolchain_type == "iccarm") {
"JERRY_DEBUGGER=0",
"JERRY_MEM_GC_BEFORE_EACH_ALLOC=0",
"JERRY_PARSER_DUMP_BYTE_CODE=0",
"JERRY_ES2015=0",
"JERRY_REGEXP_STRICT_MODE=0",
"JERRY_REGEXP_DUMP_BYTE_CODE=0",
"JERRY_SNAPSHOT_EXEC=1",
...
...
@@ -66,6 +65,7 @@ if (board_toolchain_type == "iccarm") {
"INPUTJS_BUFFER_SIZE=64*1024",
"SNAPSHOT_BUFFER_SIZE=48*1024",
]
defines += es6_support_defines
if (thirdparty_jerryscript_enable_external_context == true) {
defines += [ "JERRY_EXTERNAL_CONTEXT=1" ]
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录