post-W7 cleanup
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
// wasm workspace. The legacy native dlopen execution path has been removed.
|
||||
|
||||
#include "../lib/wasm_trace.h"
|
||||
// The native server TU has the real connectors (sqlite/mysql) compiled in, so
|
||||
// The native server TU has the native connectors (sqlite/mysql) compiled in, so
|
||||
// the worker's host-side connector hostcalls are available here. The W3 CLI
|
||||
// driver does not define this and gets a named-trap stub for those imports.
|
||||
#define UCE_WASM_HOST_CONNECTORS 1
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// Production WASM W1 core entrypoint.
|
||||
//
|
||||
// This file deliberately includes the real UCE runtime amalgamation with
|
||||
// This file deliberately includes the production UCE runtime amalgamation with
|
||||
// __UCE_WASM_CORE__ enabled. Native-only pieces are carved out in the runtime
|
||||
// sources, while the workspace-owned DValue ABI and output plumbing are built
|
||||
// into core.wasm.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// W3 CLI driver — the exit gate for WASM-PROPOSAL §9.1 W3.
|
||||
//
|
||||
// Serves real requests through the production workspace runtime
|
||||
// (src/wasm/worker.cpp): UCEB1 context in → core + lazily loaded real
|
||||
// Serves requests through the production workspace runtime
|
||||
// (src/wasm/worker.cpp): UCEB1 context in → core + lazily loaded
|
||||
// generated units → body/response-meta out. Each --repeat gets a fresh
|
||||
// workspace, proving birth/drop. An epoch ticker thread enforces the CPU
|
||||
// budget; the store limiter enforces memory; traps come back as collapsed
|
||||
|
||||
+3
-3
@@ -1,7 +1,7 @@
|
||||
// W3 — production wasm workspace runtime + membrane (WASM-PROPOSAL §6, §7).
|
||||
//
|
||||
// One workspace per request: a fresh Wasmtime store holding the core module
|
||||
// instance (real uce_lib carve-out, owns memory/allocator/DValue) plus unit
|
||||
// instance (production uce_lib carve-out, owns memory/allocator/DValue) plus unit
|
||||
// PIC side modules loaded lazily — including mid-request via the
|
||||
// uce_host_component_resolve hostcall, which is how component()/unit_render()
|
||||
// inside the guest trigger dynamic loading.
|
||||
@@ -1691,7 +1691,7 @@ private:
|
||||
#ifdef UCE_WASM_HOST_CONNECTORS
|
||||
if(mod == "env" && name == "uce_host_sqlite")
|
||||
return(add([self](Caller, Span<const Val> args, Span<Val> results) -> Result<std::monostate, Trap> {
|
||||
// {op,handle,path,query,params} in → result out. The real native
|
||||
// {op,handle,path,query,params} in → result out. The native
|
||||
// connector runs host-side; connections live in the workspace
|
||||
// handle table (handle = 1-based index).
|
||||
String encoded;
|
||||
@@ -2030,7 +2030,7 @@ private:
|
||||
if(mod == "env" && name == "uce_host_regex")
|
||||
return(add([self](Caller, Span<const Val> args, Span<Val> results) -> Result<std::monostate, Trap> {
|
||||
// {op,pattern,subject,flags,replacement} in (UCEB1) → result out.
|
||||
// PCRE2 lives host-side; this runs the real native regex_*.
|
||||
// PCRE2 lives host-side; this runs the native regex_*.
|
||||
String encoded;
|
||||
self->hostcall_read(args[0].i32(), args[1].i32(), encoded);
|
||||
DValue request;
|
||||
|
||||
Reference in New Issue
Block a user