diff --git a/crates/common/src/polkavm/address.rs b/crates/common/src/polkavm/address.rs index 2e500df..8c5e668 100644 --- a/crates/common/src/polkavm/address.rs +++ b/crates/common/src/polkavm/address.rs @@ -75,9 +75,6 @@ pub const POLKAVM_ADDRESS_ACTIVE_PTR_PACK: u16 = 0xFFE7; /// The corresponding simulation predefined address. pub const POLKAVM_ADDRESS_MULTIPLICATION_HIGH_REGISTER: u16 = 0xFFE6; -/// The corresponding simulation predefined address. -pub const POLKAVM_ADDRESS_GET_GLOBAL_EXTRA_ABI_DATA: u16 = 0xFFE5; - /// The corresponding simulation predefined address. pub const POLKAVM_ADDRESS_ACTIVE_PTR_DATA_LOAD: u16 = 0xFFE4; diff --git a/crates/llvm-context/src/polkavm/const/mod.rs b/crates/llvm-context/src/polkavm/const/mod.rs index 9cc454f..ab8b9ca 100644 --- a/crates/llvm-context/src/polkavm/const/mod.rs +++ b/crates/llvm-context/src/polkavm/const/mod.rs @@ -30,9 +30,6 @@ pub static GLOBAL_RETURN_DATA_SIZE: &str = "returndatasize"; /// The call flags global variable name. pub static GLOBAL_CALL_FLAGS: &str = "call_flags"; -/// The extra ABI data global variable name. -pub static GLOBAL_EXTRA_ABI_DATA: &str = "extra_abi_data"; - /// The constant array global variable name prefix. pub static GLOBAL_CONST_ARRAY_PREFIX: &str = "const_array_"; @@ -55,9 +52,6 @@ pub const HEAP_AUX_OFFSET_EXTERNAL_CALL: u64 = 0; pub const HEAP_AUX_OFFSET_CONSTRUCTOR_RETURN_DATA: u64 = 8 * (revive_common::BYTE_LENGTH_WORD as u64); -/// The number of the extra ABI data arguments. -pub const EXTRA_ABI_DATA_SIZE: usize = 0; - /// The `create` method deployer signature. pub static DEPLOYER_SIGNATURE_CREATE: &str = "create(bytes32,bytes32,bytes)"; diff --git a/crates/llvm-context/src/polkavm/context/function/runtime/entry.rs b/crates/llvm-context/src/polkavm/context/function/runtime/entry.rs index 28ef499..6454f67 100644 --- a/crates/llvm-context/src/polkavm/context/function/runtime/entry.rs +++ b/crates/llvm-context/src/polkavm/context/function/runtime/entry.rs @@ -84,17 +84,6 @@ impl Entry { context.word_const(0), ); - let extra_abi_data_type = context.array_type( - context.word_type().as_basic_type_enum(), - crate::polkavm::EXTRA_ABI_DATA_SIZE, - ); - context.set_global( - crate::polkavm::GLOBAL_EXTRA_ABI_DATA, - extra_abi_data_type, - AddressSpace::Stack, - extra_abi_data_type.const_zero(), - ); - context.set_global( crate::polkavm::GLOBAL_I256_SIZE, context.xlen_type(),