visaljs 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -3
- package/THIRD_PARTY_LICENSES +1 -1
- package/cli.js +55 -4
- package/node/prelude/_http_agent.js +5 -0
- package/node/prelude/_http_server.js +7 -0
- package/node/prelude/dns.js +7 -1
- package/node/prelude/events.js +7 -3
- package/node/prelude/http.js +685 -279
- package/node/prelude/https.js +14 -3
- package/node/prelude/internal/events_extras.js +2 -5
- package/node/prelude/internal/features.js +17 -0
- package/node/prelude/internal/http_agent.js +88 -2
- package/node/prelude/internal/http_symbols.js +3 -0
- package/node/prelude/internal/net_bound.js +123 -0
- package/node/prelude/internal/net_onread.js +73 -0
- package/node/prelude/internal/net_tos.js +54 -0
- package/node/prelude/internal/perf_observe.js +7 -1
- package/node/prelude/internal/tls/wrap.js +2 -1
- package/node/prelude/module.js +42 -18
- package/node/prelude/net.js +195 -48
- package/node/prelude/perf_hooks.js +4 -0
- package/node/src/host_http.c +151 -21
- package/node/src/host_net.c +75 -9
- package/package.json +1 -1
- package/prebuilt/win32-x64/boringssl-ce573858472b7fc9.a +0 -0
- package/prebuilt/win32-x64/brotli-20d86a61f30baeb3.a +0 -0
- package/prebuilt/win32-x64/uv-b11bae65d7fced82.a +0 -0
- package/prebuilt/win32-x64/zlib-4ce2317a4c3f5fb5.a +0 -0
- package/prebuilt/win32-x64/zstd-015315ac7c784c73.a +0 -0
- package/runtime/include/js_atoms.h +4 -0
- package/runtime/include/js_web.h +3 -0
- package/runtime/include/jscontext.h +8 -0
- package/runtime/src/atoms.c +37 -3
- package/runtime/src/events.c +19 -0
- package/runtime/src/gc.c +4 -4
- package/runtime/src/internal.h +4 -4
- package/runtime/src/regexp.c +569 -12
- package/runtime/src/shape.c +68 -1
- package/runtime/src/weak.c +95 -24
package/runtime/src/internal.h
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
bool js_gc_is_marked(const JSCell *c);
|
|
13
13
|
|
|
14
14
|
/* Shapes (shape.c): weak processing after marking, and teardown. */
|
|
15
|
-
void js_shapes_sweep(JSRuntime *rt);
|
|
15
|
+
void js_shapes_sweep(JSRuntime *rt, bool full);
|
|
16
16
|
void js_shapes_free(JSRuntime *rt);
|
|
17
17
|
/* Inline caches (object.c): weak processing after marking, and teardown. */
|
|
18
18
|
void js_prop_caches_sweep(JSRuntime *rt);
|
|
@@ -55,8 +55,8 @@ void js_promise_then_internal(JSContext *ctx, JSValue promise, JSValue on_fulfil
|
|
|
55
55
|
* marked anything), weak processing after marking, the kept-alive roots, teardown;
|
|
56
56
|
* ClearKeptObjects; the FinalizationRegistry cleanup tasks (0, or -1 after an uncaught
|
|
57
57
|
* error); the realm's WeakMap, WeakSet, WeakRef, FinalizationRegistry. */
|
|
58
|
-
bool js_weak_ephemerons(JSRuntime *rt, JSTracer *trc);
|
|
59
|
-
void js_weak_sweep(JSRuntime *rt);
|
|
58
|
+
bool js_weak_ephemerons(JSRuntime *rt, JSTracer *trc, bool full);
|
|
59
|
+
void js_weak_sweep(JSRuntime *rt, bool full);
|
|
60
60
|
void js_weak_trace_roots(JSRuntime *rt, JSTracer *trc);
|
|
61
61
|
void js_weak_free(JSRuntime *rt);
|
|
62
62
|
void js_clear_kept_objects(JSRuntime *rt);
|
|
@@ -64,7 +64,7 @@ int js_run_finalization_cleanups(JSContext *ctx);
|
|
|
64
64
|
|
|
65
65
|
/* Atom table lifecycle (atoms.c). */
|
|
66
66
|
void js_atoms_init(JSRuntime *rt);
|
|
67
|
-
void js_atoms_sweep(JSRuntime *rt); /* weak processing: drop unmarked atoms */
|
|
67
|
+
void js_atoms_sweep(JSRuntime *rt, bool full); /* weak processing: drop unmarked atoms */
|
|
68
68
|
void js_atoms_free(JSRuntime *rt);
|
|
69
69
|
|
|
70
70
|
/* Cell classes defined outside gc.c: each kind's name and finalizer. The marker visits these kinds
|