Implement CODESIZE

Signed-off-by: xermicus <cyrill@parity.io>
This commit is contained in:
xermicus
2024-06-06 15:10:21 +02:00
parent 39d78179d4
commit 10c7045e15
10 changed files with 73 additions and 24 deletions
@@ -591,7 +591,7 @@ impl FunctionCall {
revive_llvm_context::polkavm_evm_calldata::size(context).map(Some)
}
revive_llvm_context::PolkaVMCodeType::Runtime => {
todo!()
revive_llvm_context::polkavm_evm_ext_code::size(context, None).map(Some)
}
}
}
@@ -632,7 +632,7 @@ impl FunctionCall {
let arguments = self.pop_arguments_llvm::<D, 1>(context)?;
revive_llvm_context::polkavm_evm_ext_code::size(
context,
arguments[0].into_int_value(),
Some(arguments[0].into_int_value()),
)
.map(Some)
}