Skip to content
Unverified Commit 64c25fed authored by mmc28a's avatar mmc28a Committed by GitHub
Browse files

Small optimisation for Assembler::Emit (#71)

Inside Emit(), the compiler can't be sure that the pc_ field of the Assembler
object doesn't point to itself, so it must be reloaded from the object after the
call to memcpy, in order to advance pc_.

Emit() is used by all Assembler methods, so optimise it a little by making a
local copy of the field.
parent b5c57c94
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment