engine/sqlite/src/opcodes.h
author Sebastian Brannstrom <sebastianb@symbian.org>
Fri, 09 Jul 2010 23:58:47 +0100
branch3rded
changeset 175 cd124c4eb6b9
parent 2 29cda98b007e
permissions -rw-r--r--
Started port to 3rd edition
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
     1
/* Automatically generated.  Do not edit */
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
     2
/* See the mkopcodeh.awk script for details */
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
     3
#define OP_MemLoad                              1
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
     4
#define OP_VNext                                2
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
     5
#define OP_HexBlob                            126   /* same as TK_BLOB     */
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
     6
#define OP_Column                               3
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
     7
#define OP_SetCookie                            4
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
     8
#define OP_IfMemPos                             5
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
     9
#define OP_Real                               125   /* same as TK_FLOAT    */
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    10
#define OP_Sequence                             6
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    11
#define OP_MoveGt                               7
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    12
#define OP_Ge                                  72   /* same as TK_GE       */
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    13
#define OP_RowKey                               8
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    14
#define OP_Eq                                  68   /* same as TK_EQ       */
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    15
#define OP_OpenWrite                            9
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    16
#define OP_NotNull                             66   /* same as TK_NOTNULL  */
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    17
#define OP_If                                  10
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    18
#define OP_ToInt                              141   /* same as TK_TO_INT   */
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    19
#define OP_String8                             88   /* same as TK_STRING   */
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    20
#define OP_Pop                                 11
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    21
#define OP_VRowid                              12
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    22
#define OP_CollSeq                             13
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    23
#define OP_OpenRead                            14
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    24
#define OP_Expire                              15
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    25
#define OP_AutoCommit                          17
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    26
#define OP_Gt                                  69   /* same as TK_GT       */
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    27
#define OP_IntegrityCk                         18
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    28
#define OP_Sort                                19
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    29
#define OP_Function                            20
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    30
#define OP_And                                 61   /* same as TK_AND      */
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    31
#define OP_Subtract                            79   /* same as TK_MINUS    */
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    32
#define OP_Noop                                21
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    33
#define OP_Return                              22
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    34
#define OP_Remainder                           82   /* same as TK_REM      */
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    35
#define OP_NewRowid                            23
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    36
#define OP_Multiply                            80   /* same as TK_STAR     */
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    37
#define OP_IfMemNeg                            24
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    38
#define OP_Variable                            25
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    39
#define OP_String                              26
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    40
#define OP_RealAffinity                        27
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    41
#define OP_VRename                             28
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    42
#define OP_ParseSchema                         29
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    43
#define OP_VOpen                               30
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    44
#define OP_Close                               31
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    45
#define OP_CreateIndex                         32
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    46
#define OP_IsUnique                            33
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    47
#define OP_NotFound                            34
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    48
#define OP_Int64                               35
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    49
#define OP_MustBeInt                           36
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    50
#define OP_Halt                                37
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    51
#define OP_Rowid                               38
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    52
#define OP_IdxLT                               39
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    53
#define OP_AddImm                              40
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    54
#define OP_Statement                           41
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    55
#define OP_RowData                             42
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    56
#define OP_MemMax                              43
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    57
#define OP_Push                                44
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    58
#define OP_Or                                  60   /* same as TK_OR       */
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    59
#define OP_NotExists                           45
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    60
#define OP_MemIncr                             46
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    61
#define OP_Gosub                               47
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    62
#define OP_Divide                              81   /* same as TK_SLASH    */
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    63
#define OP_Integer                             48
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    64
#define OP_ToNumeric                          140   /* same as TK_TO_NUMERIC*/
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    65
#define OP_MemInt                              49
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    66
#define OP_Prev                                50
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    67
#define OP_Concat                              83   /* same as TK_CONCAT   */
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    68
#define OP_BitAnd                              74   /* same as TK_BITAND   */
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    69
#define OP_VColumn                             51
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    70
#define OP_CreateTable                         52
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    71
#define OP_Last                                53
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    72
#define OP_IsNull                              65   /* same as TK_ISNULL   */
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    73
#define OP_IncrVacuum                          54
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    74
#define OP_IdxRowid                            55
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    75
#define OP_MakeIdxRec                          56
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    76
#define OP_ShiftRight                          77   /* same as TK_RSHIFT   */
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    77
#define OP_ResetCount                          57
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    78
#define OP_FifoWrite                           58
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    79
#define OP_Callback                            59
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    80
#define OP_ContextPush                         62
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    81
#define OP_DropTrigger                         63
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    82
#define OP_DropIndex                           64
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    83
#define OP_IdxGE                               73
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    84
#define OP_IdxDelete                           84
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    85
#define OP_Vacuum                              86
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    86
#define OP_MoveLe                              89
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    87
#define OP_IfNot                               90
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    88
#define OP_DropTable                           91
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    89
#define OP_MakeRecord                          92
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    90
#define OP_ToBlob                             139   /* same as TK_TO_BLOB  */
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    91
#define OP_Delete                              93
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    92
#define OP_StackDepth                          94
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    93
#define OP_AggFinal                            95
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    94
#define OP_ShiftLeft                           76   /* same as TK_LSHIFT   */
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    95
#define OP_Dup                                 96
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    96
#define OP_Goto                                97
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    97
#define OP_TableLock                           98
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    98
#define OP_FifoRead                            99
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
    99
