Merge pull request #965 from mir-protocol/fix_run_constructor

Fix `run_constructor`
This commit is contained in:
Daniel Lubarov 2023-04-08 08:41:23 -07:00 committed by GitHub
commit 042c004237
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,13 +87,12 @@ global create_common:
run_constructor:
// stack: new_ctx, value, address, kexit_info
%set_new_ctx_value
SWAP1 %set_new_ctx_value
// stack: new_ctx, address, kexit_info
// Each line in the block below does not change the stack.
DUP2 %set_new_ctx_addr
%address %set_new_ctx_caller
%set_new_ctx_parent_ctx
%set_new_ctx_parent_pc(after_constructor)
// stack: new_ctx, address, kexit_info