mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #8863 from ethereum/nonReversedEncoder
Introduce non-reversed version of tupleEncoder.
This commit is contained in:
@@ -38,7 +38,7 @@ object \"C_10\" {
|
||||
abi_decode_tuple_(4, calldatasize())
|
||||
let ret_0 := fun_f_9()
|
||||
let memPos := allocateMemory(0)
|
||||
let memEnd := abi_encode_tuple_t_string_memory_ptr__to_t_string_memory_ptr__fromStack(memPos , ret_0)
|
||||
let memEnd := abi_encode_tuple_t_string_memory_ptr__to_t_string_memory_ptr__fromStack(memPos , ret_0)
|
||||
return(memPos, sub(memEnd, memPos))
|
||||
}
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ object \"C_10\" {
|
||||
abi_decode_tuple_(4, calldatasize())
|
||||
let ret_0 := fun_f_9()
|
||||
let memPos := allocateMemory(0)
|
||||
let memEnd := abi_encode_tuple_t_bytes32__to_t_bytes32__fromStack(memPos , ret_0)
|
||||
let memEnd := abi_encode_tuple_t_bytes32__to_t_bytes32__fromStack(memPos , ret_0)
|
||||
return(memPos, sub(memEnd, memPos))
|
||||
}
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ object \"C_10\" {
|
||||
abi_decode_tuple_(4, calldatasize())
|
||||
let ret_0 := fun_f_9()
|
||||
let memPos := allocateMemory(0)
|
||||
let memEnd := abi_encode_tuple_t_bytes4__to_t_bytes4__fromStack(memPos , ret_0)
|
||||
let memEnd := abi_encode_tuple_t_bytes4__to_t_bytes4__fromStack(memPos , ret_0)
|
||||
return(memPos, sub(memEnd, memPos))
|
||||
}
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ object \"C_10\" {
|
||||
abi_decode_tuple_(4, calldatasize())
|
||||
let ret_0 := fun_f_9()
|
||||
let memPos := allocateMemory(0)
|
||||
let memEnd := abi_encode_tuple_t_string_memory_ptr__to_t_string_memory_ptr__fromStack(memPos , ret_0)
|
||||
let memEnd := abi_encode_tuple_t_string_memory_ptr__to_t_string_memory_ptr__fromStack(memPos , ret_0)
|
||||
return(memPos, sub(memEnd, memPos))
|
||||
}
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ object \"C_10\" {
|
||||
abi_decode_tuple_(4, calldatasize())
|
||||
let ret_0 := fun_f_9()
|
||||
let memPos := allocateMemory(0)
|
||||
let memEnd := abi_encode_tuple_t_bytes4__to_t_bytes4__fromStack(memPos , ret_0)
|
||||
let memEnd := abi_encode_tuple_t_bytes4__to_t_bytes4__fromStack(memPos , ret_0)
|
||||
return(memPos, sub(memEnd, memPos))
|
||||
}
|
||||
|
||||
|
||||
+2
@@ -7,6 +7,8 @@ contract C {
|
||||
return this.f(x);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// g(uint256[][2][]): 0x20, 0x01, 0x20, 0x40, 0x60, 0x00, 0x00 -> 42
|
||||
// g(uint256[][2][]): 0x20, 0x01, 0x20, 0x00, 0x00 -> 42
|
||||
|
||||
@@ -16,6 +16,8 @@ contract C {
|
||||
}
|
||||
}
|
||||
|
||||
// ====
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// f(uint256): 7 -> 8
|
||||
// f2(uint256): 7 -> 8
|
||||
|
||||
Reference in New Issue
Block a user