github.com/Rookout/GoSDK@v0.1.48/pkg/services/instrumentation/dwarf/op/opcodes.go (about)

     1  // The MIT License (MIT)
     2  
     3  // Copyright (c) 2014 Derek Parker
     4  
     5  // Permission is hereby granted, free of charge, to any person obtaining a copy of
     6  // this software and associated documentation files (the "Software"), to deal in
     7  // the Software without restriction, including without limitation the rights to
     8  // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
     9  // the Software, and to permit persons to whom the Software is furnished to do so,
    10  // subject to the following conditions:
    11  
    12  // The above copyright notice and this permission notice shall be included in all
    13  // copies or substantial portions of the Software.
    14  
    15  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    16  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
    17  // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
    18  // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
    19  // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
    20  // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
    21  
    22  package op
    23  
    24  const (
    25  	DW_OP_addr                Opcode = 0x03
    26  	DW_OP_deref               Opcode = 0x06
    27  	DW_OP_const1u             Opcode = 0x08
    28  	DW_OP_const1s             Opcode = 0x09
    29  	DW_OP_const2u             Opcode = 0x0a
    30  	DW_OP_const2s             Opcode = 0x0b
    31  	DW_OP_const4u             Opcode = 0x0c
    32  	DW_OP_const4s             Opcode = 0x0d
    33  	DW_OP_const8u             Opcode = 0x0e
    34  	DW_OP_const8s             Opcode = 0x0f
    35  	DW_OP_constu              Opcode = 0x10
    36  	DW_OP_consts              Opcode = 0x11
    37  	DW_OP_dup                 Opcode = 0x12
    38  	DW_OP_drop                Opcode = 0x13
    39  	DW_OP_over                Opcode = 0x14
    40  	DW_OP_pick                Opcode = 0x15
    41  	DW_OP_swap                Opcode = 0x16
    42  	DW_OP_rot                 Opcode = 0x17
    43  	DW_OP_xderef              Opcode = 0x18
    44  	DW_OP_abs                 Opcode = 0x19
    45  	DW_OP_and                 Opcode = 0x1a
    46  	DW_OP_div                 Opcode = 0x1b
    47  	DW_OP_minus               Opcode = 0x1c
    48  	DW_OP_mod                 Opcode = 0x1d
    49  	DW_OP_mul                 Opcode = 0x1e
    50  	DW_OP_neg                 Opcode = 0x1f
    51  	DW_OP_not                 Opcode = 0x20
    52  	DW_OP_or                  Opcode = 0x21
    53  	DW_OP_plus                Opcode = 0x22
    54  	DW_OP_plus_uconst         Opcode = 0x23
    55  	DW_OP_shl                 Opcode = 0x24
    56  	DW_OP_shr                 Opcode = 0x25
    57  	DW_OP_shra                Opcode = 0x26
    58  	DW_OP_xor                 Opcode = 0x27
    59  	DW_OP_bra                 Opcode = 0x28
    60  	DW_OP_eq                  Opcode = 0x29
    61  	DW_OP_ge                  Opcode = 0x2a
    62  	DW_OP_gt                  Opcode = 0x2b
    63  	DW_OP_le                  Opcode = 0x2c
    64  	DW_OP_lt                  Opcode = 0x2d
    65  	DW_OP_ne                  Opcode = 0x2e
    66  	DW_OP_skip                Opcode = 0x2f
    67  	DW_OP_lit0                Opcode = 0x30
    68  	DW_OP_lit1                Opcode = 0x31
    69  	DW_OP_lit2                Opcode = 0x32
    70  	DW_OP_lit3                Opcode = 0x33
    71  	DW_OP_lit4                Opcode = 0x34
    72  	DW_OP_lit5                Opcode = 0x35
    73  	DW_OP_lit6                Opcode = 0x36
    74  	DW_OP_lit7                Opcode = 0x37
    75  	DW_OP_lit8                Opcode = 0x38
    76  	DW_OP_lit9                Opcode = 0x39
    77  	DW_OP_lit10               Opcode = 0x3a
    78  	DW_OP_lit11               Opcode = 0x3b
    79  	DW_OP_lit12               Opcode = 0x3c
    80  	DW_OP_lit13               Opcode = 0x3d
    81  	DW_OP_lit14               Opcode = 0x3e
    82  	DW_OP_lit15               Opcode = 0x3f
    83  	DW_OP_lit16               Opcode = 0x40
    84  	DW_OP_lit17               Opcode = 0x41
    85  	DW_OP_lit18               Opcode = 0x42
    86  	DW_OP_lit19               Opcode = 0x43
    87  	DW_OP_lit20               Opcode = 0x44
    88  	DW_OP_lit21               Opcode = 0x45
    89  	DW_OP_lit22               Opcode = 0x46
    90  	DW_OP_lit23               Opcode = 0x47
    91  	DW_OP_lit24               Opcode = 0x48
    92  	DW_OP_lit25               Opcode = 0x49
    93  	DW_OP_lit26               Opcode = 0x4a
    94  	DW_OP_lit27               Opcode = 0x4b
    95  	DW_OP_lit28               Opcode = 0x4c
    96  	DW_OP_lit29               Opcode = 0x4d
    97  	DW_OP_lit30               Opcode = 0x4e
    98  	DW_OP_lit31               Opcode = 0x4f
    99  	DW_OP_reg0                Opcode = 0x50
   100  	DW_OP_reg1                Opcode = 0x51
   101  	DW_OP_reg2                Opcode = 0x52
   102  	DW_OP_reg3                Opcode = 0x53
   103  	DW_OP_reg4                Opcode = 0x54
   104  	DW_OP_reg5                Opcode = 0x55
   105  	DW_OP_reg6                Opcode = 0x56
   106  	DW_OP_reg7                Opcode = 0x57
   107  	DW_OP_reg8                Opcode = 0x58
   108  	DW_OP_reg9                Opcode = 0x59
   109  	DW_OP_reg10               Opcode = 0x5a
   110  	DW_OP_reg11               Opcode = 0x5b
   111  	DW_OP_reg12               Opcode = 0x5c
   112  	DW_OP_reg13               Opcode = 0x5d
   113  	DW_OP_reg14               Opcode = 0x5e
   114  	DW_OP_reg15               Opcode = 0x5f
   115  	DW_OP_reg16               Opcode = 0x60
   116  	DW_OP_reg17               Opcode = 0x61
   117  	DW_OP_reg18               Opcode = 0x62
   118  	DW_OP_reg19               Opcode = 0x63
   119  	DW_OP_reg20               Opcode = 0x64
   120  	DW_OP_reg21               Opcode = 0x65
   121  	DW_OP_reg22               Opcode = 0x66
   122  	DW_OP_reg23               Opcode = 0x67
   123  	DW_OP_reg24               Opcode = 0x68
   124  	DW_OP_reg25               Opcode = 0x69
   125  	DW_OP_reg26               Opcode = 0x6a
   126  	DW_OP_reg27               Opcode = 0x6b
   127  	DW_OP_reg28               Opcode = 0x6c
   128  	DW_OP_reg29               Opcode = 0x6d
   129  	DW_OP_reg30               Opcode = 0x6e
   130  	DW_OP_reg31               Opcode = 0x6f
   131  	DW_OP_breg0               Opcode = 0x70
   132  	DW_OP_breg1               Opcode = 0x71
   133  	DW_OP_breg2               Opcode = 0x72
   134  	DW_OP_breg3               Opcode = 0x73
   135  	DW_OP_breg4               Opcode = 0x74
   136  	DW_OP_breg5               Opcode = 0x75
   137  	DW_OP_breg6               Opcode = 0x76
   138  	DW_OP_breg7               Opcode = 0x77
   139  	DW_OP_breg8               Opcode = 0x78
   140  	DW_OP_breg9               Opcode = 0x79
   141  	DW_OP_breg10              Opcode = 0x7a
   142  	DW_OP_breg11              Opcode = 0x7b
   143  	DW_OP_breg12              Opcode = 0x7c
   144  	DW_OP_breg13              Opcode = 0x7d
   145  	DW_OP_breg14              Opcode = 0x7e
   146  	DW_OP_breg15              Opcode = 0x7f
   147  	DW_OP_breg16              Opcode = 0x80
   148  	DW_OP_breg17              Opcode = 0x81
   149  	DW_OP_breg18              Opcode = 0x82
   150  	DW_OP_breg19              Opcode = 0x83
   151  	DW_OP_breg20              Opcode = 0x84
   152  	DW_OP_breg21              Opcode = 0x85
   153  	DW_OP_breg22              Opcode = 0x86
   154  	DW_OP_breg23              Opcode = 0x87
   155  	DW_OP_breg24              Opcode = 0x88
   156  	DW_OP_breg25              Opcode = 0x89
   157  	DW_OP_breg26              Opcode = 0x8a
   158  	DW_OP_breg27              Opcode = 0x8b
   159  	DW_OP_breg28              Opcode = 0x8c
   160  	DW_OP_breg29              Opcode = 0x8d
   161  	DW_OP_breg30              Opcode = 0x8e
   162  	DW_OP_breg31              Opcode = 0x8f
   163  	DW_OP_regx                Opcode = 0x90
   164  	DW_OP_fbreg               Opcode = 0x91
   165  	DW_OP_bregx               Opcode = 0x92
   166  	DW_OP_piece               Opcode = 0x93
   167  	DW_OP_deref_size          Opcode = 0x94
   168  	DW_OP_xderef_size         Opcode = 0x95
   169  	DW_OP_nop                 Opcode = 0x96
   170  	DW_OP_push_object_address Opcode = 0x97
   171  	DW_OP_call2               Opcode = 0x98
   172  	DW_OP_call4               Opcode = 0x99
   173  	DW_OP_call_ref            Opcode = 0x9a
   174  	DW_OP_form_tls_address    Opcode = 0x9b
   175  	DW_OP_call_frame_cfa      Opcode = 0x9c
   176  	DW_OP_bit_piece           Opcode = 0x9d
   177  	DW_OP_implicit_value      Opcode = 0x9e
   178  	DW_OP_stack_value         Opcode = 0x9f
   179  )