Directories
¶
| Path | Synopsis |
|---|---|
|
Package cengine is the C engine of engine/ generated as Go assembly, with its Go host.
|
Package cengine is the C engine of engine/ generated as Go assembly, with its Go host. |
|
cmd/gcpause
command
Command gcpause measures how long the Go garbage collector waits to stop the world while VMs run a script that stays in the engine.
|
Command gcpause measures how long the Go garbage collector waits to stop the world while VMs run a script that stays in the engine. |
|
cmd/interrupt
command
Command interrupt times how long a script takes to stop after Interrupt, for the scripts of package scenarios, each of which stays inside one long operation of the engine.
|
Command interrupt times how long a script takes to stop after Interrupt, for the scripts of package scenarios, each of which stays inside one long operation of the engine. |
|
cmd/jsrun
command
Command jsrun evaluates a JavaScript file and prints its result, how long the evaluation took and what memory the VM held.
|
Command jsrun evaluates a JavaScript file and prints its result, how long the evaluation took and what memory the VM held. |
|
cmd/scenarios
Package scenarios holds the scripts that the commands gcpause and interrupt run: each stays inside one long operation of the engine.
|
Package scenarios holds the scripts that the commands gcpause and interrupt run: each stays inside one long operation of the engine. |
|
Command dtoatable writes engine/dtoa-pow10.h, the table of powers of ten that the shortest conversion of a float64 to decimal in engine/dtoa.c uses (the Schubfach algorithm of Raffaello Giulietti, written from his paper "The Schubfach way to render doubles").
|
Command dtoatable writes engine/dtoa-pow10.h, the table of powers of ten that the shortest conversion of a float64 to decimal in engine/dtoa.c uses (the Schubfach algorithm of Raffaello Giulietti, written from his paper "The Schubfach way to render doubles"). |
|
Package faultstate tells whether the state of the CPU that windows/arm64 writes below the stack pointer at a fault fits in the room Go keeps for it, so that a fault in the engine cannot write past a goroutine stack into the heap.
|
Package faultstate tells whether the state of the CPU that windows/arm64 writes below the stack pointer at a fault fits in the room Go keeps for it, so that a fault in the engine cannot write past a goroutine stack into the heap. |
|
Package faulttest is for the tests that make a memory fault on purpose: a read through a wild pointer, or a write to a guard page or to read-only memory.
|
Package faulttest is for the tests that make a memory fault on purpose: a read through a wild pointer, or a write to a guard page or to read-only memory. |
|
goasm
|
|
|
cmd/cycles
command
Command cycles lists the cycles of the engine's call graph that no counted depth cuts.
|
Command cycles lists the cycles of the engine's call graph that no counted depth cuts. |
|
cmd/xform
command
Command xform moves the code of generated Go assembly, to measure how much a speed result depends on where the code sits (see "Code positions" in docs/internals/performance.md).
|
Command xform moves the code of generated Go assembly, to measure how much a speed result depends on where the code sits (see "Code positions" in docs/internals/performance.md). |
|
gen/cmd/engine
command
|
|
|
gen/cmd/gen
command
|
|
|
gen/cmd/gocalls
command
Command gocalls writes internal/cengine/gocalls.txt, the engine functions the Go code of the module names (gen.GoCalls).
|
Command gocalls writes internal/cengine/gocalls.txt, the engine functions the Go code of the module names (gen.GoCalls). |
|
Package gohost is the Go side of the callbacks the C engine asks of its host (engine/host.h and host_memory_grow in engine/heap.h), for the engine generated as Go assembly.
|
Package gohost is the Go side of the callbacks the C engine asks of its host (engine/host.h and host_memory_grow in engine/heap.h), for the engine generated as Go assembly. |
|
internal/qjspack/gen
command
|
|
|
Package goversion stops a build with a Go newer than the one the engine was checked with.
|
Package goversion stops a build with a Go newer than the one the engine was checked with. |
|
Package hostmem is the memory the Go host gives the C engine.
|
Package hostmem is the memory the Go host gives the C engine. |
|
Package idtable gives things small ids, which the C engine passes back to the host on every callback, and finds a thing by its id with two atomic reads and no lock: callbacks of VMs on many goroutines do not wait for each other, and do not write to memory they share.
|
Package idtable gives things small ids, which the C engine passes back to the host on every callback, and finds a thing by its id with two atomic reads and no lock: callbacks of VMs on many goroutines do not wait for each other, and do not write to memory they share. |
|
Package intlhook connects the Intl and Temporal shims.
|
Package intlhook connects the Intl and Temporal shims. |
|
Package measure holds what the subcommands of go tool measure share: running a command with its output kept and timed.
|
Package measure holds what the subcommands of go tool measure share: running a command with its output kept and timed. |
|
bench
Package bench builds the code-position variants of a program, times them in turn, and reads the result by the protocol of docs/internals/measuring.md.
|
Package bench builds the code-position variants of a program, times them in turn, and reads the result by the protocol of docs/internals/measuring.md. |
|
cmd/measure
command
Command measure times builds of the C engine against each other.
|
Command measure times builds of the C engine against each other. |
|
hwm
Package hwm reads the most memory the calling process held, from the process itself, for the programs that go tool measure times.
|
Package hwm reads the most memory the calling process held, from the process itself, for the programs that go tool measure times. |
|
Package rvgen makes small random JavaScript programs for testing the register loop of the engine (engine/regvm.h): against Node (rvgen node) and in the tests of the Go package.
|
Package rvgen makes small random JavaScript programs for testing the register loop of the engine (engine/regvm.h): against Node (rvgen node) and in the tests of the Go package. |
|
cmd/rvgen
command
Command rvgen makes random programs (package rvgen) and runs them through rvdiff, the runner of the native test host that compares each run with its golden (engine/test/regvm/rvdiff.c, built by engine/test/regvm/build.sh):
|
Command rvgen makes random programs (package rvgen) and runs them through rvdiff, the runner of the native test host that compares each run with its golden (engine/test/regvm/rvdiff.c, built by engine/test/regvm/build.sh): |
|
v1
Package v1 is rvgen frozen as it was when the goldens of the fuzz seeds were recorded from the old loop (engine/test/regvm/golden/seeds, see rvgen check): the same seed must make the same program for good, so this copy is never changed.
|
Package v1 is rvgen frozen as it was when the goldens of the fuzz seeds were recorded from the old loop (engine/test/regvm/golden/seeds, see rvgen check): the same seed must make the same program for good, so this copy is never changed. |
|
Package stopsweep is for the tests of the packages that give a VM functions written in Go (intl, temporal, fmt and url): it stops a long call at many eval timeouts, so that a part of the call that does not check the limits shows wherever it lies in the call, not only where one fixed timeout falls.
|
Package stopsweep is for the tests of the packages that give a VM functions written in Go (intl, temporal, fmt and url): it stops a long call at many eval timeouts, so that a part of the call that does not check the limits shows wherever it lies in the call, not only where one fixed timeout falls. |
|
Command stress renders tifa's pinned pages for a set time on pools of VMs kept as tifa's pool keeps them, with memory limits, eval timeouts, Interrupts and kills landing at random points of the renders, and checks that every VM stays correct and bounded: each render gives the page's HTML or the error its stop documents, a VM goes on after a stop that was not a kill, the memory of the engine, of the host and of Go and the goroutines stay bounded with no drift after the warm-up, and closing every VM gives all its memory back.
|
Command stress renders tifa's pinned pages for a set time on pools of VMs kept as tifa's pool keeps them, with memory limits, eval timeouts, Interrupts and kills landing at random points of the renders, and checks that every VM stays correct and bounded: each render gives the page's HTML or the error its stop documents, a VM goes on after a stop that was not a kill, the memory of the engine, of the host and of Go and the goroutines stay bounded with no drift after the warm-up, and closing every VM gives all its memory back. |
|
Package unsupported stops a build on a target the C engine does not run on: it runs on linux, darwin and windows, on amd64 and arm64, only.
|
Package unsupported stops a build on a target the C engine does not run on: it runs on linux, darwin and windows, on amd64 and arm64, only. |
|
Package vmhook lets the packages of this module that give a VM functions written in Go (intl, temporal, fmt and url) hold the work those functions do in Go to the limits of the VM: its eval timeout, Interrupt and its memory limit, which the engine's polls and allocator see only for the work done in the engine.
|
Package vmhook lets the packages of this module that give a VM functions written in Go (intl, temporal, fmt and url) hold the work those functions do in Go to the limits of the VM: its eval timeout, Interrupt and its memory limit, which the engine's polls and allocator see only for the work done in the engine. |
|
Package whatwgurl is the URL parser of the WHATWG URL standard (https://url.spec.whatwg.org/), with the setters of its API and the serializer, for package url.
|
Package whatwgurl is the URL parser of the WHATWG URL standard (https://url.spec.whatwg.org/), with the setters of its API and the serializer, for package url. |
|
bidi
Package bidi has the Bidi class of a rune and implements the Bidi Rule defined by RFC 5893.
|
Package bidi has the Bidi class of a rune and implements the Bidi Rule defined by RFC 5893. |
|
idna
Package idna is the part of golang.org/x/net/idna v0.62.0 (IDNA2008 with the compatibility processing of UTS #46) that the URL standard needs: one profile, "domain to ASCII", which has Unicode 17's tables and the algorithm of UTS #46 revision 35.
|
Package idna is the part of golang.org/x/net/idna v0.62.0 (IDNA2008 with the compatibility processing of UTS #46) that the URL standard needs: one profile, "domain to ASCII", which has Unicode 17's tables and the algorithm of UTS #46 revision 35. |
Click to show internal directories.
Click to hide internal directories.