mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[WASM] mstore8 function implementation added.
This commit is contained in:
parent
9d9a7ebe25
commit
3760e90582
@ -577,8 +577,8 @@ function mstore_address(pos, a1, a2, a3, a4) {
|
|||||||
mstore_internal(pos, 0, a1, a2, a3)
|
mstore_internal(pos, 0, a1, a2, a3)
|
||||||
}
|
}
|
||||||
function mstore8(x1, x2, x3, x4, y1, y2, y3, y4) {
|
function mstore8(x1, x2, x3, x4, y1, y2, y3, y4) {
|
||||||
// TODO implement
|
let v := u256_to_byte(y1, y2, y3, y4)
|
||||||
unreachable()
|
i64.store8(to_internal_i32ptr(x1, x2, x3, x4), v)
|
||||||
}
|
}
|
||||||
// Needed?
|
// Needed?
|
||||||
function msize() -> z1, z2, z3, z4 {
|
function msize() -> z1, z2, z3, z4 {
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
{
|
{
|
||||||
mstore(0x30, not(0))
|
mstore(0x30, not(0))
|
||||||
mstore8(0x20, 0xaa)
|
mstore8(0x20, 0xaa)
|
||||||
mstore8(0x25, 0xbbbb)
|
|
||||||
mstore8(0x26, 0xcc)
|
mstore8(0x26, 0xcc)
|
||||||
mstore8(0x3b, 0x11)
|
mstore8(0x3b, 0x11)
|
||||||
sstore(0, mload(0x20))
|
sstore(0, mload(0x20))
|
||||||
}
|
}
|
||||||
// ----
|
// ----
|
||||||
// Trace:
|
// Trace:
|
||||||
// INVALID()
|
|
||||||
// Memory dump:
|
// Memory dump:
|
||||||
// 60: 00000000000000000000000000000000ffffffffffffffffffffffffffffffff
|
// 20: aa0000000000cc000000000000000000ffffffffffffffffffffff11ffffffff
|
||||||
|
// 60: aa0000000000cc000000000000000000ffffffffffffffffffffff11ffffffff
|
||||||
// 80: ffffffffffffffffffffffffffffffff00000000000000000000000000000000
|
// 80: ffffffffffffffffffffffffffffffff00000000000000000000000000000000
|
||||||
// Storage dump:
|
// Storage dump:
|
||||||
|
// 0000000000000000000000000000000000000000000000000000000000000000: aa0000000000cc000000000000000000ffffffffffffffffffffff11ffffffff
|
||||||
|
Loading…
Reference in New Issue
Block a user