#define OP_Clear                              100
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   100
#define OP_IdxGT                              101
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   101
#define OP_MoveLt                             102
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   102
#define OP_Le                                  70   /* same as TK_LE       */
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   103
#define OP_VerifyCookie                       103
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   104
#define OP_AggStep                            104
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   105
#define OP_Pull                               105
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   106
#define OP_ToText                             138   /* same as TK_TO_TEXT  */
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   107
#define OP_Not                                 16   /* same as TK_NOT      */
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   108
#define OP_ToReal                             142   /* same as TK_TO_REAL  */
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   109
#define OP_SetNumColumns                      106
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   110
#define OP_AbsValue                           107
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   111
#define OP_Transaction                        108
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   112
#define OP_VFilter                            109
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   113
#define OP_Negative                            85   /* same as TK_UMINUS   */
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   114
#define OP_Ne                                  67   /* same as TK_NE       */
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   115
#define OP_VDestroy                           110
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   116
#define OP_ContextPop                         111
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   117
#define OP_BitOr                               75   /* same as TK_BITOR    */
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   118
#define OP_Next                               112
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   119
#define OP_IdxInsert                          113
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   120
#define OP_Distinct                           114
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   121
#define OP_Lt                                  71   /* same as TK_LT       */
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   122
#define OP_Insert                             115
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   123
#define OP_Destroy                            116
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   124
#define OP_ReadCookie                         117
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   125
#define OP_ForceInt                           118
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   126
#define OP_LoadAnalysis                       119
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   127
#define OP_Explain                            120
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   128
#define OP_IfMemZero                          121
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   129
#define OP_OpenPseudo                         122
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   130
#define OP_OpenEphemeral                      123
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   131
#define OP_Null                               124
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   132
#define OP_Blob                               127
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   133
#define OP_Add                                 78   /* same as TK_PLUS     */
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   134
#define OP_MemStore                           128
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   135
#define OP_Rewind                             129
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   136
#define OP_MoveGe                             130
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   137
#define OP_VBegin                             131
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   138
#define OP_VUpdate                            132
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   139
#define OP_BitNot                              87   /* same as TK_BITNOT   */
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   140
#define OP_VCreate                            133
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   141
#define OP_MemMove                            134
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   142
#define OP_MemNull                            135
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   143
#define OP_Found                              136
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   144
#define OP_NullRow                            137
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   145
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   146
/* Opcodes that are guaranteed to never push a value onto the stack
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   147
** contain a 1 their corresponding position of the following mask
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   148
** set.  See the opcodeNoPush() function in vdbeaux.c  */
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   149
#define NOPUSH_MASK_0 0xeeb4
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   150
#define NOPUSH_MASK_1 0xf96b
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   151
#define NOPUSH_MASK_2 0xfbb6
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   152
#define NOPUSH_MASK_3 0xfe64
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   153
#define NOPUSH_MASK_4 0xffff
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   154
#define NOPUSH_MASK_5 0xeef7
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   155
#define NOPUSH_MASK_6 0xf7f6
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   156
#define NOPUSH_MASK_7 0x0ecf
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   157
#define NOPUSH_MASK_8 0x7f3f
29cda98b007e Initial import of Podcatcher from the Bergamot project
skip
parents:
diff changeset
   158
#define NOPUSH_MASK_9 0x0000