Browse Source

Reorder EXP opcodes to be right after MOD

pull/997/head
Sami Vaarala 8 years ago
parent
commit
af468969c8
  1. 286
      src-input/duk_js_bytecode.h
  2. 4
      src-input/duk_js_executor.c

286
src-input/duk_js_bytecode.h

@ -246,149 +246,149 @@ typedef duk_uint32_t duk_instr_t;
#define DUK_OP_MOD_CR 69
#define DUK_OP_MOD_RC 70
#define DUK_OP_MOD_CC 71
#define DUK_OP_BAND 72
#define DUK_OP_BAND_RR 72
#define DUK_OP_BAND_CR 73
#define DUK_OP_BAND_RC 74
#define DUK_OP_BAND_CC 75
#define DUK_OP_BOR 76
#define DUK_OP_BOR_RR 76
#define DUK_OP_BOR_CR 77
#define DUK_OP_BOR_RC 78
#define DUK_OP_BOR_CC 79
#define DUK_OP_BXOR 80
#define DUK_OP_BXOR_RR 80
#define DUK_OP_BXOR_CR 81
#define DUK_OP_BXOR_RC 82
#define DUK_OP_BXOR_CC 83
#define DUK_OP_BASL 84
#define DUK_OP_BASL_RR 84
#define DUK_OP_BASL_CR 85
#define DUK_OP_BASL_RC 86
#define DUK_OP_BASL_CC 87
#define DUK_OP_BLSR 88
#define DUK_OP_BLSR_RR 88
#define DUK_OP_BLSR_CR 89
#define DUK_OP_BLSR_RC 90
#define DUK_OP_BLSR_CC 91
#define DUK_OP_BASR 92
#define DUK_OP_BASR_RR 92
#define DUK_OP_BASR_CR 93
#define DUK_OP_BASR_RC 94
#define DUK_OP_BASR_CC 95
#define DUK_OP_INSTOF 96
#define DUK_OP_INSTOF_RR 96
#define DUK_OP_INSTOF_CR 97
#define DUK_OP_INSTOF_RC 98
#define DUK_OP_INSTOF_CC 99
#define DUK_OP_IN 100
#define DUK_OP_IN_RR 100
#define DUK_OP_IN_CR 101
#define DUK_OP_IN_RC 102
#define DUK_OP_IN_CC 103
#define DUK_OP_PREINCR 104 /* pre/post opcode values have constraints, */
#define DUK_OP_PREDECR 105 /* see duk_js_executor.c and duk_js_compiler.c. */
#define DUK_OP_POSTINCR 106
#define DUK_OP_POSTDECR 107
#define DUK_OP_PREINCV 108
#define DUK_OP_PREDECV 109
#define DUK_OP_POSTINCV 110
#define DUK_OP_POSTDECV 111
#define DUK_OP_PREINCP 112
#define DUK_OP_PREINCP_RR 112
#define DUK_OP_PREINCP_CR 113
#define DUK_OP_PREINCP_RC 114
#define DUK_OP_PREINCP_CC 115
#define DUK_OP_PREDECP 116
#define DUK_OP_PREDECP_RR 116
#define DUK_OP_PREDECP_CR 117
#define DUK_OP_PREDECP_RC 118
#define DUK_OP_PREDECP_CC 119
#define DUK_OP_POSTINCP 120
#define DUK_OP_POSTINCP_RR 120
#define DUK_OP_POSTINCP_CR 121
#define DUK_OP_POSTINCP_RC 122
#define DUK_OP_POSTINCP_CC 123
#define DUK_OP_POSTDECP 124
#define DUK_OP_POSTDECP_RR 124
#define DUK_OP_POSTDECP_CR 125
#define DUK_OP_POSTDECP_RC 126
#define DUK_OP_POSTDECP_CC 127
#define DUK_OP_GETPROP 128
#define DUK_OP_GETPROP_RR 128
#define DUK_OP_GETPROP_CR 129
#define DUK_OP_GETPROP_RC 130
#define DUK_OP_GETPROP_CC 131
#define DUK_OP_PUTPROP 132
#define DUK_OP_PUTPROP_RR 132
#define DUK_OP_PUTPROP_CR 133
#define DUK_OP_PUTPROP_RC 134
#define DUK_OP_PUTPROP_CC 135
#define DUK_OP_DELPROP 136
#define DUK_OP_DELPROP_RR 136
#define DUK_OP_DELPROP_CR_UNUSED 137 /* unused now */
#define DUK_OP_DELPROP_RC 138
#define DUK_OP_DELPROP_CC_UNUSED 139 /* unused now */
#define DUK_OP_DECLVAR 140
#define DUK_OP_DECLVAR_RR 140
#define DUK_OP_DECLVAR_CR 141
#define DUK_OP_DECLVAR_RC 142
#define DUK_OP_DECLVAR_CC 143
#define DUK_OP_REGEXP 144
#define DUK_OP_REGEXP_RR 144
#define DUK_OP_REGEXP_CR 145
#define DUK_OP_REGEXP_RC 146
#define DUK_OP_REGEXP_CC 147
#define DUK_OP_CSVAR 148
#define DUK_OP_CSVAR_RR 148
#define DUK_OP_CSVAR_CR 149
#define DUK_OP_CSVAR_RC 150
#define DUK_OP_CSVAR_CC 151
#define DUK_OP_CLOSURE 152
#define DUK_OP_GETVAR 153
#define DUK_OP_PUTVAR 154
#define DUK_OP_DELVAR 155
#define DUK_OP_JUMP 156
#define DUK_OP_RETREG 157
#define DUK_OP_RETUNDEF 158
#define DUK_OP_RETCONST 159
#define DUK_OP_RETCONSTN 160 /* return const without incref (e.g. number) */
#define DUK_OP_LABEL 161
#define DUK_OP_ENDLABEL 162
#define DUK_OP_BREAK 163
#define DUK_OP_CONTINUE 164
#define DUK_OP_TRYCATCH 165
#define DUK_OP_ENDTRY 166
#define DUK_OP_ENDCATCH 167
#define DUK_OP_ENDFIN 168
#define DUK_OP_THROW 169
#define DUK_OP_CSREG 170
#define DUK_OP_EVALCALL 171
#define DUK_OP_CALL 172 /* must be even */
#define DUK_OP_TAILCALL 173 /* must be odd */
#define DUK_OP_NEW 174
#define DUK_OP_NEWOBJ 175
#define DUK_OP_NEWARR 176
#define DUK_OP_MPUTOBJ 177
#define DUK_OP_MPUTOBJI 178
#define DUK_OP_INITSET 179
#define DUK_OP_INITGET 180
#define DUK_OP_MPUTARR 181
#define DUK_OP_MPUTARRI 182
#define DUK_OP_SETALEN 183
#define DUK_OP_INITENUM 184
#define DUK_OP_NEXTENUM 185
#define DUK_OP_INVLHS 186
#define DUK_OP_DEBUGGER 187
#define DUK_OP_NOP 188
#define DUK_OP_INVALID 189
#define DUK_OP_UNUSED190 190
#define DUK_OP_UNUSED191 191
#define DUK_OP_EXP 192
#define DUK_OP_EXP_RR 192
#define DUK_OP_EXP_CR 193
#define DUK_OP_EXP_RC 194
#define DUK_OP_EXP_CC 195
#define DUK_OP_EXP 72
#define DUK_OP_EXP_RR 72
#define DUK_OP_EXP_CR 73
#define DUK_OP_EXP_RC 74
#define DUK_OP_EXP_CC 75
#define DUK_OP_BAND 76
#define DUK_OP_BAND_RR 76
#define DUK_OP_BAND_CR 77
#define DUK_OP_BAND_RC 78
#define DUK_OP_BAND_CC 79
#define DUK_OP_BOR 80
#define DUK_OP_BOR_RR 80
#define DUK_OP_BOR_CR 81
#define DUK_OP_BOR_RC 82
#define DUK_OP_BOR_CC 83
#define DUK_OP_BXOR 84
#define DUK_OP_BXOR_RR 84
#define DUK_OP_BXOR_CR 85
#define DUK_OP_BXOR_RC 86
#define DUK_OP_BXOR_CC 87
#define DUK_OP_BASL 88
#define DUK_OP_BASL_RR 88
#define DUK_OP_BASL_CR 89
#define DUK_OP_BASL_RC 90
#define DUK_OP_BASL_CC 91
#define DUK_OP_BLSR 92
#define DUK_OP_BLSR_RR 92
#define DUK_OP_BLSR_CR 93
#define DUK_OP_BLSR_RC 94
#define DUK_OP_BLSR_CC 95
#define DUK_OP_BASR 96
#define DUK_OP_BASR_RR 96
#define DUK_OP_BASR_CR 97
#define DUK_OP_BASR_RC 98
#define DUK_OP_BASR_CC 99
#define DUK_OP_INSTOF 100
#define DUK_OP_INSTOF_RR 100
#define DUK_OP_INSTOF_CR 101
#define DUK_OP_INSTOF_RC 102
#define DUK_OP_INSTOF_CC 103
#define DUK_OP_IN 104
#define DUK_OP_IN_RR 104
#define DUK_OP_IN_CR 105
#define DUK_OP_IN_RC 106
#define DUK_OP_IN_CC 107
#define DUK_OP_GETPROP 108
#define DUK_OP_GETPROP_RR 108
#define DUK_OP_GETPROP_CR 109
#define DUK_OP_GETPROP_RC 110
#define DUK_OP_GETPROP_CC 111
#define DUK_OP_PUTPROP 112
#define DUK_OP_PUTPROP_RR 112
#define DUK_OP_PUTPROP_CR 113
#define DUK_OP_PUTPROP_RC 114
#define DUK_OP_PUTPROP_CC 115
#define DUK_OP_DELPROP 116
#define DUK_OP_DELPROP_RR 116
#define DUK_OP_DELPROP_CR_UNUSED 117 /* unused now */
#define DUK_OP_DELPROP_RC 118
#define DUK_OP_DELPROP_CC_UNUSED 119 /* unused now */
#define DUK_OP_PREINCR 120 /* pre/post opcode values have constraints, */
#define DUK_OP_PREDECR 121 /* see duk_js_executor.c and duk_js_compiler.c. */
#define DUK_OP_POSTINCR 122
#define DUK_OP_POSTDECR 123
#define DUK_OP_PREINCV 124
#define DUK_OP_PREDECV 125
#define DUK_OP_POSTINCV 126
#define DUK_OP_POSTDECV 127
#define DUK_OP_PREINCP 128 /* pre/post inc/dec prop opcodes have constraints */
#define DUK_OP_PREINCP_RR 128
#define DUK_OP_PREINCP_CR 129
#define DUK_OP_PREINCP_RC 130
#define DUK_OP_PREINCP_CC 131
#define DUK_OP_PREDECP 132
#define DUK_OP_PREDECP_RR 132
#define DUK_OP_PREDECP_CR 133
#define DUK_OP_PREDECP_RC 134
#define DUK_OP_PREDECP_CC 135
#define DUK_OP_POSTINCP 136
#define DUK_OP_POSTINCP_RR 136
#define DUK_OP_POSTINCP_CR 137
#define DUK_OP_POSTINCP_RC 138
#define DUK_OP_POSTINCP_CC 139
#define DUK_OP_POSTDECP 140
#define DUK_OP_POSTDECP_RR 140
#define DUK_OP_POSTDECP_CR 141
#define DUK_OP_POSTDECP_RC 142
#define DUK_OP_POSTDECP_CC 143
#define DUK_OP_DECLVAR 144
#define DUK_OP_DECLVAR_RR 144
#define DUK_OP_DECLVAR_CR 145
#define DUK_OP_DECLVAR_RC 146
#define DUK_OP_DECLVAR_CC 147
#define DUK_OP_REGEXP 148
#define DUK_OP_REGEXP_RR 148
#define DUK_OP_REGEXP_CR 149
#define DUK_OP_REGEXP_RC 150
#define DUK_OP_REGEXP_CC 151
#define DUK_OP_CSVAR 152
#define DUK_OP_CSVAR_RR 152
#define DUK_OP_CSVAR_CR 153
#define DUK_OP_CSVAR_RC 154
#define DUK_OP_CSVAR_CC 155
#define DUK_OP_CLOSURE 156
#define DUK_OP_GETVAR 157
#define DUK_OP_PUTVAR 158
#define DUK_OP_DELVAR 159
#define DUK_OP_JUMP 160
#define DUK_OP_RETREG 161
#define DUK_OP_RETUNDEF 162
#define DUK_OP_RETCONST 163
#define DUK_OP_RETCONSTN 164 /* return const without incref (e.g. number) */
#define DUK_OP_LABEL 165
#define DUK_OP_ENDLABEL 166
#define DUK_OP_BREAK 167
#define DUK_OP_CONTINUE 168
#define DUK_OP_TRYCATCH 169
#define DUK_OP_ENDTRY 170
#define DUK_OP_ENDCATCH 171
#define DUK_OP_ENDFIN 172
#define DUK_OP_THROW 173
#define DUK_OP_CSREG 174
#define DUK_OP_EVALCALL 175
#define DUK_OP_CALL 176 /* must be even */
#define DUK_OP_TAILCALL 177 /* must be odd */
#define DUK_OP_NEW 178
#define DUK_OP_NEWOBJ 179
#define DUK_OP_NEWARR 180
#define DUK_OP_MPUTOBJ 181
#define DUK_OP_MPUTOBJI 182
#define DUK_OP_INITSET 183
#define DUK_OP_INITGET 184
#define DUK_OP_MPUTARR 185
#define DUK_OP_MPUTARRI 186
#define DUK_OP_SETALEN 187
#define DUK_OP_INITENUM 188
#define DUK_OP_NEXTENUM 189
#define DUK_OP_INVLHS 190
#define DUK_OP_DEBUGGER 191
#define DUK_OP_NOP 192
#define DUK_OP_INVALID 193
#define DUK_OP_UNUSED194 194
#define DUK_OP_UNUSED195 195
#define DUK_OP_UNUSED196 196
#define DUK_OP_UNUSED197 197
#define DUK_OP_UNUSED198 198

4
src-input/duk_js_executor.c

@ -4923,8 +4923,8 @@ DUK_LOCAL DUK_NOINLINE void duk__js_execute_bytecode_inner(duk_hthread *entry_th
}
#if !defined(DUK_USE_EXEC_PREFER_SIZE)
case DUK_OP_UNUSED190:
case DUK_OP_UNUSED191:
case DUK_OP_UNUSED194:
case DUK_OP_UNUSED195:
case DUK_OP_UNUSED196:
case DUK_OP_UNUSED197:
case DUK_OP_UNUSED198:

Loading…
Cancel
Save