mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-08 16:12:23 +02:00
This is a new Bytecode::Generator helper that takes an operand and returns the same operand, or a copy of it, in case a copy is required to preserve correct evaluation order. This can be used in a bunch of places where we're worried about clobbering some value after obtaining it. Practically, locals are always copied, and temporary registers as well as constants are returned as-is.
162 KiB
162 KiB