Skip to content

Commit

Permalink
replace some inline(always) with inline
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbepop committed Mar 4, 2023
1 parent 66bb570 commit 482abc1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions crates/wasmi/src/engine/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ impl<'ctx, 'engine> Executor<'ctx, 'engine> {
/// - `{i32, i64}.load16_u`
/// - `i64.load32_s`
/// - `i64.load32_u`
#[inline(always)]
#[inline]
fn execute_load_extend(
&mut self,
offset: Offset,
Expand All @@ -482,7 +482,7 @@ impl<'ctx, 'engine> Executor<'ctx, 'engine> {
/// - `{i32, i64}.store8`
/// - `{i32, i64}.store16`
/// - `i64.store32`
#[inline(always)]
#[inline]
fn execute_store_wrap(
&mut self,
offset: Offset,
Expand All @@ -495,14 +495,14 @@ impl<'ctx, 'engine> Executor<'ctx, 'engine> {
}

/// Executes an infallible unary `wasmi` instruction.
#[inline(always)]
#[inline]
fn execute_unary(&mut self, f: fn(UntypedValue) -> UntypedValue) {
self.sp.eval_top(f);
self.next_instr()
}

/// Executes a fallible unary `wasmi` instruction.
#[inline(always)]
#[inline]
fn try_execute_unary(
&mut self,
f: fn(UntypedValue) -> Result<UntypedValue, TrapCode>,
Expand All @@ -512,14 +512,14 @@ impl<'ctx, 'engine> Executor<'ctx, 'engine> {
}

/// Executes an infallible binary `wasmi` instruction.
#[inline(always)]
#[inline]
fn execute_binary(&mut self, f: fn(UntypedValue, UntypedValue) -> UntypedValue) {
self.sp.eval_top2(f);
self.next_instr()
}

/// Executes a fallible binary `wasmi` instruction.
#[inline(always)]
#[inline]
fn try_execute_binary(
&mut self,
f: fn(UntypedValue, UntypedValue) -> Result<UntypedValue, TrapCode>,
Expand Down

0 comments on commit 482abc1

Please sign in to comment.