mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 10:08:20 +00:00
core/vdbe: Add BeginSubrtn bytecode
Basically it does the very same thing of Null, but has a different name to differentiate its usage.
This commit is contained in:
parent
d2a1433345
commit
825aeb3f83
3 changed files with 19 additions and 0 deletions
|
@ -1350,6 +1350,17 @@ pub fn insn_to_str(
|
|||
0,
|
||||
format!("goto {}", target_pc_when_reentered.to_debug_int()),
|
||||
),
|
||||
Insn::BeginSubrtn { dest, dest_end } => (
|
||||
"BeginSubrtn",
|
||||
*dest as i32,
|
||||
dest_end.map_or(0, |end| end as i32),
|
||||
0,
|
||||
OwnedValue::build_text(""),
|
||||
0,
|
||||
dest_end.map_or(format!("r[{}]=NULL", dest), |end| {
|
||||
format!("r[{}..{}]=NULL", dest, end)
|
||||
}),
|
||||
),
|
||||
};
|
||||
format!(
|
||||
"{:<4} {:<17} {:<4} {:<4} {:<4} {:<13} {:<2} {}",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue