Inline always instruction dispatch function.
This commit is contained in:
parent
03f378a000
commit
59ddf11432
|
@ -173,6 +173,7 @@ impl<'a, E: Externals> Interpreter<'a, E> {
|
||||||
Ok(RunResult::Return)
|
Ok(RunResult::Return)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline(always)]
|
||||||
fn run_instruction(&mut self, context: &mut FunctionContext, instruction: &isa::Instruction) -> Result<InstructionOutcome, TrapKind> {
|
fn run_instruction(&mut self, context: &mut FunctionContext, instruction: &isa::Instruction) -> Result<InstructionOutcome, TrapKind> {
|
||||||
match instruction {
|
match instruction {
|
||||||
&isa::Instruction::Unreachable => self.run_unreachable(context),
|
&isa::Instruction::Unreachable => self.run_unreachable(context),
|
||||||
|
|
Loading…
Reference in New Issue