quickjs/tests
Charlie Gordon 83726bb00c
Add utility functions for string to integer conversions (#366)
* Add utility functions, improve integer conversion functions

- move `is_be()` to cutils.h
- add `is_upper_ascii()` and `to_upper_ascii()`
- add extensive benchmark for integer conversion variants in **tests/test_conv.c**
- add `u32toa()`, `i32toa()`, `u64toa()`, `i64toa()` based on register shift variant
- add  `u32toa_radix()`, `u64toa_radix()`, `i64toa_radix()` based on length_loop variant
- use direct converters instead of `snprintf()`
- copy NaN and Infinity directly in `js_dtoa1()`
- optimize `js_number_toString()` for small integers
- use `JS_NewStringLen()` instead of `JS_NewString()` when possible
- add more precise conversion tests in microbench.js
- disable some benchmark tests for gcc (they cause ASAN failures)
2024-04-19 11:35:44 +02:00
..
bjson.c Replace JSValueConst with JSValue (#195) 2023-12-10 15:15:42 +01:00
function_source.js Retain function source code in serialized bytecode (#218) 2023-12-16 01:01:26 +01:00
microbench.js Add utility functions for string to integer conversions (#366) 2024-04-19 11:35:44 +02:00
test262.patch 2020-01-05 release 2020-09-06 18:53:08 +02:00
test_bigint.js Remove trailing whitespace (#46) 2023-11-12 10:01:40 +01:00
test_bjson.js Improve Date.parse (#289) 2024-03-10 10:34:26 +01:00
test_builtin.js fix crash in js_typed_array_slice caused by memory overlap (#379) 2024-04-15 06:40:00 +02:00
test_closure.js Remove trailing whitespace (#46) 2023-11-12 10:01:40 +01:00
test_conv.c Add utility functions for string to integer conversions (#366) 2024-04-19 11:35:44 +02:00
test_language.js Fix member accesses for non-decimal numeric literals (#377) 2024-04-16 14:17:50 +02:00
test_loop.js Remove trailing whitespace (#46) 2023-11-12 10:01:40 +01:00
test_queue_microtask.js Add queueMicrotask 2023-11-21 23:43:17 +01:00
test_std.js Implement setInterval() (#338) 2024-03-30 09:36:38 +01:00
test_worker.js Refactor build system to use CMake only 2023-11-17 13:10:18 +01:00
test_worker_module.js Remove trailing whitespace (#46) 2023-11-12 10:01:40 +01:00