mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-05 23:33:07 +00:00
Perform jumpdest analysis whenever entering a new context (#1049)
This commit is contained in:
parent
971bfba64a
commit
d57b62fff3
@ -323,6 +323,13 @@ call_insufficient_balance:
|
||||
DUP1 // new_ctx
|
||||
SET_CONTEXT
|
||||
%checkpoint // Checkpoint
|
||||
// Perform jumpdest analyis
|
||||
PUSH %%after
|
||||
%mload_context_metadata(@CTX_METADATA_CODE_SIZE)
|
||||
GET_CONTEXT
|
||||
// stack: ctx, code_size, retdest
|
||||
%jump(jumpdest_analysis)
|
||||
%%after:
|
||||
PUSH 0 // jump dest
|
||||
EXIT_KERNEL
|
||||
// (Old context) stack: new_ctx
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user