Commit graph

23 commits

Author SHA1 Message Date
Fabian
51bd604cc5 remove "use strict" (is default in es6 modules) 2025-04-16 09:26:13 -07:00
Fabian
2a4fe44a7d liberate tests from libv86-debug.js 2025-04-16 09:26:13 -07:00
Fabian
c11805a70a minor cleanup of imports 2025-04-16 09:26:13 -07:00
Rob Blanckaert
a9219613af Switch to es6 modules. 2025-04-06 08:53:49 -07:00
Fabian
c6ef3c4c68 cache state flags 2022-11-15 10:14:28 +09:00
Fabian
85df1ec798 Expect tests: tlb offset is not stable 2021-09-23 20:13:08 +02:00
viorelcanja
0297f48346
resize tlb_data to proper size (#468)
Resize tlb_data to proper size

Reduce initial memory size
2021-05-08 22:49:37 +02:00
Fabian
073f2d03e9 Expect tests: Remove interactive mode 2020-12-31 19:14:30 -06:00
Fabian
5ca991b929 Add ./tests/expect/run.js --accept-all as a nicer workflow to accept changes 2020-12-31 19:14:30 -06:00
Fabian
acb8ad5423 Avoid console.assert (doesn't throw) 2020-12-31 19:14:30 -06:00
Fabian
fc954cecea Update libwabt (fix failing decoding of large generated modules) 2020-08-30 19:37:15 -05:00
Fabian
9e13650c19 fixup expect tests 2020-08-30 19:37:15 -05:00
Fabian
5b95165de2 Add TEST_RELEASE_BUILD to run tests on release build 2020-08-30 19:37:15 -05:00
Fabian
52b6e0caae Normalise memory offset in output wast in expect tests 2020-08-30 19:37:15 -05:00
Fabian
12eb838939 Expect tests: Catch libwabt errors and try to help 2020-08-30 19:29:54 -05:00
Fabian
3b1063d58a Expect tests: Accept TEST_NAME env variable 2020-08-30 19:29:54 -05:00
Fabian
1faf8ccc86 Allocate memory via Rust instead of ahead-of-time 2020-08-30 19:29:53 -05:00
Fabian
3a8d644d75 Port jit to Rust
The following files and functions were ported:
- jit.c
- codegen.c
- _jit functions in instructions*.c and misc_instr.c
- generate_{analyzer,jit}.js (produces Rust code)
- jit_* from cpu.c

And the following data structures:
- hot_code_addresses
- wasm_table_index_free_list
- entry_points
- jit_cache_array
- page_first_jit_cache_entry

Other miscellaneous changes:
- Page is an abstract type
- Addresses, locals and bitflags are unsigned
- Make the number of entry points a growable type
- Avoid use of global state wherever possible
- Delete string packing
- Make CachedStateFlags abstract
- Make AnalysisType product type
- Make BasicBlockType product type
- Restore opcode assertion
- Set opt-level=2 in debug mode (for test performance)
- Delete JIT_ALWAYS instrumentation (now possible via api)
- Refactor generate_analyzer.js
- Refactor generate_jit.js
2020-08-30 19:29:13 -05:00
Fabian
f8dd22cf04 Expect test: Accept tests interactively (#15) 2020-08-30 19:27:07 -05:00
Amaan Cheval
795ba8ad42 expect-tests: Improve error message and var name 2020-08-30 19:27:02 -05:00
Amaan Cheval
26dced841e expect-tests: Reduce is_32 sensitivity and warn about remaining tests 2020-07-21 20:10:14 -05:00
Amaan Cheval
81c09ef811 expect-tests: Write out raw wasm file too
This makes it easier to test the generated output with different
tools too, such as wasm-objdump, for eg.
2020-07-21 20:10:14 -05:00
Fabian
e6af9f3d7f Expect tests 2020-07-21 20:10:14 -05:00