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
@@ -857,7 +857,7 @@ where
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)
}
}
}
@@ -930,7 +930,7 @@ where
let arguments = self.pop_arguments_llvm(context);
revive_llvm_context::polkavm_evm_ext_code::size(
context,
arguments[0].into_int_value(),
Some(arguments[0].into_int_value()),
)
.map(Some)
}