Browse Source

Fix: 4 typos (#8291)

Signed-off-by: RoboSchmied <github@roboschmie.de>
pull/8294/head
RoboSchmied 7 months ago
committed by GitHub
parent
commit
5036bb0b0e
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      winch/codegen/src/isa/mod.rs
  2. 6
      winch/codegen/src/masm.rs

2
winch/codegen/src/isa/mod.rs

@ -181,7 +181,7 @@ pub trait TargetIsa: Send + Sync {
} }
} }
/// Get the endianess of the underlying target triple. /// Get the endianness of the underlying target triple.
fn endianness(&self) -> target_lexicon::Endianness { fn endianness(&self) -> target_lexicon::Endianness {
self.triple().endianness().unwrap() self.triple().endianness().unwrap()
} }

6
winch/codegen/src/masm.rs

@ -436,7 +436,7 @@ pub const TRUSTED_FLAGS: MemFlags = MemFlags::trusted();
/// Flags used for WebAssembly loads / stores. /// Flags used for WebAssembly loads / stores.
/// Untrusted by default so we don't set `no_trap`. /// Untrusted by default so we don't set `no_trap`.
/// We also ensure that the endianess is the right one for WebAssembly. /// We also ensure that the endianness is the right one for WebAssembly.
pub const UNTRUSTED_FLAGS: MemFlags = MemFlags::new().with_endianness(Endianness::Little); pub const UNTRUSTED_FLAGS: MemFlags = MemFlags::new().with_endianness(Endianness::Little);
/// Generic MacroAssembler interface used by the code generation. /// Generic MacroAssembler interface used by the code generation.
@ -554,7 +554,7 @@ pub(crate) trait MacroAssembler {
/// [Self::store], more precisely, it can implicitly trap, in certain /// [Self::store], more precisely, it can implicitly trap, in certain
/// circumstances, even if explicit bounds checks are elided, in that sense, /// circumstances, even if explicit bounds checks are elided, in that sense,
/// we consider this type of load as untrusted. It can also differ with /// we consider this type of load as untrusted. It can also differ with
/// regards to the endianess depending on the target ISA. For this reason, /// regards to the endianness depending on the target ISA. For this reason,
/// [Self::wasm_store], should be explicitly used when emitting WebAssembly /// [Self::wasm_store], should be explicitly used when emitting WebAssembly
/// stores. /// stores.
fn wasm_store(&mut self, src: Reg, dst: Self::Address, size: OperandSize); fn wasm_store(&mut self, src: Reg, dst: Self::Address, size: OperandSize);
@ -567,7 +567,7 @@ pub(crate) trait MacroAssembler {
/// [Self::load], more precisely, it can implicitly trap, in certain /// [Self::load], more precisely, it can implicitly trap, in certain
/// circumstances, even if explicit bounds checks are elided, in that sense, /// circumstances, even if explicit bounds checks are elided, in that sense,
/// we consider this type of load as untrusted. It can also differ with /// we consider this type of load as untrusted. It can also differ with
/// regards to the endianess depending on the target ISA. For this reason, /// regards to the endianness depending on the target ISA. For this reason,
/// [Self::wasm_load], should be explicitly used when emitting WebAssembly /// [Self::wasm_load], should be explicitly used when emitting WebAssembly
/// loads. /// loads.
fn wasm_load( fn wasm_load(

Loading…
Cancel
Save