| OLD | NEW |
| 1 /* Automatically generated. Do not edit */ | 1 /* Automatically generated. Do not edit */ |
| 2 /* See the mkopcodeh.awk script for details */ | 2 /* See the mkopcodeh.awk script for details */ |
| 3 #define OP_NotExists 1 | 3 #define OP_Goto 1 |
| 4 #define OP_SeekLe 2 | 4 #define OP_Gosub 2 |
| 5 #define OP_IncrVacuum 3 | 5 #define OP_Return 3 |
| 6 #define OP_Multiply 86 /* same as TK_STAR */ | 6 #define OP_Yield 4 |
| 7 #define OP_VCreate 4 | 7 #define OP_HaltIfNull 5 |
| 8 #define OP_BitAnd 80 /* same as TK_BITAND */ | 8 #define OP_Halt 6 |
| 9 #define OP_ResultRow 5 | 9 #define OP_Integer 7 |
| 10 #define OP_DropTrigger 6 | 10 #define OP_Int64 8 |
| 11 #define OP_OpenPseudo 7 | |
| 12 #define OP_Affinity 8 | |
| 13 #define OP_IntegrityCk 9 | |
| 14 #define OP_RowKey 10 | |
| 15 #define OP_LoadAnalysis 11 | |
| 16 #define OP_Last 12 | |
| 17 #define OP_Subtract 85 /* same as TK_MINUS */ | |
| 18 #define OP_Remainder 88 /* same as TK_REM */ | |
| 19 #define OP_SetCookie 13 | |
| 20 #define OP_Sequence 14 | |
| 21 #define OP_VRename 15 | |
| 22 #define OP_SeekLt 16 | |
| 23 #define OP_SCopy 17 | |
| 24 #define OP_VUpdate 18 | |
| 25 #define OP_VColumn 20 | |
| 26 #define OP_DropTable 21 | |
| 27 #define OP_NotNull 72 /* same as TK_NOTNULL */ | |
| 28 #define OP_Rowid 22 | |
| 29 #define OP_Real 130 /* same as TK_FLOAT */ | 11 #define OP_Real 130 /* same as TK_FLOAT */ |
| 30 #define OP_String8 94 /* same as TK_STRING */ | 12 #define OP_String8 94 /* same as TK_STRING */ |
| 31 #define OP_And 67 /* same as TK_AND */ | 13 #define OP_String 9 |
| 14 #define OP_Null 10 |
| 15 #define OP_Blob 11 |
| 16 #define OP_Variable 12 |
| 17 #define OP_Move 13 |
| 18 #define OP_Copy 14 |
| 19 #define OP_SCopy 15 |
| 20 #define OP_ResultRow 16 |
| 21 #define OP_Concat 91 /* same as TK_CONCAT */ |
| 22 #define OP_Add 86 /* same as TK_PLUS */ |
| 23 #define OP_Subtract 87 /* same as TK_MINUS */ |
| 24 #define OP_Multiply 88 /* same as TK_STAR */ |
| 25 #define OP_Divide 89 /* same as TK_SLASH */ |
| 26 #define OP_Remainder 90 /* same as TK_REM */ |
| 27 #define OP_CollSeq 17 |
| 28 #define OP_Function 18 |
| 29 #define OP_BitAnd 82 /* same as TK_BITAND */ |
| 30 #define OP_BitOr 83 /* same as TK_BITOR */ |
| 31 #define OP_ShiftLeft 84 /* same as TK_LSHIFT */ |
| 32 #define OP_ShiftRight 85 /* same as TK_RSHIFT */ |
| 33 #define OP_AddImm 20 |
| 34 #define OP_MustBeInt 21 |
| 35 #define OP_RealAffinity 22 |
| 36 #define OP_ToText 141 /* same as TK_TO_TEXT */ |
| 37 #define OP_ToBlob 142 /* same as TK_TO_BLOB */ |
| 38 #define OP_ToNumeric 143 /* same as TK_TO_NUMERIC*/ |
| 39 #define OP_ToInt 144 /* same as TK_TO_INT */ |
| 40 #define OP_ToReal 145 /* same as TK_TO_REAL */ |
| 41 #define OP_Eq 76 /* same as TK_EQ */ |
| 42 #define OP_Ne 75 /* same as TK_NE */ |
| 43 #define OP_Lt 79 /* same as TK_LT */ |
| 44 #define OP_Le 78 /* same as TK_LE */ |
| 45 #define OP_Gt 77 /* same as TK_GT */ |
| 46 #define OP_Ge 80 /* same as TK_GE */ |
| 47 #define OP_Permutation 23 |
| 48 #define OP_Compare 24 |
| 49 #define OP_Jump 25 |
| 50 #define OP_And 69 /* same as TK_AND */ |
| 51 #define OP_Or 68 /* same as TK_OR */ |
| 52 #define OP_Not 19 /* same as TK_NOT */ |
| 32 #define OP_BitNot 93 /* same as TK_BITNOT */ | 53 #define OP_BitNot 93 /* same as TK_BITNOT */ |
| 33 #define OP_VFilter 23 | 54 #define OP_If 26 |
| 34 #define OP_NullRow 24 | 55 #define OP_IfNot 27 |
| 35 #define OP_HaltIfNull 25 | 56 #define OP_IsNull 73 /* same as TK_ISNULL */ |
| 36 #define OP_Noop 26 | 57 #define OP_NotNull 74 /* same as TK_NOTNULL */ |
| 37 #define OP_RowSetRead 27 | 58 #define OP_Column 28 |
| 38 #define OP_Ge 78 /* same as TK_GE */ | 59 #define OP_Affinity 29 |
| 39 #define OP_RowSetAdd 28 | 60 #define OP_MakeRecord 30 |
| 40 #define OP_ParseSchema 29 | 61 #define OP_Count 31 |
| 41 #define OP_CollSeq 30 | 62 #define OP_Savepoint 32 |
| 42 #define OP_ToText 141 /* same as TK_TO_TEXT */ | 63 #define OP_AutoCommit 33 |
| 43 #define OP_Eq 74 /* same as TK_EQ */ | 64 #define OP_Transaction 34 |
| 44 #define OP_RowSetTest 31 | 65 #define OP_ReadCookie 35 |
| 45 #define OP_ToNumeric 143 /* same as TK_TO_NUMERIC*/ | 66 #define OP_SetCookie 36 |
| 46 #define OP_If 32 | 67 #define OP_VerifyCookie 37 |
| 47 #define OP_IfNot 33 | 68 #define OP_OpenRead 38 |
| 48 #define OP_ShiftRight 83 /* same as TK_RSHIFT */ | 69 #define OP_OpenWrite 39 |
| 49 #define OP_Destroy 34 | 70 #define OP_OpenAutoindex 40 |
| 50 #define OP_Program 35 | 71 #define OP_OpenEphemeral 41 |
| 51 #define OP_Permutation 36 | 72 #define OP_OpenPseudo 42 |
| 52 #define OP_CreateIndex 37 | 73 #define OP_Close 43 |
| 53 #define OP_Not 19 /* same as TK_NOT */ | 74 #define OP_SeekLt 44 |
| 54 #define OP_Gt 75 /* same as TK_GT */ | 75 #define OP_SeekLe 45 |
| 55 #define OP_ResetCount 38 | 76 #define OP_SeekGe 46 |
| 56 #define OP_Goto 39 | 77 #define OP_SeekGt 47 |
| 57 #define OP_IdxDelete 40 | 78 #define OP_Seek 48 |
| 58 #define OP_Found 41 | 79 #define OP_NotFound 49 |
| 59 #define OP_SeekGe 42 | 80 #define OP_Found 50 |
| 60 #define OP_Jump 43 | 81 #define OP_IsUnique 51 |
| 61 #define OP_Pagecount 44 | 82 #define OP_NotExists 52 |
| 62 #define OP_MustBeInt 45 | 83 #define OP_Sequence 53 |
| 63 #define OP_Prev 46 | 84 #define OP_NewRowid 54 |
| 64 #define OP_AutoCommit 47 | 85 #define OP_Insert 55 |
| 65 #define OP_String 48 | 86 #define OP_InsertInt 56 |
| 66 #define OP_ToInt 144 /* same as TK_TO_INT */ | 87 #define OP_Delete 57 |
| 67 #define OP_Return 49 | 88 #define OP_ResetCount 58 |
| 68 #define OP_Copy 50 | 89 #define OP_RowKey 59 |
| 69 #define OP_AddImm 51 | 90 #define OP_RowData 60 |
| 70 #define OP_Function 52 | 91 #define OP_Rowid 61 |
| 71 #define OP_Trace 53 | 92 #define OP_NullRow 62 |
| 72 #define OP_Seek 54 | 93 #define OP_Last 63 |
| 73 #define OP_Concat 89 /* same as TK_CONCAT */ | 94 #define OP_Sort 64 |
| 74 #define OP_NewRowid 55 | 95 #define OP_Rewind 65 |
| 75 #define OP_SeekGt 56 | 96 #define OP_Prev 66 |
| 76 #define OP_Blob 57 | 97 #define OP_Next 67 |
| 77 #define OP_IsNull 71 /* same as TK_ISNULL */ | 98 #define OP_IdxInsert 70 |
| 78 #define OP_Next 58 | 99 #define OP_IdxDelete 71 |
| 79 #define OP_ReadCookie 59 | 100 #define OP_IdxRowid 72 |
| 80 #define OP_Halt 60 | 101 #define OP_IdxLT 81 |
| 81 #define OP_Expire 61 | 102 #define OP_IdxGE 92 |
| 82 #define OP_Or 66 /* same as TK_OR */ | 103 #define OP_Destroy 95 |
| 83 #define OP_DropIndex 62 | 104 #define OP_Clear 96 |
| 84 #define OP_IdxInsert 63 | 105 #define OP_CreateIndex 97 |
| 85 #define OP_Savepoint 64 | 106 #define OP_CreateTable 98 |
| 86 #define OP_ShiftLeft 82 /* same as TK_LSHIFT */ | 107 #define OP_ParseSchema 99 |
| 87 #define OP_Column 65 | 108 #define OP_LoadAnalysis 100 |
| 88 #define OP_Int64 68 | 109 #define OP_DropTable 101 |
| 89 #define OP_Gosub 69 | 110 #define OP_DropIndex 102 |
| 90 #define OP_RowData 70 | 111 #define OP_DropTrigger 103 |
| 91 #define OP_Move 79 | 112 #define OP_IntegrityCk 104 |
| 92 #define OP_BitOr 81 /* same as TK_BITOR */ | 113 #define OP_RowSetAdd 105 |
| 93 #define OP_MemMax 90 | 114 #define OP_RowSetRead 106 |
| 94 #define OP_Close 91 | 115 #define OP_RowSetTest 107 |
| 95 #define OP_ToReal 145 /* same as TK_TO_REAL */ | 116 #define OP_Program 108 |
| 96 #define OP_VerifyCookie 92 | 117 #define OP_Param 109 |
| 97 #define OP_Null 95 | 118 #define OP_FkCounter 110 |
| 98 #define OP_Integer 96 | 119 #define OP_FkIfZero 111 |
| 99 #define OP_Transaction 97 | 120 #define OP_MemMax 112 |
| 100 #define OP_Divide 87 /* same as TK_SLASH */ | 121 #define OP_IfPos 113 |
| 101 #define OP_IdxLT 98 | 122 #define OP_IfNeg 114 |
| 102 #define OP_Delete 99 | 123 #define OP_IfZero 115 |
| 103 #define OP_IfZero 100 | 124 #define OP_AggStep 116 |
| 104 #define OP_Rewind 101 | 125 #define OP_AggFinal 117 |
| 105 #define OP_RealAffinity 102 | 126 #define OP_Checkpoint 118 |
| 106 #define OP_Clear 103 | 127 #define OP_JournalMode 119 |
| 107 #define OP_Explain 104 | 128 #define OP_Vacuum 120 |
| 108 #define OP_AggStep 105 | 129 #define OP_IncrVacuum 121 |
| 109 #define OP_Vacuum 106 | 130 #define OP_Expire 122 |
| 110 #define OP_VDestroy 107 | 131 #define OP_TableLock 123 |
| 111 #define OP_IsUnique 108 | 132 #define OP_VBegin 124 |
| 112 #define OP_Count 109 | 133 #define OP_VCreate 125 |
| 113 #define OP_VOpen 110 | 134 #define OP_VDestroy 126 |
| 114 #define OP_Yield 111 | 135 #define OP_VOpen 127 |
| 115 #define OP_AggFinal 112 | 136 #define OP_VFilter 128 |
| 116 #define OP_OpenWrite 113 | 137 #define OP_VColumn 129 |
| 117 #define OP_Param 114 | 138 #define OP_VNext 131 |
| 118 #define OP_Le 76 /* same as TK_LE */ | 139 #define OP_VRename 132 |
| 119 #define OP_VNext 115 | 140 #define OP_VUpdate 133 |
| 120 #define OP_Sort 116 | 141 #define OP_Pagecount 134 |
| 121 #define OP_NotFound 117 | 142 #define OP_Trace 135 |
| 122 #define OP_MakeRecord 118 | 143 #define OP_Noop 136 |
| 123 #define OP_Add 84 /* same as TK_PLUS */ | 144 #define OP_Explain 137 |
| 124 #define OP_IfNeg 119 | |
| 125 #define OP_Ne 73 /* same as TK_NE */ | |
| 126 #define OP_Variable 120 | |
| 127 #define OP_CreateTable 121 | |
| 128 #define OP_Insert 122 | |
| 129 #define OP_Compare 123 | |
| 130 #define OP_IdxGE 124 | |
| 131 #define OP_OpenRead 125 | |
| 132 #define OP_IdxRowid 126 | |
| 133 #define OP_ToBlob 142 /* same as TK_TO_BLOB */ | |
| 134 #define OP_VBegin 127 | |
| 135 #define OP_TableLock 128 | |
| 136 #define OP_IfPos 129 | |
| 137 #define OP_OpenEphemeral 131 | |
| 138 #define OP_Lt 77 /* same as TK_LT */ | |
| 139 | 145 |
| 140 /* The following opcode values are never used */ | 146 /* The following opcode values are never used */ |
| 141 #define OP_NotUsed_132 132 | |
| 142 #define OP_NotUsed_133 133 | |
| 143 #define OP_NotUsed_134 134 | |
| 144 #define OP_NotUsed_135 135 | |
| 145 #define OP_NotUsed_136 136 | |
| 146 #define OP_NotUsed_137 137 | |
| 147 #define OP_NotUsed_138 138 | 147 #define OP_NotUsed_138 138 |
| 148 #define OP_NotUsed_139 139 | 148 #define OP_NotUsed_139 139 |
| 149 #define OP_NotUsed_140 140 | 149 #define OP_NotUsed_140 140 |
| 150 | 150 |
| 151 | 151 |
| 152 /* Properties such as "out2" or "jump" that are specified in | 152 /* Properties such as "out2" or "jump" that are specified in |
| 153 ** comments following the "case" for each opcode in the vdbe.c | 153 ** comments following the "case" for each opcode in the vdbe.c |
| 154 ** are encoded into bitvectors as follows: | 154 ** are encoded into bitvectors as follows: |
| 155 */ | 155 */ |
| 156 #define OPFLG_JUMP 0x0001 /* jump: P2 holds jmp target */ | 156 #define OPFLG_JUMP 0x0001 /* jump: P2 holds jmp target */ |
| 157 #define OPFLG_OUT2_PRERELEASE 0x0002 /* out2-prerelease: */ | 157 #define OPFLG_OUT2_PRERELEASE 0x0002 /* out2-prerelease: */ |
| 158 #define OPFLG_IN1 0x0004 /* in1: P1 is an input */ | 158 #define OPFLG_IN1 0x0004 /* in1: P1 is an input */ |
| 159 #define OPFLG_IN2 0x0008 /* in2: P2 is an input */ | 159 #define OPFLG_IN2 0x0008 /* in2: P2 is an input */ |
| 160 #define OPFLG_IN3 0x0010 /* in3: P3 is an input */ | 160 #define OPFLG_IN3 0x0010 /* in3: P3 is an input */ |
| 161 #define OPFLG_OUT3 0x0020 /* out3: P3 is an output */ | 161 #define OPFLG_OUT2 0x0020 /* out2: P2 is an output */ |
| 162 #define OPFLG_OUT3 0x0040 /* out3: P3 is an output */ |
| 162 #define OPFLG_INITIALIZER {\ | 163 #define OPFLG_INITIALIZER {\ |
| 163 /* 0 */ 0x00, 0x11, 0x11, 0x01, 0x00, 0x00, 0x00, 0x00,\ | 164 /* 0 */ 0x00, 0x01, 0x05, 0x04, 0x04, 0x10, 0x00, 0x02,\ |
| 164 /* 8 */ 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x02, 0x00,\ | 165 /* 8 */ 0x02, 0x02, 0x02, 0x02, 0x02, 0x00, 0x24, 0x24,\ |
| 165 /* 16 */ 0x11, 0x04, 0x00, 0x04, 0x00, 0x00, 0x02, 0x01,\ | 166 /* 16 */ 0x00, 0x00, 0x00, 0x24, 0x04, 0x05, 0x04, 0x00,\ |
| 166 /* 24 */ 0x00, 0x10, 0x00, 0x21, 0x08, 0x00, 0x00, 0x15,\ | 167 /* 24 */ 0x00, 0x01, 0x05, 0x05, 0x00, 0x00, 0x00, 0x02,\ |
| 167 /* 32 */ 0x05, 0x05, 0x02, 0x01, 0x00, 0x02, 0x00, 0x01,\ | 168 /* 32 */ 0x00, 0x00, 0x00, 0x02, 0x10, 0x00, 0x00, 0x00,\ |
| 168 /* 40 */ 0x00, 0x11, 0x11, 0x01, 0x02, 0x05, 0x01, 0x00,\ | 169 /* 40 */ 0x00, 0x00, 0x00, 0x00, 0x11, 0x11, 0x11, 0x11,\ |
| 169 /* 48 */ 0x02, 0x04, 0x04, 0x04, 0x00, 0x00, 0x08, 0x02,\ | 170 /* 48 */ 0x08, 0x11, 0x11, 0x11, 0x11, 0x02, 0x02, 0x00,\ |
| 170 /* 56 */ 0x11, 0x02, 0x01, 0x02, 0x00, 0x00, 0x00, 0x08,\ | 171 /* 56 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x01,\ |
| 171 /* 64 */ 0x00, 0x00, 0x2c, 0x2c, 0x02, 0x01, 0x00, 0x05,\ | 172 /* 64 */ 0x01, 0x01, 0x01, 0x01, 0x4c, 0x4c, 0x08, 0x00,\ |
| 172 /* 72 */ 0x05, 0x15, 0x15, 0x15, 0x15, 0x15, 0x15, 0x00,\ | 173 /* 72 */ 0x02, 0x05, 0x05, 0x15, 0x15, 0x15, 0x15, 0x15,\ |
| 173 /* 80 */ 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c, 0x2c,\ | 174 /* 80 */ 0x15, 0x01, 0x4c, 0x4c, 0x4c, 0x4c, 0x4c, 0x4c,\ |
| 174 /* 88 */ 0x2c, 0x2c, 0x08, 0x00, 0x00, 0x04, 0x02, 0x02,\ | 175 /* 88 */ 0x4c, 0x4c, 0x4c, 0x4c, 0x01, 0x24, 0x02, 0x02,\ |
| 175 /* 96 */ 0x02, 0x00, 0x11, 0x00, 0x05, 0x01, 0x04, 0x00,\ | 176 /* 96 */ 0x00, 0x02, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00,\ |
| 176 /* 104 */ 0x00, 0x00, 0x00, 0x00, 0x11, 0x02, 0x00, 0x04,\ | 177 /* 104 */ 0x00, 0x0c, 0x45, 0x15, 0x01, 0x02, 0x00, 0x01,\ |
| 177 /* 112 */ 0x00, 0x00, 0x02, 0x01, 0x01, 0x11, 0x00, 0x05,\ | 178 /* 112 */ 0x08, 0x05, 0x05, 0x05, 0x00, 0x00, 0x00, 0x02,\ |
| 178 /* 120 */ 0x00, 0x02, 0x00, 0x00, 0x11, 0x00, 0x02, 0x00,\ | 179 /* 120 */ 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\ |
| 179 /* 128 */ 0x00, 0x05, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00,\ | 180 /* 128 */ 0x01, 0x00, 0x02, 0x01, 0x00, 0x00, 0x02, 0x00,\ |
| 180 /* 136 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x04, 0x04,\ | 181 /* 136 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x04, 0x04,\ |
| 181 /* 144 */ 0x04, 0x04,} | 182 /* 144 */ 0x04, 0x04,} |
| OLD | NEW |