Increment call depth in precompiles (#1087)

This commit is contained in:
wborgeaud 2023-06-08 12:08:28 +02:00 committed by GitHub
parent 56e7ad0037
commit d37c545591
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 9 additions and 0 deletions

View File

@ -7,6 +7,7 @@ global precompile_blake2_f:
DUP1
SET_CONTEXT
%checkpoint // Checkpoint
%increment_call_depth
// stack: (empty)
PUSH 0x100000000 // = 2^32 (is_kernel = true)
// stack: kexit_info

View File

@ -7,6 +7,7 @@ global precompile_bn_add:
DUP1
SET_CONTEXT
%checkpoint // Checkpoint
%increment_call_depth
// stack: (empty)
PUSH 0x100000000 // = 2^32 (is_kernel = true)
// stack: kexit_info

View File

@ -7,6 +7,7 @@ global precompile_bn_mul:
DUP1
SET_CONTEXT
%checkpoint // Checkpoint
%increment_call_depth
// stack: (empty)
PUSH 0x100000000 // = 2^32 (is_kernel = true)
// stack: kexit_info

View File

@ -7,6 +7,7 @@ global precompile_ecrec:
DUP1
SET_CONTEXT
%checkpoint // Checkpoint
%increment_call_depth
// stack: (empty)
PUSH 0x100000000 // = 2^32 (is_kernel = true)
// stack: kexit_info

View File

@ -159,6 +159,7 @@ global precompile_expmod:
DUP1
SET_CONTEXT
%checkpoint // Checkpoint
%increment_call_depth
// stack: (empty)
PUSH 0x100000000 // = 2^32 (is_kernel = true)
// stack: kexit_info

View File

@ -7,6 +7,7 @@ global precompile_id:
DUP1
SET_CONTEXT
%checkpoint // Checkpoint
%increment_call_depth
// stack: (empty)
PUSH 0x100000000 // = 2^32 (is_kernel = true)
// stack: kexit_info

View File

@ -7,6 +7,7 @@ global precompile_rip160:
DUP1
SET_CONTEXT
%checkpoint // Checkpoint
%increment_call_depth
// stack: (empty)
PUSH 0x100000000 // = 2^32 (is_kernel = true)
// stack: kexit_info

View File

@ -7,6 +7,7 @@ global precompile_sha256:
DUP1
SET_CONTEXT
%checkpoint // Checkpoint
%increment_call_depth
// stack: (empty)
PUSH 0x100000000 // = 2^32 (is_kernel = true)
// stack: kexit_info

View File

@ -7,6 +7,7 @@ global precompile_snarkv:
DUP1
SET_CONTEXT
%checkpoint // Checkpoint
%increment_call_depth
// stack: (empty)
PUSH 0x100000000 // = 2^32 (is_kernel = true)
// stack: kexit_info