Skip to content

Commit

Permalink
Add comment on emit_nop_n.
Browse files Browse the repository at this point in the history
  • Loading branch information
losfair committed Jun 2, 2020
1 parent 5d94837 commit 0878147
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/compiler-singlepass/src/emitter_x64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ pub trait Emitter {
fn emit_label(&mut self, label: Self::Label);

fn emit_nop(&mut self);

/// A high-level assembler method. Emits an instruction sequence of length `n` that is functionally
/// equivalent to a `nop` instruction, without guarantee about the underlying implementation.
fn emit_nop_n(&mut self, n: usize);

fn emit_mov(&mut self, sz: Size, src: Location, dst: Location);
Expand Down

0 comments on commit 0878147

Please sign in to comment.