mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
Improved comments on the generated opcodes.h file.
FossilOrigin-Name: f2a17f1fad08779486e4d50d0d9277c7f87a9558a53af1a68aa5fe2ec30e820e
This commit is contained in:
@ -145,7 +145,9 @@ foreach name {OP_Noop OP_Explain OP_Abortable} {
|
||||
incr nOp
|
||||
}
|
||||
|
||||
# The following are the opcodes that are processed by resolveP2Values()
|
||||
# The following are the opcodes that receive special processing in the
|
||||
# resolveP2Values() routine. Update this list whenever new cases are
|
||||
# added to the pOp->opcode switch within resolveP2Values().
|
||||
#
|
||||
set rp2v_ops {
|
||||
OP_Transaction
|
||||
@ -157,13 +159,11 @@ set rp2v_ops {
|
||||
OP_VUpdate
|
||||
OP_VFilter
|
||||
OP_Next
|
||||
OP_NextIfOpen
|
||||
OP_SorterNext
|
||||
OP_Prev
|
||||
OP_PrevIfOpen
|
||||
}
|
||||
|
||||
# Assign small values to opcodes that are processed by resolveP2Values()
|
||||
# Assign the smallest values to opcodes that are processed by resolveP2Values()
|
||||
# to make code generation for the switch() statement smaller and faster.
|
||||
#
|
||||
set cnt -1
|
||||
@ -177,6 +177,7 @@ for {set i 0} {$i<$nOp} {incr i} {
|
||||
set def($cnt) $name
|
||||
}
|
||||
}
|
||||
set mxCase1 $cnt
|
||||
|
||||
# Assign the next group of values to JUMP opcodes
|
||||
#
|
||||
@ -311,7 +312,7 @@ for {set i 0} {$i<=$max} {incr i} {
|
||||
}
|
||||
puts "\175"
|
||||
puts ""
|
||||
puts "/* The sqlite3P2Values() routine is able to run faster if it knows"
|
||||
puts "/* The resolve3P2Values() routine is able to run faster if it knows"
|
||||
puts "** the value of the largest JUMP opcode. The smaller the maximum"
|
||||
puts "** JUMP opcode the better, so the mkopcodeh.tcl script that"
|
||||
puts "** generated this include file strives to group all JUMP opcodes"
|
||||
|
Reference in New Issue
Block a user