Fix typos caused by find-and-replace
This commit is contained in:
committed by
Dan Gohman
parent
5c320a0d30
commit
3686fc2fc7
@@ -554,7 +554,7 @@ stack overflow checks in the prologue.
|
||||
the stack pointer has reached or exceeded the limit, generate a trap with a
|
||||
``stk_ovf`` code.
|
||||
|
||||
The global valueiable must be accessible and naturally aligned for a
|
||||
The global value must be accessible and naturally aligned for a
|
||||
pointer-sized value.
|
||||
|
||||
Setting `stack_limit` is an alternative way to detect stack overflow, when using
|
||||
@@ -563,12 +563,12 @@ stack overflow checks in the prologue.
|
||||
Global variables
|
||||
----------------
|
||||
|
||||
A *global valueiable* is an :term:`accessible` object in memory whose address is
|
||||
A *global value* is an :term:`accessible` object in memory whose address is
|
||||
not known at compile time. The address is computed at runtime by
|
||||
:inst:`global_value`, possibly using information provided by the linker via
|
||||
relocations. There are multiple kinds of global valueiables using different
|
||||
relocations. There are multiple kinds of global values using different
|
||||
methods for determining their address. Cretonne does not track the type or even
|
||||
the size of global valueiables, they are just pointers to non-stack memory.
|
||||
the size of global values, they are just pointers to non-stack memory.
|
||||
|
||||
When Cretonne is generating code for a virtual machine environment, globals can
|
||||
be used to access data structures in the VM's runtime. This requires functions
|
||||
@@ -578,26 +578,26 @@ Cretonne functions.
|
||||
|
||||
.. inst:: GV = vmctx+Offset
|
||||
|
||||
Declare a global valueiable in the VM context struct.
|
||||
Declare a global value in the VM context struct.
|
||||
|
||||
This declares a global valueiable whose address is a constant offset from the
|
||||
This declares a global value whose address is a constant offset from the
|
||||
VM context pointer which is passed as a hidden argument to all functions
|
||||
JIT-compiled for the VM.
|
||||
|
||||
Typically, the VM context is a C struct, and the declared global valueiable
|
||||
Typically, the VM context is a C struct, and the declared global value
|
||||
is a member of the struct.
|
||||
|
||||
:arg Offset: Byte offset from the VM context pointer to the global
|
||||
variable.
|
||||
:result GV: Global variable.
|
||||
|
||||
The address of a global valueiable can also be derived by treating another global
|
||||
The address of a global value can also be derived by treating another global
|
||||
variable as a struct pointer. This makes it possible to chase pointers into VM
|
||||
runtime data structures.
|
||||
|
||||
.. inst:: GV = deref(BaseGV)+Offset
|
||||
|
||||
Declare a global valueiable in a struct pointed to by BaseGV.
|
||||
Declare a global value in a struct pointed to by BaseGV.
|
||||
|
||||
The address of GV can be computed by first loading a pointer from BaseGV
|
||||
and adding Offset to it.
|
||||
@@ -605,7 +605,7 @@ runtime data structures.
|
||||
It is assumed the BaseGV resides in readable memory with the appropriate
|
||||
alignment for storing a pointer.
|
||||
|
||||
Chains of ``deref`` global valueiables are possible, but cycles are not
|
||||
Chains of ``deref`` global values are possible, but cycles are not
|
||||
allowed. They will be caught by the IR verifier.
|
||||
|
||||
:arg BaseGV: Global variable containing the base pointer.
|
||||
@@ -615,7 +615,7 @@ runtime data structures.
|
||||
|
||||
.. inst:: GV = [colocated] globalsym name
|
||||
|
||||
Declare a global valueiable at a symbolic address.
|
||||
Declare a global value at a symbolic address.
|
||||
|
||||
The address of GV is symbolic and will be assigned a relocation, so that
|
||||
it can be resolved by a later linking phase.
|
||||
@@ -701,7 +701,7 @@ trap when accessed.
|
||||
address space reserved for the heap, not including the guard pages.
|
||||
:arg GuardBytes: Size of the guard pages in bytes.
|
||||
|
||||
When the base is a global valueiable, it must be :term:`accessible` and naturally
|
||||
When the base is a global value, it must be :term:`accessible` and naturally
|
||||
aligned for a pointer value.
|
||||
|
||||
The ``reserved_reg`` option is not yet implemented.
|
||||
@@ -711,7 +711,7 @@ Dynamic heaps
|
||||
|
||||
A *dynamic heap* can be relocated to a different base address when it is
|
||||
resized, and its bound can move dynamically. The guard pages move when the heap
|
||||
is resized. The bound of a dynamic heap is stored in a global valueiable.
|
||||
is resized. The bound of a dynamic heap is stored in a global value.
|
||||
|
||||
.. inst:: H = dynamic Base, min MinBytes, bound BoundGV, guard GuardBytes
|
||||
|
||||
@@ -724,7 +724,7 @@ is resized. The bound of a dynamic heap is stored in a global valueiable.
|
||||
:arg BoundGV: Global variable containing the current heap bound in bytes.
|
||||
:arg GuardBytes: Size of the guard pages in bytes.
|
||||
|
||||
When the base is a global valueiable, it must be :term:`accessible` and naturally
|
||||
When the base is a global value, it must be :term:`accessible` and naturally
|
||||
aligned for a pointer value.
|
||||
|
||||
The ``reserved_reg`` option is not yet implemented.
|
||||
|
||||
Reference in New Issue
Block a user