(&mut self, total_fuel_cost: u32)
| 39 | |
| 40 | #[inline(always)] |
| 41 | fn charge_call_fuel(&mut self, total_fuel_cost: u32) { |
| 42 | if BUDGETED { |
| 43 | let extra = match self.store.engine.config().fuel_policy { |
| 44 | FuelPolicy::PerInstruction => 0, |
| 45 | FuelPolicy::Weighted => total_fuel_cost.saturating_sub(1), |
| 46 | }; |
| 47 | |
| 48 | self.store.execution_fuel = self.store.execution_fuel.saturating_sub(extra); |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | #[inline(always)] |
| 53 | fn exec_binop_32(&self, op: BinOp, lhs: Value32, rhs: Value32) -> Value32 { |
no test coverage detected