Skip to content

Commit 691f5e9

Browse files
committed
bytecode: Add datacopy support
1 parent 890aa23 commit 691f5e9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/utils/bytecode.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,11 @@ inline bytecode returndatacopy(bytecode dst, bytecode src, bytecode size)
433433
return std::move(size) + std::move(src) + std::move(dst) + OP_RETURNDATACOPY;
434434
}
435435

436+
inline bytecode datacopy(bytecode dst, bytecode src, bytecode size)
437+
{
438+
return std::move(size) + std::move(src) + std::move(dst) + OP_DATACOPY;
439+
}
440+
436441
inline bytecode sstore(bytecode index, bytecode value)
437442
{
438443
return value + index + OP_SSTORE;

0 commit comments

Comments
 (0)