typo fixes
This commit is contained in:
parent
8ca6b4b860
commit
22a8d7b289
|
@ -26,7 +26,7 @@ impl ::std::ops::Deref for FuncRef {
|
||||||
|
|
||||||
/// Runtime representation of a function.
|
/// Runtime representation of a function.
|
||||||
///
|
///
|
||||||
/// Functions are the unit of orgianization of code in WebAssembly. Each function takes a sequence of values
|
/// Functions are the unit of organization of code in WebAssembly. Each function takes a sequence of values
|
||||||
/// as parameters and either optionally return a value or trap.
|
/// as parameters and either optionally return a value or trap.
|
||||||
/// Functions can call other function including itself (i.e recursive calls are allowed) and imported functions
|
/// Functions can call other function including itself (i.e recursive calls are allowed) and imported functions
|
||||||
/// (i.e functions defined in another module or by the host environment).
|
/// (i.e functions defined in another module or by the host environment).
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
//! # Locals
|
//! # Locals
|
||||||
//!
|
//!
|
||||||
//! In a plain stack machine local variables and arguments live on the stack. Instead of
|
//! In a plain stack machine local variables and arguments live on the stack. Instead of
|
||||||
//! accessing predifined locals slots in a plain stack machine locals are addressed relative
|
//! accessing predefined locals slots in a plain stack machine locals are addressed relative
|
||||||
//! to the current stack pointer. Because of this instead of taking an index of a local
|
//! to the current stack pointer. Because of this instead of taking an index of a local
|
||||||
//! in {get,set,tee}_local operations, they take a relative depth as immediate. This works
|
//! in {get,set,tee}_local operations, they take a relative depth as immediate. This works
|
||||||
//! because at each instruction we always know the current stack height.
|
//! because at each instruction we always know the current stack height.
|
||||||
|
@ -59,7 +59,7 @@
|
||||||
//! # Differences from Wasm
|
//! # Differences from Wasm
|
||||||
//!
|
//!
|
||||||
//! - There is no `nop` instruction.
|
//! - There is no `nop` instruction.
|
||||||
//! - All control flow strucutres are flattened to plain gotos.
|
//! - All control flow structures are flattened to plain gotos.
|
||||||
//! - Implicit returns via reaching function scope `End` are replaced with an explicit `return` instruction.
|
//! - Implicit returns via reaching function scope `End` are replaced with an explicit `return` instruction.
|
||||||
//! - Locals live on the value stack now.
|
//! - Locals live on the value stack now.
|
||||||
//! - Load/store instructions doesn't take `align` parameter.
|
//! - Load/store instructions doesn't take `align` parameter.
|
||||||
|
|
Loading…
Reference in New Issue