Fix typos caused by find-and-replace
This commit is contained in:
committed by
Dan Gohman
parent
5c320a0d30
commit
3686fc2fc7
@@ -9,7 +9,7 @@ use translation_utils::{FunctionIndex, Global, GlobalIndex, Memory, MemoryIndex,
|
||||
Table, TableIndex};
|
||||
use wasmparser::BinaryReaderError;
|
||||
|
||||
/// The value of a WebAssembly global valueiable.
|
||||
/// The value of a WebAssembly global value.
|
||||
#[derive(Clone, Copy)]
|
||||
pub enum GlobalValue {
|
||||
/// This is a constant global with a value known at compile time.
|
||||
@@ -17,9 +17,9 @@ pub enum GlobalValue {
|
||||
|
||||
/// This is a variable in memory that should be referenced as a `GlobalValue`.
|
||||
Memory {
|
||||
/// Which global valueiable should be referenced.
|
||||
/// Which global value should be referenced.
|
||||
gv: ir::GlobalValue,
|
||||
/// The global valueiable's type.
|
||||
/// The global value's type.
|
||||
ty: ir::Type,
|
||||
},
|
||||
}
|
||||
@@ -88,12 +88,12 @@ pub trait FuncEnvironment {
|
||||
ir::Type::int(u16::from(self.triple().pointer_width().unwrap().bits())).unwrap()
|
||||
}
|
||||
|
||||
/// Set up the necessary preamble definitions in `func` to access the global valueiable
|
||||
/// Set up the necessary preamble definitions in `func` to access the global value
|
||||
/// identified by `index`.
|
||||
///
|
||||
/// The index space covers both imported globals and globals defined by the module.
|
||||
///
|
||||
/// Return the global valueiable reference that should be used to access the global and the
|
||||
/// Return the global value reference that should be used to access the global and the
|
||||
/// WebAssembly type of the global.
|
||||
fn make_global(&mut self, func: &mut ir::Function, index: GlobalIndex) -> GlobalValue;
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! The code of theses helper function is straightforward since it is only about reading metadata
|
||||
//! about linear memories, tables, globals, etc. and storing them for later use.
|
||||
//!
|
||||
//! The special case of the initialize expressions for table elements offsets or global valueiables
|
||||
//! The special case of the initialize expressions for table elements offsets or global values
|
||||
//! is handled, according to the semantics of WebAssembly, to only specific expressions that are
|
||||
//! interpreted on the fly.
|
||||
use cretonne_codegen::ir::{self, AbiParam, Signature};
|
||||
|
||||
@@ -134,7 +134,7 @@ pub struct TranslationState {
|
||||
pub control_stack: Vec<ControlStackFrame>,
|
||||
pub reachable: bool,
|
||||
|
||||
// Map of global valueiables that have already been created by `FuncEnvironment::make_global`.
|
||||
// Map of global values that have already been created by `FuncEnvironment::make_global`.
|
||||
globals: HashMap<GlobalIndex, GlobalValue>,
|
||||
|
||||
// Map of heaps that have been created by `FuncEnvironment::make_heap`.
|
||||
@@ -272,7 +272,7 @@ impl TranslationState {
|
||||
|
||||
/// Methods for handling entity references.
|
||||
impl TranslationState {
|
||||
/// Get the `GlobalValue` reference that should be used to access the global valueiable `index`.
|
||||
/// Get the `GlobalValue` reference that should be used to access the global value `index`.
|
||||
/// Create the reference if necessary.
|
||||
/// Also return the WebAssembly type of the global.
|
||||
pub fn get_global<FE: FuncEnvironment + ?Sized>(
|
||||
|
||||
@@ -7,7 +7,7 @@ use wasmparser;
|
||||
pub type FunctionIndex = usize;
|
||||
/// Index of a table (imported or defined) inside the WebAssembly module.
|
||||
pub type TableIndex = usize;
|
||||
/// Index of a global valueiable (imported or defined) inside the WebAssembly module.
|
||||
/// Index of a global value (imported or defined) inside the WebAssembly module.
|
||||
pub type GlobalIndex = usize;
|
||||
/// Index of a linear memory (imported or defined) inside the WebAssembly module.
|
||||
pub type MemoryIndex = usize;
|
||||
|
||||
Reference in New Issue
Block a user