public PcodeOp[] copyCode() {
		return code.toArray(PcodeOp[]::new);
	}
Copy the frame's code (shallow copy) into a new array

@return the array of ops
Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/PcodeFrame.java