Factory method for Conditional Jump step. Conditional Jump requires a boolean value to sit on the stack. It is compared to jump_condition, and if matched, jump is performed.
| 124 | // Conditional Jump requires a boolean value to sit on the stack. |
| 125 | // It is compared to jump_condition, and if matched, jump is performed. |
| 126 | std::unique_ptr<JumpStepBase> CreateCondJumpStep( |
| 127 | bool jump_condition, bool leave_on_stack, absl::optional<int> jump_offset, |
| 128 | int64_t expr_id) { |
| 129 | return std::make_unique<CondJumpStep>(jump_condition, leave_on_stack, |
| 130 | jump_offset, expr_id); |
| 131 | } |
| 132 | |
| 133 | // Factory method for Jump step. |
| 134 | std::unique_ptr<JumpStepBase> CreateJumpStep(absl::optional<int> jump_offset, |