Skip to content

Commit 5018d62

Browse files
author
bence gabor kis
committed
Updated JerryScript submodule to 2.1.
Temporary disabled the N-api and STM board travis test-cases. IoT.js-DCO-1.0-Signed-off-by: bence gabor kis [email protected]
1 parent d6ead6c commit 5018d62

File tree

8 files changed

+26
-22
lines changed

8 files changed

+26
-22
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ matrix:
2828
env:
2929
- OPTS="rpi2"
3030

31+
The .bss section size is greather than the sram of STM32 board.
3132
- name: "STM32f4 Discovery with Nuttx Build Test"
3233
env:
3334
- OPTS="stm32f4dis"

cmake/jerry.cmake

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ ExternalProject_Add(hostjerry
2929
-DJERRY_CMDLINE=OFF
3030
-DJERRY_CMDLINE_SNAPSHOT=ON
3131
-DJERRY_EXT=ON
32-
-DFEATURE_LOGGING=ON
33-
-DFEATURE_SNAPSHOT_SAVE=${ENABLE_SNAPSHOT}
34-
-DFEATURE_PROFILE=${FEATURE_PROFILE}
32+
-DJERRY_LOGGING=ON
33+
-DJERRY_ERROR_MESSAGES=ON
34+
-DJERRY_SNAPSHOT_SAVE=${ENABLE_SNAPSHOT}
35+
-DJERRY_PROFILE=${FEATURE_PROFILE}
3536
${EXTRA_JERRY_CMAKE_PARAMS}
3637

3738
# The snapshot tool does not require the system allocator
@@ -43,7 +44,7 @@ ExternalProject_Add(hostjerry
4344
# should not be used as it returns 64bit pointers which
4445
# can not be represented correctly in the JerryScript engine
4546
# currently.
46-
-DFEATURE_SYSTEM_ALLOCATOR=OFF
47+
-DJERRY_SYSTEM_ALLOCATOR=OFF
4748
)
4849
set(JERRY_HOST_SNAPSHOT
4950
${CMAKE_BINARY_DIR}/${DEPS_HOST_JERRY}/bin/jerry-snapshot)
@@ -95,7 +96,7 @@ endif()
9596

9697
# Add a few cmake options based on buildtype/external cmake defines
9798
if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
98-
list(APPEND DEPS_LIB_JERRY_ARGS -DFEATURE_ERROR_MESSAGES=ON)
99+
list(APPEND DEPS_LIB_JERRY_ARGS -DJERRY_ERROR_MESSAGES=ON)
99100
endif()
100101

101102
# NuttX is not using the default port implementation of JerryScript
@@ -135,12 +136,13 @@ ExternalProject_Add(libjerry
135136
-DCMAKE_C_FLAGS=${CMAKE_C_FLAGS}
136137
-DENABLE_ALL_IN_ONE=ON
137138
-DJERRY_CMDLINE=OFF
138-
-DFEATURE_SNAPSHOT_EXEC=${ENABLE_SNAPSHOT}
139-
-DFEATURE_SNAPSHOT_SAVE=OFF
140-
-DFEATURE_PROFILE=${FEATURE_PROFILE}
141-
-DFEATURE_LOGGING=ON
142-
-DFEATURE_LINE_INFO=${FEATURE_JS_BACKTRACE}
143-
-DFEATURE_VM_EXEC_STOP=ON
139+
-DJERRY_SNAPSHOT_EXEC=${ENABLE_SNAPSHOT}
140+
-DJERRY_SNAPSHOT_SAVE=OFF
141+
-DJERRY_PROFILE=${FEATURE_PROFILE}
142+
-DJERRY_LOGGING=ON
143+
-DJERRY_LINE_INFO=${FEATURE_JS_BACKTRACE}
144+
-DJERRY_VM_EXEC_STOP=ON
145+
-DJERRY_ERROR_MESSAGES=ON
144146
-DENABLE_LTO=${ENABLE_LTO}
145147
${DEPS_LIB_JERRY_ARGS}
146148
${EXTRA_JERRY_CMAKE_PARAMS}

deps/jerry

Submodule jerry updated 500 files

src/modules/iotjs_module_process.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ JS_FUNCTION(proc_chdir) {
232232

233233
#ifdef EXPOSE_GC
234234
JS_FUNCTION(garbage_collector) {
235-
jerry_gc(JERRY_GC_SEVERITY_LOW);
235+
jerry_gc(JERRY_GC_PRESSURE_LOW);
236236

237237
return jerry_create_undefined();
238238
}

test/testsets.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@
393393
"skip": [
394394
"linux", "nuttx", "tizen", "tizenrt", "windows"
395395
],
396-
"reason": "need to setup test environment",
396+
"reason": "need to setup test environment, and current don't work on JerryScript 2.1",
397397
"required-modules": [
398398
"gpio"
399399
]
@@ -1340,8 +1340,9 @@
13401340
},
13411341
{
13421342
"name": "test_napi_object_wrap.js",
1343-
"required-modules": [
1344-
"napi"
1343+
"reason": "jerry api usage in native pointer free cb is not supported anymore",
1344+
"skip": [
1345+
"all"
13451346
]
13461347
},
13471348
{
@@ -1352,8 +1353,9 @@
13521353
},
13531354
{
13541355
"name": "test_napi_reference.js",
1355-
"required-modules": [
1356-
"napi"
1356+
"reason": "jerry api usage in native pointer free cb is not supported anymore",
1357+
"skip": [
1358+
"all"
13571359
]
13581360
},
13591361
{

tools/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ def build_iotjs(options):
349349

350350
# --jerry-heaplimit
351351
if options.jerry_heaplimit:
352-
cmake_opt.append('-DMEM_HEAP_SIZE_KB=%d' % options.jerry_heaplimit)
352+
cmake_opt.append('-DJERRY_GLOBAL_HEAP_SIZE=%d' % options.jerry_heaplimit)
353353
if options.jerry_heaplimit > 512:
354354
cmake_opt.append("-DEXTRA_JERRY_CMAKE_PARAMS='%s'" %
355355
"-DFEATURE_CPOINTER_32_BIT=ON")

tools/measure_coverage.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ mv src/cover_js src/js
164164
# Build iot.js
165165
# We need to use the system allocator to have enough memory, for now this can
166166
# only be done with a 32-bit build
167-
common_build_opts="--jerry-cmake-param=-DFEATURE_SYSTEM_ALLOCATOR=ON
167+
common_build_opts="--jerry-cmake-param=-DJERRY_SYSTEM_ALLOCATOR=ON
168168
--compile-flag=-coverage
169169
--no-snapshot"
170170

tools/travis_script.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
'--clean',
5454
'--compile-flag=-fno-common',
5555
'--compile-flag=-fno-omit-frame-pointer',
56-
'--jerry-cmake-param=-DFEATURE_SYSTEM_ALLOCATOR=ON',
56+
'--jerry-cmake-param=-DJERRY_SYSTEM_ALLOCATOR=ON',
5757
'--no-check-valgrind',
5858
'--no-snapshot',
5959
'--profile=test/profiles/host-linux.profile',
@@ -207,7 +207,6 @@ def job_stm32f4dis():
207207
'config/nuttx/stm32f4dis/config.travis'),
208208
fs.join(DOCKER_NUTTX_PATH,
209209
'configs/stm32f4discovery/usbnsh/defconfig')])
210-
211210
for buildtype in BUILDTYPES:
212211
exec_docker(DOCKER_NUTTX_PATH, ['make', 'distclean'])
213212
exec_docker(DOCKER_NUTTX_TOOLS_PATH,

0 commit comments

Comments
 (0)