eliscript 0.0.1 → 0.0.2
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 +59 -0
- package/bootstrap/README.md +26 -0
- package/bootstrap/backends/README.md +515 -0
- package/bootstrap/backends/async.eli +230 -0
- package/bootstrap/backends/binary.eli +173 -0
- package/bootstrap/backends/capabilities.eli +74 -0
- package/bootstrap/backends/elf.eli +246 -0
- package/bootstrap/backends/managed.eli +5976 -0
- package/bootstrap/backends/memory.eli +100 -0
- package/bootstrap/backends/native.eli +2000 -0
- package/bootstrap/backends/numeric.eli +1362 -0
- package/bootstrap/backends/optimize.eli +79 -0
- package/bootstrap/backends/regexp.eli +2263 -0
- package/bootstrap/backends/sha256.eli +138 -0
- package/bootstrap/backends/wasm.eli +1161 -0
- package/bootstrap/compiler/analyzer.eli +165 -77
- package/bootstrap/compiler/compiler.eli +43 -19
- package/bootstrap/compiler/emitter.eli +780 -170
- package/bootstrap/compiler/expander.eli +136 -45
- package/bootstrap/compiler/formatter.eli +8 -1
- package/bootstrap/compiler/ir.eli +148 -45
- package/bootstrap/compiler/lower.eli +29 -2
- package/bootstrap/compiler/project.eli +51 -21
- package/bootstrap/compiler/reader.eli +128 -36
- package/bootstrap/compiler/source-map.eli +46 -4
- package/bootstrap/compiler/symbol.eli +2 -1
- package/bootstrap/compiler/syntax.eli +47 -12
- package/bootstrap/compiler/transient-analysis.eli +40 -4
- package/bootstrap/host/check-cli-legacy.mjs +163 -0
- package/bootstrap/host/check-cli.mjs +59 -158
- package/bootstrap/host/check-cli.mjs.map +1 -0
- package/bootstrap/host/compiler-session.eli +1579 -0
- package/bootstrap/host/compiler-tools.eli +513 -0
- package/bootstrap/host/eliscript-cli-legacy.mjs +37 -0
- package/bootstrap/host/eliscript-cli.mjs +53 -33
- package/bootstrap/host/eliscript-cli.mjs.map +1 -0
- package/bootstrap/host/project-cli-legacy.mjs +295 -0
- package/bootstrap/host/project-cli.mjs +74 -289
- package/bootstrap/host/project-cli.mjs.map +1 -0
- package/bootstrap/host/project-legacy.mjs +1080 -0
- package/bootstrap/host/project.mjs +210 -1060
- package/bootstrap/host/project.mjs.map +1 -0
- package/bootstrap/runtime/UNICODE-LICENSE.txt +39 -0
- package/bootstrap/runtime/memory.eli +30379 -0
- package/browser/host.mjs +89 -0
- package/compiler/eliscript-analyzer.el +371 -4
- package/compiler/eliscript-cli.el +84 -1
- package/compiler/eliscript-emitter.el +1189 -256
- package/compiler/eliscript-expander.el +147 -10
- package/compiler/eliscript-ir-emitter.el +725 -208
- package/compiler/eliscript-lower.el +127 -1
- package/compiler/eliscript-portable.el +177 -51
- package/compiler/eliscript-project.el +20 -2
- package/compiler/eliscript-reader.el +141 -57
- package/compiler/eliscript-source-map.el +26 -12
- package/compiler/eliscript-transient-analysis.el +382 -19
- package/dist/backends/async.mjs +561 -0
- package/dist/backends/async.mjs.macro-origins.json +1 -0
- package/dist/backends/async.mjs.map +1 -0
- package/dist/backends/binary.mjs +381 -0
- package/dist/backends/binary.mjs.macro-origins.json +1 -0
- package/dist/backends/binary.mjs.map +1 -0
- package/dist/backends/capabilities.mjs +237 -0
- package/dist/backends/capabilities.mjs.macro-origins.json +1 -0
- package/dist/backends/capabilities.mjs.map +1 -0
- package/dist/backends/elf.mjs +540 -0
- package/dist/backends/elf.mjs.macro-origins.json +1 -0
- package/dist/backends/elf.mjs.map +1 -0
- package/dist/backends/managed.mjs +10616 -0
- package/dist/backends/managed.mjs.macro-origins.json +1 -0
- package/dist/backends/managed.mjs.map +1 -0
- package/dist/backends/memory.mjs +278 -0
- package/dist/backends/memory.mjs.macro-origins.json +1 -0
- package/dist/backends/memory.mjs.map +1 -0
- package/dist/backends/native.mjs +4099 -0
- package/dist/backends/native.mjs.macro-origins.json +1 -0
- package/dist/backends/native.mjs.map +1 -0
- package/dist/backends/numeric.mjs +2458 -0
- package/dist/backends/numeric.mjs.macro-origins.json +1 -0
- package/dist/backends/numeric.mjs.map +1 -0
- package/dist/backends/optimize.mjs +204 -0
- package/dist/backends/optimize.mjs.macro-origins.json +1 -0
- package/dist/backends/optimize.mjs.map +1 -0
- package/dist/backends/regexp.mjs +2033 -0
- package/dist/backends/regexp.mjs.macro-origins.json +1 -0
- package/dist/backends/regexp.mjs.map +1 -0
- package/dist/backends/sha256.mjs +310 -0
- package/dist/backends/sha256.mjs.macro-origins.json +1 -0
- package/dist/backends/sha256.mjs.map +1 -0
- package/dist/backends/wasm.mjs +2258 -0
- package/dist/backends/wasm.mjs.macro-origins.json +1 -0
- package/dist/backends/wasm.mjs.map +1 -0
- package/dist/bootstrap/analyzer.mjs +1908 -776
- package/dist/bootstrap/analyzer.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/analyzer.mjs.map +1 -1
- package/dist/bootstrap/compiler.mjs +450 -142
- package/dist/bootstrap/compiler.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/compiler.mjs.map +1 -1
- package/dist/bootstrap/emitter.mjs +3083 -909
- package/dist/bootstrap/emitter.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/emitter.mjs.map +1 -1
- package/dist/bootstrap/expander.mjs +2887 -1233
- package/dist/bootstrap/expander.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/expander.mjs.map +1 -1
- package/dist/bootstrap/formatter.mjs +582 -218
- package/dist/bootstrap/formatter.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/formatter.mjs.map +1 -1
- package/dist/bootstrap/ir.mjs +670 -116
- package/dist/bootstrap/ir.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/ir.mjs.map +1 -1
- package/dist/bootstrap/lower.mjs +866 -257
- package/dist/bootstrap/lower.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/lower.mjs.map +1 -1
- package/dist/bootstrap/package.json +1 -0
- package/dist/bootstrap/project.mjs +1168 -498
- package/dist/bootstrap/project.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/project.mjs.map +1 -1
- package/dist/bootstrap/reader.mjs +674 -175
- package/dist/bootstrap/reader.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/reader.mjs.map +1 -1
- package/dist/bootstrap/runtime/math.mjs +1117 -0
- package/dist/bootstrap/runtime/math.mjs.map +1 -0
- package/dist/bootstrap/runtime/unicode-case-data.mjs +10125 -0
- package/dist/bootstrap/runtime/unicode-case-data.mjs.map +1 -0
- package/dist/bootstrap/runtime/unicode-case.mjs +281 -0
- package/dist/bootstrap/runtime/unicode-case.mjs.map +1 -0
- package/dist/bootstrap/source-map.mjs +430 -119
- package/dist/bootstrap/source-map.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/source-map.mjs.map +1 -1
- package/dist/bootstrap/symbol.mjs +229 -53
- package/dist/bootstrap/symbol.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/symbol.mjs.map +1 -1
- package/dist/bootstrap/syntax.mjs +205 -7
- package/dist/bootstrap/syntax.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/syntax.mjs.map +1 -1
- package/dist/bootstrap/transient-analysis.mjs +1185 -489
- package/dist/bootstrap/transient-analysis.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/transient-analysis.mjs.map +1 -1
- package/dist/browser/compiler.js +199 -6478
- package/dist/browser/host.mjs +446 -0
- package/dist/browser/loader.js +1 -0
- package/dist/browser/loader.mjs +231 -0
- package/dist/browser/worker.mjs +60 -0
- package/dist/compiler-artifact.json +1 -0
- package/dist/host/compiler-session.mjs +2980 -0
- package/dist/host/compiler-session.mjs.macro-origins.json +1 -0
- package/dist/host/compiler-session.mjs.map +1 -0
- package/dist/host/compiler-tools.mjs +1084 -0
- package/dist/host/compiler-tools.mjs.macro-origins.json +1 -0
- package/dist/host/compiler-tools.mjs.map +1 -0
- package/dist/literal-sources/runtime/core/collection-internals.eli +60 -0
- package/dist/literal-sources/runtime/core/collection.eli +579 -0
- package/dist/literal-sources/runtime/core/data-text.eli +290 -0
- package/dist/literal-sources/runtime/core/data.eli +22 -0
- package/dist/literal-sources/runtime/core/identifier.eli +44 -0
- package/dist/literal-sources/runtime/core/lazy-sequence.eli +131 -0
- package/dist/literal-sources/runtime/core/list.eli +19 -0
- package/dist/literal-sources/runtime/core/map.eli +9 -0
- package/dist/literal-sources/runtime/core/metadata-internals.eli +6 -0
- package/dist/literal-sources/runtime/core/metadata.eli +23 -0
- package/dist/literal-sources/runtime/core/object.eli +8 -0
- package/dist/literal-sources/runtime/core/order.eli +123 -0
- package/dist/literal-sources/runtime/core/persistent-kind.eli +28 -0
- package/dist/literal-sources/runtime/core/protocol-error.eli +32 -0
- package/dist/literal-sources/runtime/core/protocol.eli +28 -0
- package/dist/literal-sources/runtime/core/queue.eli +9 -0
- package/dist/literal-sources/runtime/core/record.eli +191 -0
- package/dist/literal-sources/runtime/core/regex.eli +158 -0
- package/dist/literal-sources/runtime/core/sequence.eli +305 -0
- package/dist/literal-sources/runtime/core/set-algebra.eli +28 -0
- package/dist/literal-sources/runtime/core/set.eli +9 -0
- package/dist/literal-sources/runtime/core/sorted.eli +408 -0
- package/dist/literal-sources/runtime/core/text.eli +14 -0
- package/dist/literal-sources/runtime/core/transducer.eli +268 -0
- package/dist/literal-sources/runtime/core/transient.eli +17 -0
- package/dist/literal-sources/runtime/core/truth.eli +4 -0
- package/dist/literal-sources/runtime/core/type.eli +232 -0
- package/dist/literal-sources/runtime/core/value-internals.eli +13 -0
- package/dist/literal-sources/runtime/core/value.eli +19 -0
- package/dist/literal-sources/runtime/core/vector.eli +20 -0
- package/dist/literal-sources/runtime/literals.eli +23 -0
- package/dist/literal-sources/runtime/testing/value.eli +6 -0
- package/dist/literal-sources/runtime/wire/http-rpc.eli +362 -0
- package/dist/literal-sources/runtime/wire/markdown.eli +275 -0
- package/dist/literal-sources/runtime/wire/schema.eli +193 -0
- package/dist/literal-sources/stdlib/bit.eli +36 -0
- package/dist/literal-sources/stdlib/core/data.eli +306 -0
- package/dist/literal-sources/stdlib/core/object.eli +89 -0
- package/dist/literal-sources/stdlib/core/protocol.eli +451 -0
- package/dist/literal-sources/stdlib/core/set.eli +312 -0
- package/dist/literal-sources/stdlib/core/text.eli +103 -0
- package/dist/literal-sources/stdlib/managed-literal-protocols.eli +483 -0
- package/dist/literal-sources/stdlib/managed-literals.eli +1414 -0
- package/dist/literal-sources/stdlib/managed-queue-state.eli +65 -0
- package/dist/literal-sources/stdlib/managed-sorted-state.eli +233 -0
- package/dist/literal-sources/stdlib/managed-transient-state.eli +348 -0
- package/dist/literal-sources/stdlib/managed-value-state.eli +153 -0
- package/dist/literal-sources/stdlib/managed-vector-view-state.eli +102 -0
- package/dist/literal-sources/stdlib/persistent-list.eli +145 -0
- package/dist/literal-sources/stdlib/persistent-map.eli +724 -0
- package/dist/literal-sources/stdlib/persistent-set.eli +236 -0
- package/dist/literal-sources/stdlib/persistent-vector.eli +359 -0
- package/dist/literal-sources/stdlib/value.eli +325 -0
- package/dist/package.json +10 -0
- package/dist/runtime/math.mjs +1116 -0
- package/dist/runtime/math.mjs.macro-origins.json +1 -0
- package/dist/runtime/math.mjs.map +1 -0
- package/dist/runtime/unicode-case-data.mjs +10124 -0
- package/dist/runtime/unicode-case-data.mjs.macro-origins.json +1 -0
- package/dist/runtime/unicode-case-data.mjs.map +1 -0
- package/dist/runtime/unicode-case.mjs +280 -0
- package/dist/runtime/unicode-case.mjs.macro-origins.json +1 -0
- package/dist/runtime/unicode-case.mjs.map +1 -0
- package/dist/runtime.eli +30379 -0
- package/dist/stage3-release.json +1 -0
- package/editor/README.md +1 -1
- package/editor/eliscript-mode.el +1 -1
- package/editor/eliscript-repl.el +1 -1
- package/package.json +97 -10
- package/platform/http.mjs +20 -0
- package/runtime/array-text.mjs +159 -0
- package/runtime/core/map-internals.mjs +27 -9
- package/runtime/core/object-impl.mjs +26 -17
- package/runtime/core/object-impl.mjs.map +1 -1
- package/runtime/core/protocol-impl.mjs +682 -255
- package/runtime/core/protocol-impl.mjs.map +1 -1
- package/runtime/core/protocol.mjs +4 -0
- package/runtime/core/record.mjs +23 -2
- package/runtime/core/regex.mjs +4 -0
- package/runtime/core/sorted.mjs +53 -0
- package/runtime/core/text-impl.mjs +167 -48
- package/runtime/core/text-impl.mjs.map +1 -1
- package/runtime/core/type.mjs +75 -3
- package/runtime/core/vector.mjs +6 -0
- package/runtime/math.eli +429 -0
- package/runtime/math.mjs +1116 -0
- package/runtime/math.mjs.map +1 -0
- package/runtime/number-radix.mjs +105 -0
- package/runtime/unicode-case-data.eli +29 -0
- package/runtime/unicode-case-data.mjs +10124 -0
- package/runtime/unicode-case-data.mjs.map +1 -0
- package/runtime/unicode-case.eli +100 -0
- package/runtime/unicode-case.mjs +280 -0
- package/runtime/unicode-case.mjs.map +1 -0
- package/runtime/wire/http-rpc.mjs +168 -0
- package/runtime/wire/markdown.mjs +196 -0
- package/runtime/wire/schema.mjs +109 -0
- package/stdlib/README.md +54 -0
- package/stdlib/core/protocol.eli +81 -17
- package/stdlib/core/seq.eli +1 -1
- package/stdlib/core/zipper.eli +114 -47
- package/stdlib/gepo.eli +12 -0
- package/stdlib/interop/js.eli +56 -15
- package/stdlib/managed-literal-protocols.eli +483 -0
- package/stdlib/managed-literals.eli +1414 -0
- package/stdlib/managed-protocol-error.eli +32 -0
- package/stdlib/managed-queue-state.eli +65 -0
- package/stdlib/managed-runtime-collection-internals.eli +60 -0
- package/stdlib/managed-runtime-collection.eli +579 -0
- package/stdlib/managed-runtime-data-text.eli +290 -0
- package/stdlib/managed-runtime-data.eli +22 -0
- package/stdlib/managed-runtime-identifier.eli +44 -0
- package/stdlib/managed-runtime-lazy-sequence.eli +131 -0
- package/stdlib/managed-runtime-list.eli +19 -0
- package/stdlib/managed-runtime-literals.eli +23 -0
- package/stdlib/managed-runtime-map.eli +9 -0
- package/stdlib/managed-runtime-metadata-internals.eli +6 -0
- package/stdlib/managed-runtime-metadata.eli +23 -0
- package/stdlib/managed-runtime-object.eli +8 -0
- package/stdlib/managed-runtime-order.eli +123 -0
- package/stdlib/managed-runtime-persistent-kind.eli +28 -0
- package/stdlib/managed-runtime-protocol.eli +28 -0
- package/stdlib/managed-runtime-queue.eli +9 -0
- package/stdlib/managed-runtime-record.eli +191 -0
- package/stdlib/managed-runtime-regex.eli +158 -0
- package/stdlib/managed-runtime-sequence.eli +305 -0
- package/stdlib/managed-runtime-set-algebra.eli +28 -0
- package/stdlib/managed-runtime-set.eli +9 -0
- package/stdlib/managed-runtime-sorted.eli +408 -0
- package/stdlib/managed-runtime-text.eli +14 -0
- package/stdlib/managed-runtime-transducer.eli +268 -0
- package/stdlib/managed-runtime-transient.eli +17 -0
- package/stdlib/managed-runtime-truth.eli +4 -0
- package/stdlib/managed-runtime-type.eli +232 -0
- package/stdlib/managed-runtime-value-internals.eli +13 -0
- package/stdlib/managed-runtime-value.eli +19 -0
- package/stdlib/managed-runtime-vector.eli +20 -0
- package/stdlib/managed-sorted-state.eli +233 -0
- package/stdlib/managed-testing-value.eli +6 -0
- package/stdlib/managed-transient-state.eli +348 -0
- package/stdlib/managed-value-state.eli +153 -0
- package/stdlib/managed-vector-view-state.eli +102 -0
- package/stdlib/managed-wire-http-rpc.eli +362 -0
- package/stdlib/managed-wire-markdown.eli +275 -0
- package/stdlib/managed-wire-schema.eli +193 -0
- package/stdlib/mdp.eli +7 -0
- package/stdlib/mds.eli +4 -0
- package/stdlib/persistent-vector.eli +23 -6
- package/tools/acceptance/check-legacy.mjs +687 -0
- package/tools/acceptance/check.eli +431 -0
- package/tools/acceptance/compile-evidence.el +49 -0
- package/tools/acceptance/finalize-legacy.mjs +498 -0
- package/tools/acceptance/finalize.eli +270 -0
- package/tools/backends/benchmark.mjs +175 -0
- package/tools/backends/build.mjs +135 -0
- package/tools/backends/compile.mjs +94 -0
- package/tools/backends/compiler-bootstrap.mjs +1001 -0
- package/tools/backends/compiler-browser.mjs +361 -0
- package/tools/backends/compiler-build.mjs +1628 -0
- package/tools/backends/compiler-cli-legacy.mjs +334 -0
- package/tools/backends/compiler-cli.mjs +29 -0
- package/tools/backends/compiler-corpus-bit.mjs +234 -0
- package/tools/backends/compiler-corpus-cli-adapters-legacy.mjs +362 -0
- package/tools/backends/compiler-corpus-cli-adapters.mjs +247 -0
- package/tools/backends/compiler-corpus-debugging.mjs +221 -0
- package/tools/backends/compiler-corpus-emitter.mjs +324 -0
- package/tools/backends/compiler-corpus-evaluation-adapters.mjs +65 -0
- package/tools/backends/compiler-corpus-execution-legacy.mjs +769 -0
- package/tools/backends/compiler-corpus-execution.mjs +3324 -0
- package/tools/backends/compiler-corpus-fuzz.mjs +229 -0
- package/tools/backends/compiler-corpus-generations.mjs +208 -0
- package/tools/backends/compiler-corpus-host-context-legacy.mjs +114 -0
- package/tools/backends/compiler-corpus-host-context.mjs +550 -0
- package/tools/backends/compiler-corpus-identity-host.mjs +553 -0
- package/tools/backends/compiler-corpus-identity-value-adapters-legacy.mjs +298 -0
- package/tools/backends/compiler-corpus-identity-value-adapters.mjs +69 -0
- package/tools/backends/compiler-corpus-isolated-exports.mjs +21 -0
- package/tools/backends/compiler-corpus-legacy.mjs +1155 -0
- package/tools/backends/compiler-corpus-literal-provider.mjs +282 -0
- package/tools/backends/compiler-corpus-managed-adapters-legacy.mjs +334 -0
- package/tools/backends/compiler-corpus-managed-adapters.mjs +937 -0
- package/tools/backends/compiler-corpus-managed-cases.mjs +179 -0
- package/tools/backends/compiler-corpus-managed-fixtures-legacy.mjs +879 -0
- package/tools/backends/compiler-corpus-managed-fixtures.mjs +1287 -0
- package/tools/backends/compiler-corpus-matchers.mjs +173 -0
- package/tools/backends/compiler-corpus-original-program.mjs +612 -0
- package/tools/backends/compiler-corpus-process.mjs +765 -0
- package/tools/backends/compiler-corpus-program-driver.mjs +306 -0
- package/tools/backends/compiler-corpus-project-adapters-legacy.mjs +497 -0
- package/tools/backends/compiler-corpus-project-adapters.mjs +340 -0
- package/tools/backends/compiler-corpus-project-entry-host.mjs +511 -0
- package/tools/backends/compiler-corpus-project-transport.mjs +151 -0
- package/tools/backends/compiler-corpus-raw-fixture-observer.mjs +1438 -0
- package/tools/backends/compiler-corpus-raw-language-fixtures.mjs +1456 -0
- package/tools/backends/compiler-corpus-raw-math-fixture.mjs +346 -0
- package/tools/backends/compiler-corpus-raw-special-fixtures.mjs +523 -0
- package/tools/backends/compiler-corpus-reference-legacy.mjs +263 -0
- package/tools/backends/compiler-corpus-reference.mjs +241 -0
- package/tools/backends/compiler-corpus-runtime-adapters-legacy.mjs +843 -0
- package/tools/backends/compiler-corpus-runtime-adapters.mjs +663 -0
- package/tools/backends/compiler-corpus-source-archive.mjs +206 -0
- package/tools/backends/compiler-corpus-tools-artifact-adapters.mjs +410 -0
- package/tools/backends/compiler-corpus-tools-cli.mjs +363 -0
- package/tools/backends/compiler-corpus-tools-reference.mjs +264 -0
- package/tools/backends/compiler-corpus.mjs +2054 -0
- package/tools/backends/compiler-debug.mjs +142 -0
- package/tools/backends/compiler-matrix.mjs +1955 -0
- package/tools/backends/compiler-metadata.mjs +203 -0
- package/tools/backends/compiler-package-browser.mjs +120 -0
- package/tools/backends/compiler-package-legacy.mjs +654 -0
- package/tools/backends/compiler-package.mjs +464 -0
- package/tools/backends/compiler-project.mjs +126 -0
- package/tools/backends/compiler-session.mjs +843 -0
- package/tools/backends/compiler-sha256.mjs +152 -0
- package/tools/backends/compiler-unicode-profile-host.mjs +196 -0
- package/tools/backends/compiler-worker.mjs +573 -0
- package/tools/backends/dist/bootstrap-js-stages.mjs +919 -0
- package/tools/backends/dist/bootstrap-js-stages.mjs.map +1 -0
- package/tools/backends/dist/managed-ir-inventory.mjs +488 -0
- package/tools/backends/dist/managed-ir-inventory.mjs.map +1 -0
- package/tools/backends/dist/record-grid.mjs +1256 -0
- package/tools/backends/dist/record-grid.mjs.map +1 -0
- package/tools/backends/dist/release-cli.mjs +460 -0
- package/tools/backends/dist/release-cli.mjs.map +1 -0
- package/tools/backends/dist/run-artifact.mjs +517 -0
- package/tools/backends/dist/run-artifact.mjs.map +1 -0
- package/tools/backends/eliscript/compiler-corpus-bit.eli +77 -0
- package/tools/backends/eliscript/compiler-corpus-debugging.eli +70 -0
- package/tools/backends/eliscript/compiler-corpus-project-entry-host.eli +256 -0
- package/tools/backends/managed-foreign-binding.mjs +497 -0
- package/tools/backends/managed-host-legacy.mjs +1181 -0
- package/tools/backends/managed-host-lifecycle.mjs +310 -0
- package/tools/backends/managed-host-object-provider.mjs +155 -0
- package/tools/backends/managed-host-object-realm.mjs +797 -0
- package/tools/backends/managed-host-proxy.mjs +71 -0
- package/tools/backends/managed-host-runtime.mjs +5868 -0
- package/tools/backends/managed-host.mjs +716 -0
- package/tools/backends/managed-module-graph-legacy.mjs +308 -0
- package/tools/backends/managed-module-graph.mjs +694 -0
- package/tools/backends/managed-runtime-host-legacy.mjs +195 -0
- package/tools/backends/managed-runtime.mjs +939 -0
- package/tools/backends/managed-source-view-legacy.mjs +332 -0
- package/tools/backends/managed-source-view.mjs +959 -0
- package/tools/backends/memory-runtime.mjs +100 -0
- package/tools/backends/native-benchmark.mjs +88 -0
- package/tools/backends/native-managed-runtime.mjs +677 -0
- package/tools/backends/native-memory.mjs +768 -0
- package/tools/backends/native-node-memory.mjs +142 -0
- package/tools/backends/native-node-runner.mjs +99 -0
- package/tools/backends/native-node-watchdog.mjs +19 -0
- package/tools/backends/native-node-worker.mjs +75 -0
- package/tools/backends/stage3-targets.mjs +486 -0
- package/tools/bootstrap-command.el +13 -0
- package/tools/bootstrap-runtime.el +101 -0
- package/tools/bootstrap-seed.el +55 -0
- package/tools/project/check-cli.eli +31 -0
- package/tools/project/project-cli.eli +42 -0
- package/tools/project/project.eli +122 -0
- package/tools/runtime/unicode-case-profiles.mjs +13 -0
- package/tools/runtime/unicode-case-runtime.el +57 -0
- package/tools/testing/source-debugging-corpus-host.eli +16 -0
- package/tools/testing/source-debugging.eli +139 -0
- package/tools/testing/stdlib-bit-corpus-host.eli +21 -0
- package/tools/testing/stdlib-bit-corpus-host.mjs +118 -0
- package/tools/testing/stdlib-bit.eli +104 -0
- package/tools/testing/stdlib-bit.mjs +255 -0
- package/bin/eliscript-bootstrap +0 -15
|
@@ -0,0 +1,540 @@
|
|
|
1
|
+
// Generated by Eliscript. Do not edit.
|
|
2
|
+
import "eliscript/runtime/unicode-case.mjs";
|
|
3
|
+
import "eliscript/runtime/math.mjs";
|
|
4
|
+
const __eliscript_truthy = (value) => value !== false && value != null;
|
|
5
|
+
const __eliscript_number_intrinsic = globalThis.Number;
|
|
6
|
+
const __eliscript_bigint_intrinsic = globalThis.BigInt;
|
|
7
|
+
const __eliscript_numeric_apply = globalThis.Reflect.apply;
|
|
8
|
+
const __eliscript_numeric_symbol = globalThis.Symbol.toPrimitive;
|
|
9
|
+
const __eliscript_numeric_error = globalThis.TypeError;
|
|
10
|
+
const __eliscript_numeric_trim = globalThis.String.prototype.trim;
|
|
11
|
+
const __eliscript_numeric_slice = globalThis.String.prototype.slice;
|
|
12
|
+
const __eliscript_numeric_exec = globalThis.RegExp.prototype.exec;
|
|
13
|
+
const __eliscript_numeric_radix = /^(?:0[xX][0-9a-fA-F]+|0[oO][0-7]+|0[bB][01]+)$/;
|
|
14
|
+
const __eliscript_numeric_object = (value) => value !== null && (typeof value === "object" || typeof value === "function" || (typeof value === "undefined" && value !== void 0));
|
|
15
|
+
const __eliscript_numeric_primitive = (value) => {
|
|
16
|
+
if (!__eliscript_numeric_object(value)) return value;
|
|
17
|
+
const exotic = value[__eliscript_numeric_symbol];
|
|
18
|
+
if (exotic !== void 0 && exotic !== null) {
|
|
19
|
+
const result = __eliscript_numeric_apply(exotic, value, ["number"]);
|
|
20
|
+
if (!__eliscript_numeric_object(result)) return result;
|
|
21
|
+
throw new __eliscript_numeric_error("Cannot convert object to primitive value");
|
|
22
|
+
}
|
|
23
|
+
for (let index = 0; index < 2; index++) {
|
|
24
|
+
const method = value[index === 0 ? "valueOf" : "toString"];
|
|
25
|
+
if (typeof method === "function" || (typeof method === "undefined" && method !== void 0)) {
|
|
26
|
+
const result = __eliscript_numeric_apply(method, value, []);
|
|
27
|
+
if (!__eliscript_numeric_object(result)) return result;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
throw new __eliscript_numeric_error("Cannot convert object to primitive value");
|
|
31
|
+
};
|
|
32
|
+
const __eliscript_to_number = (value) => {
|
|
33
|
+
const primitive = __eliscript_numeric_primitive(value);
|
|
34
|
+
if (typeof primitive === "string") {
|
|
35
|
+
const text = __eliscript_numeric_apply(__eliscript_numeric_trim, primitive, []);
|
|
36
|
+
if (__eliscript_numeric_apply(__eliscript_numeric_exec, __eliscript_numeric_radix, [text]) !== null) {
|
|
37
|
+
let first = 2;
|
|
38
|
+
while (first < text.length && text[first] === "0") first++;
|
|
39
|
+
if (first === text.length) return 0;
|
|
40
|
+
const prefix = text[1];
|
|
41
|
+
const limit = prefix === "x" || prefix === "X" ? 256 : prefix === "b" || prefix === "B" ? 1024 : 342;
|
|
42
|
+
if (text.length - first > limit) return 1 / 0;
|
|
43
|
+
const token = __eliscript_numeric_apply(__eliscript_numeric_slice, text, [0, 2]) + __eliscript_numeric_apply(__eliscript_numeric_slice, text, [first]);
|
|
44
|
+
return __eliscript_number_intrinsic(__eliscript_bigint_intrinsic(token));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return __eliscript_number_intrinsic(primitive);
|
|
48
|
+
};
|
|
49
|
+
const __eliscript_numeric = (value) => {
|
|
50
|
+
if (typeof value === "number" || typeof value === "bigint") return value;
|
|
51
|
+
const primitive = __eliscript_numeric_primitive(value);
|
|
52
|
+
if (typeof primitive === "number" || typeof primitive === "bigint") return primitive;
|
|
53
|
+
return typeof primitive === "string" ? __eliscript_to_number(primitive) : +primitive;
|
|
54
|
+
};
|
|
55
|
+
const __eliscript_implicit_number = (value) => {
|
|
56
|
+
if (typeof value === "number") return value;
|
|
57
|
+
const primitive = __eliscript_numeric_primitive(value);
|
|
58
|
+
if (typeof primitive === "bigint") throw new __eliscript_numeric_error("Cannot convert a BigInt value to a number");
|
|
59
|
+
return typeof primitive === "string" ? __eliscript_to_number(primitive) : +primitive;
|
|
60
|
+
};
|
|
61
|
+
const __eliscript_numeric_decrement = (value) => __eliscript_implicit_number(value) - 1;
|
|
62
|
+
const __eliscript_numeric_sub = (a, b) => { if (typeof a === "number" && typeof b === "number") return a - b; return __eliscript_numeric(a) - __eliscript_numeric(b); };
|
|
63
|
+
const __eliscript_numeric_mul = (a, b) => { if (typeof a === "number" && typeof b === "number") return a * b; return __eliscript_numeric(a) * __eliscript_numeric(b); };
|
|
64
|
+
const __eliscript_numeric_div = (a, b) => { if (typeof a === "number" && typeof b === "number") return a / b; return __eliscript_numeric(a) / __eliscript_numeric(b); };
|
|
65
|
+
const __eliscript_numeric_rem = (a, b) => { if (typeof a === "number" && typeof b === "number") return a % b; return __eliscript_numeric(a) % __eliscript_numeric(b); };
|
|
66
|
+
const __eliscript_numeric_and = (a, b) => { if (typeof a === "number" && typeof b === "number") return a & b; return __eliscript_numeric(a) & __eliscript_numeric(b); };
|
|
67
|
+
const __eliscript_numeric_or = (a, b) => { if (typeof a === "number" && typeof b === "number") return a | b; return __eliscript_numeric(a) | __eliscript_numeric(b); };
|
|
68
|
+
const __eliscript_numeric_xor = (a, b) => { if (typeof a === "number" && typeof b === "number") return a ^ b; return __eliscript_numeric(a) ^ __eliscript_numeric(b); };
|
|
69
|
+
const __eliscript_numeric_shl = (a, b) => { if (typeof a === "number" && typeof b === "number") return a << b; return __eliscript_numeric(a) << __eliscript_numeric(b); };
|
|
70
|
+
const __eliscript_numeric_shr = (a, b) => { if (typeof a === "number" && typeof b === "number") return a >> b; return __eliscript_numeric(a) >> __eliscript_numeric(b); };
|
|
71
|
+
const __eliscript_numeric_ushr = (a, b) => { if (typeof a === "number" && typeof b === "number") return a >>> b; return __eliscript_numeric(a) >>> __eliscript_numeric(b); };
|
|
72
|
+
const __eliscript_numeric_neg = (a) => typeof a === "number" ? -a : -__eliscript_numeric(a);
|
|
73
|
+
const __eliscript_numeric_int32 = (a) => typeof a === "number" ? a | 0 : __eliscript_numeric(a) | 0;
|
|
74
|
+
const __eliscript_numeric_uint32 = (a) => typeof a === "number" ? a >>> 0 : __eliscript_numeric(a) >>> 0;
|
|
75
|
+
const __eliscript_numeric_not = (a) => typeof a === "number" ? ~a : ~__eliscript_numeric(a);
|
|
76
|
+
const __eliscript_numeric_relation = (operator, left, right) => {
|
|
77
|
+
if (typeof left === "number" && typeof right === "number") {
|
|
78
|
+
if (operator === "<") return left < right;
|
|
79
|
+
if (operator === "<=") return left <= right;
|
|
80
|
+
if (operator === ">") return left > right;
|
|
81
|
+
return left >= right;
|
|
82
|
+
}
|
|
83
|
+
let a = __eliscript_numeric_primitive(left);
|
|
84
|
+
let b = __eliscript_numeric_primitive(right);
|
|
85
|
+
const x = typeof a, y = typeof b;
|
|
86
|
+
if (!((x === "string" && y === "string") || (x === "bigint" && y === "string") || (x === "string" && y === "bigint"))) {
|
|
87
|
+
a = __eliscript_numeric(a);
|
|
88
|
+
b = __eliscript_numeric(b);
|
|
89
|
+
}
|
|
90
|
+
if (operator === "<") return a < b;
|
|
91
|
+
if (operator === "<=") return a <= b;
|
|
92
|
+
if (operator === ">") return a > b;
|
|
93
|
+
return a >= b;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
import {backend_fail} from "./numeric.mjs";
|
|
97
|
+
import {binary_output, binary_byte, binary_u32, binary_append, binary_finish} from "./binary.mjs";
|
|
98
|
+
function align(value, boundary) {
|
|
99
|
+
return __eliscript_numeric_mul((globalThis.Math)["ceil"](__eliscript_numeric_div(value, boundary)), boundary);
|
|
100
|
+
}
|
|
101
|
+
function byte(output, value) {
|
|
102
|
+
return binary_byte(output, value);
|
|
103
|
+
}
|
|
104
|
+
function half(output, value) {
|
|
105
|
+
byte(output, value);
|
|
106
|
+
return byte(output, __eliscript_numeric_ushr(value, 8));
|
|
107
|
+
}
|
|
108
|
+
function word(output, value) {
|
|
109
|
+
return binary_u32(output, value);
|
|
110
|
+
}
|
|
111
|
+
function quad(output, value) {
|
|
112
|
+
if ((!__eliscript_truthy(((__eliscript_value_1) => (__eliscript_truthy(__eliscript_value_1) ? __eliscript_numeric_relation(">=", value, 0) : __eliscript_value_1))(Number.isSafeInteger(value))))) {
|
|
113
|
+
backend_fail(null, "ELF address exceeds the exact integer range");
|
|
114
|
+
}
|
|
115
|
+
word(output, __eliscript_numeric_uint32(value));
|
|
116
|
+
return word(output, __eliscript_numeric_uint32(__eliscript_numeric_div(value, 4294967296)));
|
|
117
|
+
}
|
|
118
|
+
function pad(output, count) {
|
|
119
|
+
while (__eliscript_numeric_relation("<", ((output) ?? []).length, count)) {
|
|
120
|
+
byte(output, 0);
|
|
121
|
+
}
|
|
122
|
+
return null;
|
|
123
|
+
}
|
|
124
|
+
function append(output, input) {
|
|
125
|
+
return binary_append(output, input);
|
|
126
|
+
}
|
|
127
|
+
function string_entry(output, value) {
|
|
128
|
+
{
|
|
129
|
+
const __eliscript_value_2 = ((output) ?? []).length;
|
|
130
|
+
const __eliscript_value_3 = 0;
|
|
131
|
+
{
|
|
132
|
+
let start = __eliscript_value_2;
|
|
133
|
+
let i = __eliscript_value_3;
|
|
134
|
+
while (__eliscript_numeric_relation("<", i, ((value) ?? []).length)) {
|
|
135
|
+
{
|
|
136
|
+
const __eliscript_value_4 = (value).charCodeAt(i);
|
|
137
|
+
{
|
|
138
|
+
let code = __eliscript_value_4;
|
|
139
|
+
if ((code === 0)) {
|
|
140
|
+
backend_fail(null, "ELF symbol contains NUL");
|
|
141
|
+
}
|
|
142
|
+
if ((__eliscript_numeric_relation(">=", code, 55296) && __eliscript_numeric_relation("<=", code, 56319))) {
|
|
143
|
+
{
|
|
144
|
+
const __eliscript_value_5 = (__eliscript_numeric_relation("<", (i + 1), ((value) ?? []).length) ? (value).charCodeAt((i + 1)) : 0);
|
|
145
|
+
{
|
|
146
|
+
let next = __eliscript_value_5;
|
|
147
|
+
if ((!(__eliscript_numeric_relation(">=", next, 56320) && __eliscript_numeric_relation("<=", next, 57343)))) {
|
|
148
|
+
backend_fail(null, "ELF symbol contains an unpaired surrogate");
|
|
149
|
+
}
|
|
150
|
+
((code = (65536 + __eliscript_numeric_mul(__eliscript_numeric_sub(code, 55296), 1024) + __eliscript_numeric_sub(next, 56320))));
|
|
151
|
+
((i = (i + 1)));
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
if ((__eliscript_numeric_relation(">=", code, 56320) && __eliscript_numeric_relation("<=", code, 57343))) {
|
|
156
|
+
backend_fail(null, "ELF symbol contains an unpaired surrogate");
|
|
157
|
+
}
|
|
158
|
+
if (__eliscript_numeric_relation("<", code, 128)) {
|
|
159
|
+
byte(output, code);
|
|
160
|
+
} else {
|
|
161
|
+
if (__eliscript_numeric_relation("<", code, 2048)) {
|
|
162
|
+
byte(output, __eliscript_numeric_or(192, __eliscript_numeric_ushr(code, 6)));
|
|
163
|
+
byte(output, __eliscript_numeric_or(128, __eliscript_numeric_and(code, 63)));
|
|
164
|
+
} else {
|
|
165
|
+
if (__eliscript_numeric_relation("<", code, 65536)) {
|
|
166
|
+
byte(output, __eliscript_numeric_or(224, __eliscript_numeric_ushr(code, 12)));
|
|
167
|
+
byte(output, __eliscript_numeric_or(128, __eliscript_numeric_and(__eliscript_numeric_ushr(code, 6), 63)));
|
|
168
|
+
byte(output, __eliscript_numeric_or(128, __eliscript_numeric_and(code, 63)));
|
|
169
|
+
} else {
|
|
170
|
+
byte(output, __eliscript_numeric_or(240, __eliscript_numeric_ushr(code, 18)));
|
|
171
|
+
byte(output, __eliscript_numeric_or(128, __eliscript_numeric_and(__eliscript_numeric_ushr(code, 12), 63)));
|
|
172
|
+
byte(output, __eliscript_numeric_or(128, __eliscript_numeric_and(__eliscript_numeric_ushr(code, 6), 63)));
|
|
173
|
+
byte(output, __eliscript_numeric_or(128, __eliscript_numeric_and(code, 63)));
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
((i = (i + 1)));
|
|
180
|
+
}
|
|
181
|
+
byte(output, 0);
|
|
182
|
+
return start;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
function section(name, type, flags, alignment, entry_size, link, info, data) {
|
|
187
|
+
return ({"name": name, "type": type, "flags": flags, "align": alignment, "entrySize": entry_size, "link": link, "info": info, "data": data, "address": 0, "offset": 0});
|
|
188
|
+
}
|
|
189
|
+
function symbols(program, code, public_only, text_address) {
|
|
190
|
+
{
|
|
191
|
+
let functions = (program)["functions"];
|
|
192
|
+
let offsets = (code)["offsets"];
|
|
193
|
+
let exports = (program)["exports"];
|
|
194
|
+
let strings = [0];
|
|
195
|
+
let output = [];
|
|
196
|
+
let indices = [];
|
|
197
|
+
let names = [];
|
|
198
|
+
let i = 0;
|
|
199
|
+
let local_count = 1;
|
|
200
|
+
pad(output, 24);
|
|
201
|
+
if ((!__eliscript_truthy(public_only))) {
|
|
202
|
+
while (__eliscript_numeric_relation("<", i, ((functions) ?? []).length)) {
|
|
203
|
+
if ((!__eliscript_truthy((exports)["includes"]((((((functions) ?? [])[i]) ?? null))["name"])))) {
|
|
204
|
+
(indices)["push"](i);
|
|
205
|
+
((local_count = (local_count + 1)));
|
|
206
|
+
}
|
|
207
|
+
((i = (i + 1)));
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
((i = 0));
|
|
211
|
+
while (__eliscript_numeric_relation("<", i, ((functions) ?? []).length)) {
|
|
212
|
+
if (__eliscript_truthy((exports)["includes"]((((((functions) ?? [])[i]) ?? null))["name"]))) {
|
|
213
|
+
(indices)["push"](i);
|
|
214
|
+
}
|
|
215
|
+
((i = (i + 1)));
|
|
216
|
+
}
|
|
217
|
+
((i = 0));
|
|
218
|
+
while (__eliscript_numeric_relation("<", i, ((indices) ?? []).length)) {
|
|
219
|
+
{
|
|
220
|
+
let index = ((((indices) ?? [])[i]) ?? null);
|
|
221
|
+
let function$ = ((((functions) ?? [])[index]) ?? null);
|
|
222
|
+
let name = (function$)["name"];
|
|
223
|
+
let start = ((((offsets) ?? [])[index]) ?? null);
|
|
224
|
+
let end = (__eliscript_numeric_relation("<", (index + 1), ((offsets) ?? []).length) ? ((((offsets) ?? [])[(index + 1)]) ?? null) : __eliscript_numeric_mul((((code)["words"]) ?? []).length, 4));
|
|
225
|
+
let name_offset = string_entry(strings, name);
|
|
226
|
+
(names)["push"](name_offset);
|
|
227
|
+
word(output, name_offset);
|
|
228
|
+
byte(output, (__eliscript_truthy((exports)["includes"](name)) ? 18 : 2));
|
|
229
|
+
byte(output, 0);
|
|
230
|
+
half(output, 1);
|
|
231
|
+
quad(output, (text_address + start));
|
|
232
|
+
quad(output, __eliscript_numeric_sub(end, start));
|
|
233
|
+
}
|
|
234
|
+
((i = (i + 1)));
|
|
235
|
+
}
|
|
236
|
+
return ({"bytes": output, "strings": strings, "names": names, "localCount": local_count});
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
function sysv_hash(strings, start) {
|
|
240
|
+
{
|
|
241
|
+
const __eliscript_value_6 = 0;
|
|
242
|
+
const __eliscript_value_7 = start;
|
|
243
|
+
const __eliscript_value_8 = ((((strings) ?? [])[start]) ?? null);
|
|
244
|
+
{
|
|
245
|
+
let hash = __eliscript_value_6;
|
|
246
|
+
let i = __eliscript_value_7;
|
|
247
|
+
let value = __eliscript_value_8;
|
|
248
|
+
while (((__eliscript_value_9, __eliscript_value_10) => (__eliscript_value_9 !== __eliscript_value_10))(value, 0)) {
|
|
249
|
+
((hash = __eliscript_numeric_uint32((__eliscript_numeric_mul(hash, 16) + value))));
|
|
250
|
+
{
|
|
251
|
+
const __eliscript_value_11 = __eliscript_numeric_and(hash, 4026531840);
|
|
252
|
+
{
|
|
253
|
+
let high = __eliscript_value_11;
|
|
254
|
+
if (((__eliscript_value_12, __eliscript_value_13) => (__eliscript_value_12 !== __eliscript_value_13))(high, 0)) {
|
|
255
|
+
((hash = __eliscript_numeric_xor(hash, __eliscript_numeric_ushr(high, 24))));
|
|
256
|
+
}
|
|
257
|
+
((hash = __eliscript_numeric_uint32(__eliscript_numeric_and(hash, __eliscript_numeric_not(high)))));
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
((i = (i + 1)));
|
|
261
|
+
((value = ((((strings) ?? [])[i]) ?? null)));
|
|
262
|
+
}
|
|
263
|
+
return hash;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
function hash_table(symbols) {
|
|
268
|
+
{
|
|
269
|
+
let names = (symbols)["names"];
|
|
270
|
+
let strings = (symbols)["strings"];
|
|
271
|
+
let count = (((names) ?? []).length + 1);
|
|
272
|
+
let buckets = [];
|
|
273
|
+
let chains = [];
|
|
274
|
+
let bucket_count = (__eliscript_numeric_relation(">", count, 1) ? count : 1);
|
|
275
|
+
let output = [];
|
|
276
|
+
let i = 0;
|
|
277
|
+
while (__eliscript_numeric_relation("<", i, bucket_count)) {
|
|
278
|
+
(buckets)["push"](0);
|
|
279
|
+
((i = (i + 1)));
|
|
280
|
+
}
|
|
281
|
+
((i = 0));
|
|
282
|
+
while (__eliscript_numeric_relation("<", i, count)) {
|
|
283
|
+
(chains)["push"](0);
|
|
284
|
+
((i = (i + 1)));
|
|
285
|
+
}
|
|
286
|
+
((i = 1));
|
|
287
|
+
while (__eliscript_numeric_relation("<", i, count)) {
|
|
288
|
+
{
|
|
289
|
+
let hash = sysv_hash(strings, ((((names) ?? [])[__eliscript_numeric_decrement(i)]) ?? null));
|
|
290
|
+
let bucket = __eliscript_numeric_rem(hash, bucket_count);
|
|
291
|
+
let previous = ((((buckets) ?? [])[bucket]) ?? null);
|
|
292
|
+
(chains)["splice"](i, 1, previous);
|
|
293
|
+
(buckets)["splice"](bucket, 1, i);
|
|
294
|
+
}
|
|
295
|
+
((i = (i + 1)));
|
|
296
|
+
}
|
|
297
|
+
word(output, bucket_count);
|
|
298
|
+
word(output, count);
|
|
299
|
+
((i = 0));
|
|
300
|
+
while (__eliscript_numeric_relation("<", i, bucket_count)) {
|
|
301
|
+
word(output, ((((buckets) ?? [])[i]) ?? null));
|
|
302
|
+
((i = (i + 1)));
|
|
303
|
+
}
|
|
304
|
+
((i = 0));
|
|
305
|
+
while (__eliscript_numeric_relation("<", i, count)) {
|
|
306
|
+
word(output, ((((chains) ?? [])[i]) ?? null));
|
|
307
|
+
((i = (i + 1)));
|
|
308
|
+
}
|
|
309
|
+
return output;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
function header(output, kind, program_offset, section_offset, program_count, section_count, names_index) {
|
|
313
|
+
append(output, [127, 69, 76, 70, 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
|
|
314
|
+
half(output, kind);
|
|
315
|
+
half(output, 183);
|
|
316
|
+
word(output, 1);
|
|
317
|
+
quad(output, 0);
|
|
318
|
+
quad(output, program_offset);
|
|
319
|
+
quad(output, section_offset);
|
|
320
|
+
word(output, 0);
|
|
321
|
+
half(output, 64);
|
|
322
|
+
half(output, (__eliscript_numeric_relation(">", program_count, 0) ? 56 : 0));
|
|
323
|
+
half(output, program_count);
|
|
324
|
+
half(output, 64);
|
|
325
|
+
half(output, section_count);
|
|
326
|
+
return half(output, names_index);
|
|
327
|
+
}
|
|
328
|
+
function segment(output, type, flags, offset, address, file_size, memory_size, alignment) {
|
|
329
|
+
word(output, type);
|
|
330
|
+
word(output, flags);
|
|
331
|
+
quad(output, offset);
|
|
332
|
+
quad(output, address);
|
|
333
|
+
quad(output, address);
|
|
334
|
+
quad(output, file_size);
|
|
335
|
+
quad(output, memory_size);
|
|
336
|
+
return quad(output, alignment);
|
|
337
|
+
}
|
|
338
|
+
function section_headers(output, sections) {
|
|
339
|
+
{
|
|
340
|
+
const __eliscript_value_14 = 0;
|
|
341
|
+
{
|
|
342
|
+
let i = __eliscript_value_14;
|
|
343
|
+
while (__eliscript_numeric_relation("<", i, ((sections) ?? []).length)) {
|
|
344
|
+
{
|
|
345
|
+
const __eliscript_value_15 = ((((sections) ?? [])[i]) ?? null);
|
|
346
|
+
{
|
|
347
|
+
let entry = __eliscript_value_15;
|
|
348
|
+
word(output, ((entry)["nameIndex"] ?? 0));
|
|
349
|
+
word(output, (entry)["type"]);
|
|
350
|
+
quad(output, (entry)["flags"]);
|
|
351
|
+
quad(output, (entry)["address"]);
|
|
352
|
+
quad(output, (entry)["offset"]);
|
|
353
|
+
quad(output, (((entry)["data"]) ?? []).length);
|
|
354
|
+
word(output, (entry)["link"]);
|
|
355
|
+
word(output, (entry)["info"]);
|
|
356
|
+
quad(output, (entry)["align"]);
|
|
357
|
+
quad(output, (entry)["entrySize"]);
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
((i = (i + 1)));
|
|
361
|
+
}
|
|
362
|
+
return null;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
function layout(sections, first_offset) {
|
|
367
|
+
{
|
|
368
|
+
const __eliscript_value_16 = first_offset;
|
|
369
|
+
const __eliscript_value_17 = 1;
|
|
370
|
+
{
|
|
371
|
+
let offset = __eliscript_value_16;
|
|
372
|
+
let i = __eliscript_value_17;
|
|
373
|
+
while (__eliscript_numeric_relation("<", i, ((sections) ?? []).length)) {
|
|
374
|
+
{
|
|
375
|
+
const __eliscript_value_18 = ((((sections) ?? [])[i]) ?? null);
|
|
376
|
+
{
|
|
377
|
+
let entry = __eliscript_value_18;
|
|
378
|
+
((offset = align(offset, (entry)["align"])));
|
|
379
|
+
((entry)["offset"] = offset);
|
|
380
|
+
if (((__eliscript_value_19, __eliscript_value_20) => (__eliscript_value_19 !== __eliscript_value_20))(__eliscript_numeric_and((entry)["flags"], 2), 0)) {
|
|
381
|
+
((entry)["address"] = offset);
|
|
382
|
+
}
|
|
383
|
+
((offset = (offset + (((entry)["data"]) ?? []).length)));
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
((i = (i + 1)));
|
|
387
|
+
}
|
|
388
|
+
return align(offset, 8);
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
function section_names(sections) {
|
|
393
|
+
{
|
|
394
|
+
const __eliscript_value_21 = [0];
|
|
395
|
+
const __eliscript_value_22 = 1;
|
|
396
|
+
{
|
|
397
|
+
let strings = __eliscript_value_21;
|
|
398
|
+
let i = __eliscript_value_22;
|
|
399
|
+
while (__eliscript_numeric_relation("<", i, ((sections) ?? []).length)) {
|
|
400
|
+
((((((sections) ?? [])[i]) ?? null))["nameIndex"] = string_entry(strings, (((((sections) ?? [])[i]) ?? null))["name"]));
|
|
401
|
+
((i = (i + 1)));
|
|
402
|
+
}
|
|
403
|
+
return strings;
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
function write_sections(output, sections) {
|
|
408
|
+
{
|
|
409
|
+
const __eliscript_value_23 = 1;
|
|
410
|
+
{
|
|
411
|
+
let i = __eliscript_value_23;
|
|
412
|
+
while (__eliscript_numeric_relation("<", i, ((sections) ?? []).length)) {
|
|
413
|
+
{
|
|
414
|
+
const __eliscript_value_24 = ((((sections) ?? [])[i]) ?? null);
|
|
415
|
+
{
|
|
416
|
+
let entry = __eliscript_value_24;
|
|
417
|
+
pad(output, (entry)["offset"]);
|
|
418
|
+
{
|
|
419
|
+
const __eliscript_value_25 = (entry)["data"];
|
|
420
|
+
{
|
|
421
|
+
let data = __eliscript_value_25;
|
|
422
|
+
if (__eliscript_truthy(Array.isArray(data))) {
|
|
423
|
+
append(output, data);
|
|
424
|
+
} else {
|
|
425
|
+
{
|
|
426
|
+
const __eliscript_value_26 = (data)["wordSource"];
|
|
427
|
+
const __eliscript_value_27 = ((data)["wordReader"] ?? null);
|
|
428
|
+
const __eliscript_value_28 = 0;
|
|
429
|
+
{
|
|
430
|
+
let words = __eliscript_value_26;
|
|
431
|
+
let reader = __eliscript_value_27;
|
|
432
|
+
let j = __eliscript_value_28;
|
|
433
|
+
while (__eliscript_numeric_relation("<", j, ((words) ?? []).length)) {
|
|
434
|
+
word(output, (__eliscript_truthy(reader) ? reader(words, j) : ((((words) ?? [])[j]) ?? null)));
|
|
435
|
+
((j = (j + 1)));
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
((i = (i + 1)));
|
|
445
|
+
}
|
|
446
|
+
return null;
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
function text_bytes(code, options = null) {
|
|
451
|
+
{
|
|
452
|
+
const __eliscript_value_29 = [];
|
|
453
|
+
const __eliscript_value_30 = (code)["words"];
|
|
454
|
+
const __eliscript_value_31 = ((code)["wordReader"] ?? null);
|
|
455
|
+
const __eliscript_value_32 = 0;
|
|
456
|
+
{
|
|
457
|
+
let output = __eliscript_value_29;
|
|
458
|
+
let words = __eliscript_value_30;
|
|
459
|
+
let reader = __eliscript_value_31;
|
|
460
|
+
let i = __eliscript_value_32;
|
|
461
|
+
if ((((((__eliscript_value_33) => (__eliscript_truthy(__eliscript_value_33) ? __eliscript_value_33 : ({})))(options))["binaryEncoding"] ?? undefined) === "u16le-chunks")) {
|
|
462
|
+
return ({"length": __eliscript_numeric_mul(4, ((words) ?? []).length), "wordSource": words, "wordReader": reader});
|
|
463
|
+
} else {
|
|
464
|
+
while (__eliscript_numeric_relation("<", i, ((words) ?? []).length)) {
|
|
465
|
+
word(output, (__eliscript_truthy(reader) ? reader(words, i) : ((((words) ?? [])[i]) ?? null)));
|
|
466
|
+
((i = (i + 1)));
|
|
467
|
+
}
|
|
468
|
+
return output;
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
function emit_elf_object(program, code, options = null) {
|
|
474
|
+
{
|
|
475
|
+
let sym = symbols(program, code, null, 0);
|
|
476
|
+
let sections = [section("", 0, 0, 0, 0, 0, 0, []), section(".text", 1, 6, 16, 0, 0, 0, text_bytes(code, options)), section(".symtab", 2, 0, 8, 24, 3, (sym)["localCount"], (sym)["bytes"]), section(".strtab", 3, 0, 1, 0, 0, 0, (sym)["strings"]), section(".shstrtab", 3, 0, 1, 0, 0, 0, []), section(".note.GNU-stack", 1, 0, 1, 0, 0, 0, [])];
|
|
477
|
+
let output = binary_output(options);
|
|
478
|
+
((((((sections) ?? [])[4]) ?? null))["data"] = section_names(sections));
|
|
479
|
+
{
|
|
480
|
+
const __eliscript_value_34 = layout(sections, 64);
|
|
481
|
+
{
|
|
482
|
+
let section_offset = __eliscript_value_34;
|
|
483
|
+
((((((sections) ?? [])[1]) ?? null))["address"] = 0);
|
|
484
|
+
header(output, 1, 0, section_offset, 0, ((sections) ?? []).length, 4);
|
|
485
|
+
write_sections(output, sections);
|
|
486
|
+
pad(output, section_offset);
|
|
487
|
+
section_headers(output, sections);
|
|
488
|
+
((code)["section"] = ({"name": ".text", "fileOffset": (((((sections) ?? [])[1]) ?? null))["offset"], "virtualAddress": 0, "size": (((((((sections) ?? [])[1]) ?? null))["data"]) ?? []).length}));
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
return binary_finish(output);
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
function dynamic_entry(output, tag, value) {
|
|
495
|
+
quad(output, tag);
|
|
496
|
+
return quad(output, value);
|
|
497
|
+
}
|
|
498
|
+
function emit_elf_library(program, code, options = null) {
|
|
499
|
+
{
|
|
500
|
+
let program_count = 5;
|
|
501
|
+
let text_offset = align((64 + __eliscript_numeric_mul(program_count, 56)), 16);
|
|
502
|
+
let dyn = symbols(program, code, true, text_offset);
|
|
503
|
+
let sym = symbols(program, code, null, text_offset);
|
|
504
|
+
let soname = string_entry((dyn)["strings"], "eliscript.so");
|
|
505
|
+
let sections = [section("", 0, 0, 0, 0, 0, 0, []), section(".text", 1, 6, 16, 0, 0, 0, text_bytes(code, options)), section(".dynsym", 11, 2, 8, 24, 3, 1, (dyn)["bytes"]), section(".dynstr", 3, 2, 1, 0, 0, 0, (dyn)["strings"]), section(".hash", 5, 2, 8, 4, 2, 0, hash_table(dyn)), section(".rela.dyn", 4, 2, 8, 24, 2, 0, []), section(".dynamic", 6, 3, 65536, 16, 3, 0, []), section(".symtab", 2, 0, 8, 24, 8, (sym)["localCount"], (sym)["bytes"]), section(".strtab", 3, 0, 1, 0, 0, 0, (sym)["strings"]), section(".shstrtab", 3, 0, 1, 0, 0, 0, [])];
|
|
506
|
+
let dynamic = (((((sections) ?? [])[6]) ?? null))["data"];
|
|
507
|
+
let output = binary_output(options);
|
|
508
|
+
pad(dynamic, __eliscript_numeric_mul(11, 16));
|
|
509
|
+
((((((sections) ?? [])[9]) ?? null))["data"] = section_names(sections));
|
|
510
|
+
{
|
|
511
|
+
let section_offset = layout(sections, text_offset);
|
|
512
|
+
let dynamic_offset = (((((sections) ?? [])[6]) ?? null))["offset"];
|
|
513
|
+
((dynamic = []));
|
|
514
|
+
dynamic_entry(dynamic, 4, (((((sections) ?? [])[4]) ?? null))["address"]);
|
|
515
|
+
dynamic_entry(dynamic, 5, (((((sections) ?? [])[3]) ?? null))["address"]);
|
|
516
|
+
dynamic_entry(dynamic, 6, (((((sections) ?? [])[2]) ?? null))["address"]);
|
|
517
|
+
dynamic_entry(dynamic, 10, (((dyn)["strings"]) ?? []).length);
|
|
518
|
+
dynamic_entry(dynamic, 11, 24);
|
|
519
|
+
dynamic_entry(dynamic, 14, soname);
|
|
520
|
+
dynamic_entry(dynamic, 7, (((((sections) ?? [])[5]) ?? null))["address"]);
|
|
521
|
+
dynamic_entry(dynamic, 8, 0);
|
|
522
|
+
dynamic_entry(dynamic, 9, 24);
|
|
523
|
+
dynamic_entry(dynamic, 30, 8);
|
|
524
|
+
dynamic_entry(dynamic, 0, 0);
|
|
525
|
+
((((((sections) ?? [])[6]) ?? null))["data"] = dynamic);
|
|
526
|
+
header(output, 3, 64, section_offset, program_count, ((sections) ?? []).length, 9);
|
|
527
|
+
segment(output, 6, 4, 64, 64, __eliscript_numeric_mul(program_count, 56), __eliscript_numeric_mul(program_count, 56), 8);
|
|
528
|
+
segment(output, 1, 5, 0, 0, dynamic_offset, dynamic_offset, 65536);
|
|
529
|
+
segment(output, 1, 6, dynamic_offset, dynamic_offset, ((dynamic) ?? []).length, ((dynamic) ?? []).length, 65536);
|
|
530
|
+
segment(output, 2, 6, dynamic_offset, dynamic_offset, ((dynamic) ?? []).length, ((dynamic) ?? []).length, 8);
|
|
531
|
+
segment(output, 1685382481, 6, 0, 0, 0, 0, 16);
|
|
532
|
+
write_sections(output, sections);
|
|
533
|
+
pad(output, section_offset);
|
|
534
|
+
section_headers(output, sections);
|
|
535
|
+
((code)["section"] = ({"name": ".text", "fileOffset": text_offset, "virtualAddress": text_offset, "size": (((((((sections) ?? [])[1]) ?? null))["data"]) ?? []).length}));
|
|
536
|
+
}
|
|
537
|
+
return binary_finish(output);
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
export {emit_elf_object, emit_elf_library};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backends/elf.mjs","sources":["bootstrap/backends/elf.eli"],"sourcesContent":["(module eliscript.backend.elf\n (import \"./numeric.mjs\" backend-fail)\n (import \"./binary.mjs\" binary-output binary-byte binary-u32 binary-append binary-finish)\n\n (defun align (value boundary)\n (* (js-call globalThis.Math :ceil (/ value boundary)) boundary))\n\n (defun byte (output value) (binary-byte output value))\n (defun half (output value)\n (byte output value) (byte output (unsigned-bit-shift-right value 8)))\n (defun word (output value)\n (binary-u32 output value))\n (defun quad (output value)\n (unless (and (Number/isSafeInteger value) (>= value 0))\n (backend-fail nil \"ELF address exceeds the exact integer range\"))\n (word output (uint32 value)) (word output (uint32 (/ value 4294967296))))\n (defun pad (output count)\n (while (< (js-length output) count) (byte output 0)))\n (defun append (output input)\n (binary-append output input))\n\n (defun string-entry (output value)\n (let ((start (js-length output)) (i 0))\n (while (< i (js-length value))\n (let ((code (string-code-unit-at value i)))\n (when (= code 0) (backend-fail nil \"ELF symbol contains NUL\"))\n (when (and (>= code 55296) (<= code 56319))\n (let ((next (if (< (1+ i) (js-length value)) (string-code-unit-at value (1+ i)) 0)))\n (unless (and (>= next 56320) (<= next 57343))\n (backend-fail nil \"ELF symbol contains an unpaired surrogate\"))\n (setq code (+ 65536 (* (- code 55296) 1024) (- next 56320)))\n (setq i (1+ i))))\n (when (and (>= code 56320) (<= code 57343))\n (backend-fail nil \"ELF symbol contains an unpaired surrogate\"))\n (cond\n ((< code 128) (byte output code))\n ((< code 2048)\n (byte output (bit-or 192 (unsigned-bit-shift-right code 6)))\n (byte output (bit-or 128 (bit-and code 63))))\n ((< code 65536)\n (byte output (bit-or 224 (unsigned-bit-shift-right code 12)))\n (byte output (bit-or 128 (bit-and (unsigned-bit-shift-right code 6) 63)))\n (byte output (bit-or 128 (bit-and code 63))))\n (t\n (byte output (bit-or 240 (unsigned-bit-shift-right code 18)))\n (byte output (bit-or 128 (bit-and (unsigned-bit-shift-right code 12) 63)))\n (byte output (bit-or 128 (bit-and (unsigned-bit-shift-right code 6) 63)))\n (byte output (bit-or 128 (bit-and code 63))))))\n (setq i (1+ i)))\n (byte output 0) start))\n\n (defun section (name type flags alignment entry-size link info data)\n (js-object :name name :type type :flags flags :align alignment\n :entrySize entry-size :link link :info info :data data :address 0 :offset 0))\n\n (defun symbols (program code public-only text-address)\n (let* ((functions (get program :functions)) (offsets (get code :offsets))\n (exports (get program :exports)) (strings (js-array 0))\n (output (js-array)) (indices (js-array)) (names (js-array)) (i 0) (local-count 1))\n (pad output 24)\n ;; ELF requires every local symbol to precede the first non-local symbol.\n (unless public-only\n (while (< i (js-length functions))\n (unless (js-call exports :includes (get (js-nth i functions) :name))\n (js-call indices :push i) (setq local-count (1+ local-count)))\n (setq i (1+ i))))\n (setq i 0)\n (while (< i (js-length functions))\n (when (js-call exports :includes (get (js-nth i functions) :name)) (js-call indices :push i))\n (setq i (1+ i)))\n (setq i 0)\n (while (< i (js-length indices))\n (let* ((index (js-nth i indices)) (function (js-nth index functions))\n (name (get function :name)) (start (js-nth index offsets))\n (end (if (< (1+ index) (js-length offsets)) (js-nth (1+ index) offsets)\n (* (js-length (get code :words)) 4)))\n (name-offset (string-entry strings name)))\n (js-call names :push name-offset)\n (word output name-offset)\n (byte output (if (js-call exports :includes name) 18 2))\n (byte output 0) (half output 1)\n (quad output (+ text-address start)) (quad output (- end start)))\n (setq i (1+ i)))\n (js-object :bytes output :strings strings :names names :localCount local-count)))\n\n (defun sysv-hash (strings start)\n (let ((hash 0) (i start) (value (js-nth start strings)))\n (while (/= value 0)\n (setq hash (uint32 (+ (* hash 16) value)))\n (let ((high (bit-and hash 4026531840)))\n (when (/= high 0) (setq hash (bit-xor hash (unsigned-bit-shift-right high 24))))\n (setq hash (uint32 (bit-and hash (bit-not high)))))\n (setq i (1+ i)) (setq value (js-nth i strings)))\n hash))\n\n (defun hash-table (symbols)\n (let* ((names (get symbols :names)) (strings (get symbols :strings))\n (count (1+ (js-length names))) (buckets (js-array)) (chains (js-array))\n (bucket-count (if (> count 1) count 1)) (output (js-array)) (i 0))\n (while (< i bucket-count) (js-call buckets :push 0) (setq i (1+ i)))\n (setq i 0)\n (while (< i count) (js-call chains :push 0) (setq i (1+ i)))\n (setq i 1)\n (while (< i count)\n (let* ((hash (sysv-hash strings (js-nth (1- i) names)))\n (bucket (% hash bucket-count)) (previous (js-nth bucket buckets)))\n (js-call chains :splice i 1 previous) (js-call buckets :splice bucket 1 i))\n (setq i (1+ i)))\n (word output bucket-count) (word output count)\n (setq i 0)\n (while (< i bucket-count) (word output (js-nth i buckets)) (setq i (1+ i)))\n (setq i 0)\n (while (< i count) (word output (js-nth i chains)) (setq i (1+ i)))\n output))\n\n (defun header (output kind program-offset section-offset program-count section-count names-index)\n (append output (js-array 127 69 76 70 2 1 1 0 0 0 0 0 0 0 0 0))\n (half output kind) (half output 183) (word output 1)\n (quad output 0) (quad output program-offset) (quad output section-offset)\n (word output 0) (half output 64) (half output (if (> program-count 0) 56 0))\n (half output program-count) (half output 64) (half output section-count) (half output names-index))\n\n (defun segment (output type flags offset address file-size memory-size alignment)\n (word output type) (word output flags) (quad output offset)\n (quad output address) (quad output address)\n (quad output file-size) (quad output memory-size) (quad output alignment))\n\n (defun section-headers (output sections)\n (let ((i 0))\n (while (< i (js-length sections))\n (let ((entry (js-nth i sections)))\n (word output (get entry :nameIndex 0)) (word output (get entry :type))\n (quad output (get entry :flags)) (quad output (get entry :address))\n (quad output (get entry :offset)) (quad output (js-length (get entry :data)))\n (word output (get entry :link)) (word output (get entry :info))\n (quad output (get entry :align)) (quad output (get entry :entrySize)))\n (setq i (1+ i)))))\n\n (defun layout (sections first-offset)\n (let ((offset first-offset) (i 1))\n (while (< i (js-length sections))\n (let ((entry (js-nth i sections)))\n (setq offset (align offset (get entry :align)))\n (put entry :offset offset)\n (when (/= (bit-and (get entry :flags) 2) 0) (put entry :address offset))\n (setq offset (+ offset (js-length (get entry :data)))))\n (setq i (1+ i)))\n (align offset 8)))\n\n (defun section-names (sections)\n (let ((strings (js-array 0)) (i 1))\n (while (< i (js-length sections))\n (put (js-nth i sections) :nameIndex (string-entry strings (get (js-nth i sections) :name)))\n (setq i (1+ i)))\n strings))\n\n (defun write-sections (output sections)\n (let ((i 1))\n (while (< i (js-length sections))\n (let ((entry (js-nth i sections)))\n (pad output (get entry :offset))\n (let ((data (get entry :data)))\n (if (Array/isArray data) (append output data)\n (let ((words (get data :wordSource)) (reader (get data :wordReader nil)) (j 0))\n (while (< j (js-length words))\n (word output (if reader (funcall reader words j) (js-nth j words))) (setq j (1+ j)))))))\n (setq i (1+ i)))))\n\n (defun text-bytes (code &optional options)\n (let ((output (js-array)) (words (get code :words)) (reader (get code :wordReader nil)) (i 0))\n (if (= (get (or options (js-object)) :binaryEncoding undefined) \"u16le-chunks\")\n (js-object :length (* 4 (js-length words)) :wordSource words :wordReader reader)\n (progn\n (while (< i (js-length words))\n (word output (if reader (funcall reader words i) (js-nth i words))) (setq i (1+ i)))\n output))))\n\n (defun emit-elf-object (program code &optional options)\n (let* ((sym (symbols program code nil 0))\n (sections (js-array\n (section \"\" 0 0 0 0 0 0 (js-array))\n (section \".text\" 1 6 16 0 0 0 (text-bytes code options))\n (section \".symtab\" 2 0 8 24 3 (get sym :localCount) (get sym :bytes))\n (section \".strtab\" 3 0 1 0 0 0 (get sym :strings))\n (section \".shstrtab\" 3 0 1 0 0 0 (js-array))\n (section \".note.GNU-stack\" 1 0 1 0 0 0 (js-array))))\n (output (binary-output options)))\n (put (js-nth 4 sections) :data (section-names sections))\n (let ((section-offset (layout sections 64)))\n ;; ET_REL values are section-relative, rather than load addresses.\n (put (js-nth 1 sections) :address 0)\n (header output 1 0 section-offset 0 (js-length sections) 4)\n (write-sections output sections) (pad output section-offset)\n (section-headers output sections)\n (put code :section (js-object :name \".text\" :fileOffset (get (js-nth 1 sections) :offset)\n :virtualAddress 0 :size (js-length (get (js-nth 1 sections) :data)))))\n (binary-finish output)))\n\n (defun dynamic-entry (output tag value) (quad output tag) (quad output value))\n\n (defun emit-elf-library (program code &optional options)\n (let* ((program-count 5) (text-offset (align (+ 64 (* program-count 56)) 16))\n (dyn (symbols program code t text-offset)) (sym (symbols program code nil text-offset))\n (soname (string-entry (get dyn :strings) \"eliscript.so\"))\n (sections (js-array\n (section \"\" 0 0 0 0 0 0 (js-array))\n (section \".text\" 1 6 16 0 0 0 (text-bytes code options))\n (section \".dynsym\" 11 2 8 24 3 1 (get dyn :bytes))\n (section \".dynstr\" 3 2 1 0 0 0 (get dyn :strings))\n (section \".hash\" 5 2 8 4 2 0 (hash-table dyn))\n (section \".rela.dyn\" 4 2 8 24 2 0 (js-array))\n (section \".dynamic\" 6 3 65536 16 3 0 (js-array))\n (section \".symtab\" 2 0 8 24 8 (get sym :localCount) (get sym :bytes))\n (section \".strtab\" 3 0 1 0 0 0 (get sym :strings))\n (section \".shstrtab\" 3 0 1 0 0 0 (js-array))))\n (dynamic (get (js-nth 6 sections) :data)) (output (binary-output options)))\n ;; Reserve the exact dynamic table before laying out subsequent sections.\n (pad dynamic (* 11 16))\n (put (js-nth 9 sections) :data (section-names sections))\n (let* ((section-offset (layout sections text-offset))\n (dynamic-offset (get (js-nth 6 sections) :offset)))\n (setq dynamic (js-array))\n (dynamic-entry dynamic 4 (get (js-nth 4 sections) :address))\n (dynamic-entry dynamic 5 (get (js-nth 3 sections) :address))\n (dynamic-entry dynamic 6 (get (js-nth 2 sections) :address))\n (dynamic-entry dynamic 10 (js-length (get dyn :strings)))\n (dynamic-entry dynamic 11 24) (dynamic-entry dynamic 14 soname)\n ;; All calls/table entries are resolved relative to this image. There\n ;; are no external symbols or absolute pointers requiring relocation.\n (dynamic-entry dynamic 7 (get (js-nth 5 sections) :address))\n (dynamic-entry dynamic 8 0) (dynamic-entry dynamic 9 24)\n (dynamic-entry dynamic 30 8) (dynamic-entry dynamic 0 0)\n (put (js-nth 6 sections) :data dynamic)\n (header output 3 64 section-offset program-count (js-length sections) 9)\n (segment output 6 4 64 64 (* program-count 56) (* program-count 56) 8)\n (segment output 1 5 0 0 dynamic-offset dynamic-offset 65536)\n (segment output 1 6 dynamic-offset dynamic-offset (js-length dynamic) (js-length dynamic) 65536)\n (segment output 2 6 dynamic-offset dynamic-offset (js-length dynamic) (js-length dynamic) 8)\n (segment output 1685382481 6 0 0 0 0 16)\n (write-sections output sections) (pad output section-offset)\n (section-headers output sections)\n (put code :section (js-object :name \".text\" :fileOffset text-offset :virtualAddress text-offset\n :size (js-length (get (js-nth 1 sections) :data)))))\n (binary-finish output)))\n\n (export emit-elf-object emit-elf-library))\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACE,QAAwB;AACxB,QAAuB,eAAc,aAAY,YAAW,eAAc;AAE1E,eAAc,OAAM;EAClB,OAAA,wBAAG,CAAS,iBAAgB,QAAM,wBAAG,OAAM,YAAW;;AAExD,cAAa,QAAO;EAAO,OAAC,YAAY,QAAO;;AAC/C,cAAa,QAAO;EACjB,KAAK,QAAO;EAAO,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