Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
perf: mark halt as cold
This function massively bloats all callsites because it can drop
the previous action.
  • Loading branch information
DaniPopes committed Jul 22, 2025
commit 865b66a4d7142bf8be96c2df7f365439915d00b1
2 changes: 2 additions & 0 deletions crates/interpreter/src/interpreter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ impl<IW: InterpreterTypes> Interpreter<IW> {
/// Halt the interpreter with the given result.
///
/// This will set the action to [`InterpreterAction::Return`] and set the gas to the current gas.
#[cold]
#[inline(never)]
pub fn halt(&mut self, result: InstructionResult) {
self.bytecode
.set_action(InterpreterAction::new_halt(result, self.gas));
Expand Down
Loading