mirror of
https://github.com/bellard/quickjs.git
synced 2025-09-27 13:48:45 +03:00
Merge 8b43bae10b1f5d0bd714169395e8489bf68d959a into fa628f8c523ecac8ce560c081411e91fcaba2d20
This commit is contained in:
commit
86f2c2fff1
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
@ -36,6 +36,10 @@ jobs:
|
|||||||
- name: Run microbench
|
- name: Run microbench
|
||||||
run: |
|
run: |
|
||||||
make microbench
|
make microbench
|
||||||
|
- name: Run test262
|
||||||
|
run: |
|
||||||
|
make test2-bootstrap
|
||||||
|
make test2
|
||||||
|
|
||||||
linux-lto:
|
linux-lto:
|
||||||
name: Linux LTO
|
name: Linux LTO
|
||||||
@ -138,6 +142,10 @@ jobs:
|
|||||||
- name: Run built-in tests
|
- name: Run built-in tests
|
||||||
run: |
|
run: |
|
||||||
make test
|
make test
|
||||||
|
- name: Run test262
|
||||||
|
run: |
|
||||||
|
make test2-bootstrap
|
||||||
|
make test2
|
||||||
|
|
||||||
macos-asan:
|
macos-asan:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
@ -172,7 +180,12 @@ jobs:
|
|||||||
- name: Build + test
|
- name: Build + test
|
||||||
uses: vmactions/freebsd-vm@v1
|
uses: vmactions/freebsd-vm@v1
|
||||||
with:
|
with:
|
||||||
|
# This VM has a tendency to get stuck in the "VM is booting" cycle
|
||||||
|
# for quite a while, so set a shorter timeout
|
||||||
|
timeout-minutes: 15
|
||||||
usesh: true
|
usesh: true
|
||||||
|
copyback: false
|
||||||
|
mem: 16384
|
||||||
prepare: |
|
prepare: |
|
||||||
pkg install -y gmake
|
pkg install -y gmake
|
||||||
run: |
|
run: |
|
||||||
@ -202,6 +215,10 @@ jobs:
|
|||||||
- name: Run built-in tests
|
- name: Run built-in tests
|
||||||
run: |
|
run: |
|
||||||
make CONFIG_COSMO=y test
|
make CONFIG_COSMO=y test
|
||||||
|
- name: Run test262
|
||||||
|
run: |
|
||||||
|
make test2-bootstrap
|
||||||
|
make CONFIG_COSMO=y test2
|
||||||
|
|
||||||
mingw-windows:
|
mingw-windows:
|
||||||
name: MinGW Windows target
|
name: MinGW Windows target
|
||||||
|
13
Makefile
13
Makefile
@ -54,6 +54,10 @@ PREFIX?=/usr/local
|
|||||||
# use UB sanitizer
|
# use UB sanitizer
|
||||||
#CONFIG_UBSAN=y
|
#CONFIG_UBSAN=y
|
||||||
|
|
||||||
|
# TEST262 bootstrap config: commit id and shallow "since" parameter
|
||||||
|
TEST262_COMMIT?=af3d908437b0912513a594e7167f17658e72d88b
|
||||||
|
TEST262_SINCE?=2025-09-14
|
||||||
|
|
||||||
OBJDIR=.obj
|
OBJDIR=.obj
|
||||||
|
|
||||||
ifdef CONFIG_ASAN
|
ifdef CONFIG_ASAN
|
||||||
@ -464,6 +468,15 @@ stats: qjs$(EXE)
|
|||||||
microbench: qjs$(EXE)
|
microbench: qjs$(EXE)
|
||||||
$(WINE) ./qjs$(EXE) --std tests/microbench.js
|
$(WINE) ./qjs$(EXE) --std tests/microbench.js
|
||||||
|
|
||||||
|
ifeq ($(wildcard test262/features.txt),)
|
||||||
|
test2-bootstrap:
|
||||||
|
git clone --single-branch --shallow-since=$(TEST262_SINCE) https://github.com/tc39/test262.git
|
||||||
|
(cd test262 && git checkout -q $(TEST262_COMMIT) && patch -p1 < ../tests/test262.patch && cd ..)
|
||||||
|
else
|
||||||
|
test2-bootstrap:
|
||||||
|
(cd test262 && git fetch && git reset --hard $(TEST262_COMMIT) && patch -p1 < ../tests/test262.patch && cd ..)
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(wildcard test262o/tests.txt),)
|
ifeq ($(wildcard test262o/tests.txt),)
|
||||||
test2o test2o-update:
|
test2o test2o-update:
|
||||||
@echo test262o tests not installed
|
@echo test262o tests not installed
|
||||||
|
@ -116,6 +116,7 @@ for-of
|
|||||||
generators
|
generators
|
||||||
globalThis
|
globalThis
|
||||||
hashbang
|
hashbang
|
||||||
|
immutable-arraybuffer=skip
|
||||||
import-attributes
|
import-attributes
|
||||||
import-defer=skip
|
import-defer=skip
|
||||||
import.meta
|
import.meta
|
||||||
|
@ -14,9 +14,9 @@ index 9828b15..4a5919d 100644
|
|||||||
+// small: 200,
|
+// small: 200,
|
||||||
+// long: 1000,
|
+// long: 1000,
|
||||||
+// huge: 10000,
|
+// huge: 10000,
|
||||||
+ yield: 20,
|
+ yield: 40,
|
||||||
+ small: 20,
|
+ small: 40,
|
||||||
+ long: 100,
|
+ long: 200,
|
||||||
+ huge: 1000,
|
+ huge: 1000,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user