[pallet-revive] change some getter APIs to return value in register (#6920)
Call data, return data and code sizes can never exceed `u32::MAX`; they are also not generic. Hence we know that they are guaranteed to always fit into a 64bit register and `revive` can just zero extend them into a 256bit integer value. Which is slightly more efficient than passing them on the stack. --------- Signed-off-by:Cyrill Leutwiler <bigcyrill@hotmail.com> Signed-off-by:
xermicus <cyrill@parity.io> Co-authored-by: command-bot <> Co-authored-by:
Alexander Theißen <alex.theissen@me.com>
parent
fd0fb765
Pipeline
#510020
waiting for manual action
with stages
in
1 hour, 7 minutes, and 4 seconds
Stage:
Stage:
Stage:
Stage:
Stage:
Showing
- prdoc/pr_6920.prdoc 14 additions, 0 deletionsprdoc/pr_6920.prdoc
- substrate/frame/revive/fixtures/contracts/call_data_size.rs 1 addition, 4 deletionssubstrate/frame/revive/fixtures/contracts/call_data_size.rs
- substrate/frame/revive/fixtures/contracts/common/src/lib.rs 1 addition, 1 deletionsubstrate/frame/revive/fixtures/contracts/common/src/lib.rs
- substrate/frame/revive/fixtures/contracts/extcodesize.rs 2 additions, 2 deletionssubstrate/frame/revive/fixtures/contracts/extcodesize.rs
- substrate/frame/revive/fixtures/contracts/return_data_api.rs 1 addition, 3 deletionssubstrate/frame/revive/fixtures/contracts/return_data_api.rs
- substrate/frame/revive/rpc/examples/js/pvm/ErrorTester.polkavm 0 additions, 0 deletions...rate/frame/revive/rpc/examples/js/pvm/ErrorTester.polkavm
- substrate/frame/revive/rpc/examples/js/pvm/EventExample.polkavm 0 additions, 0 deletions...ate/frame/revive/rpc/examples/js/pvm/EventExample.polkavm
- substrate/frame/revive/rpc/examples/js/pvm/Flipper.polkavm 0 additions, 0 deletionssubstrate/frame/revive/rpc/examples/js/pvm/Flipper.polkavm
- substrate/frame/revive/rpc/examples/js/pvm/FlipperCaller.polkavm 0 additions, 0 deletions...te/frame/revive/rpc/examples/js/pvm/FlipperCaller.polkavm
- substrate/frame/revive/rpc/examples/js/pvm/PiggyBank.polkavm 0 additions, 0 deletionssubstrate/frame/revive/rpc/examples/js/pvm/PiggyBank.polkavm
- substrate/frame/revive/src/benchmarking/mod.rs 22 additions, 11 deletionssubstrate/frame/revive/src/benchmarking/mod.rs
- substrate/frame/revive/src/exec.rs 2 additions, 2 deletionssubstrate/frame/revive/src/exec.rs
- substrate/frame/revive/src/tests.rs 2 additions, 2 deletionssubstrate/frame/revive/src/tests.rs
- substrate/frame/revive/src/wasm/mod.rs 1 addition, 1 deletionsubstrate/frame/revive/src/wasm/mod.rs
- substrate/frame/revive/src/wasm/runtime.rs 20 additions, 26 deletionssubstrate/frame/revive/src/wasm/runtime.rs
- substrate/frame/revive/src/weights.rs 424 additions, 413 deletionssubstrate/frame/revive/src/weights.rs
- substrate/frame/revive/uapi/src/host.rs 6 additions, 15 deletionssubstrate/frame/revive/uapi/src/host.rs
- substrate/frame/revive/uapi/src/host/riscv64.rs 12 additions, 8 deletionssubstrate/frame/revive/uapi/src/host/riscv64.rs
Please register or sign in to comment