From 6a478abb9392ca21043a14902f6a083220bb6c9b Mon Sep 17 00:00:00 2001 From: Robin Salen Date: Mon, 10 Jun 2024 08:12:56 -0400 Subject: [PATCH] perf: Charge gas before tload search --- .../src/cpu/kernel/asm/memory/transient_storage.asm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/evm_arithmetization/src/cpu/kernel/asm/memory/transient_storage.asm b/evm_arithmetization/src/cpu/kernel/asm/memory/transient_storage.asm index b2530240c..8aa32c3e2 100644 --- a/evm_arithmetization/src/cpu/kernel/asm/memory/transient_storage.asm +++ b/evm_arithmetization/src/cpu/kernel/asm/memory/transient_storage.asm @@ -95,13 +95,14 @@ tload_found: // Pre stack: kexit_info, slot // Post stack: value global sys_tload: + // stack: kexit_info, slot + %charge_gas_const(@GAS_WARMACCESS) // stack: kexit_info, slot SWAP1 // stack: slot, kexit_info %tload_current SWAP1 - %charge_gas_const(@GAS_WARMACCESS) // stack: kexit_info, value EXIT_KERNEL