Inline always instruction dispatch function.

This commit is contained in:
Sergey Pepyakin 2018-06-14 18:49:28 +03:00
parent bdbf10ba74
commit a16e757288
1 changed files with 1 additions and 0 deletions

View File

@ -173,6 +173,7 @@ impl<'a, E: Externals> Interpreter<'a, E> {
Ok(RunResult::Return)
}
#[inline(always)]
fn run_instruction(&mut self, context: &mut FunctionContext, instruction: &isa::Instruction) -> Result<InstructionOutcome, TrapKind> {
match instruction {
&isa::Instruction::Unreachable => self.run_unreachable(context),