mirror of
https://github.com/DoneJS-Runtime/quickjs-done-nextgen.git
synced 2025-01-09 17:43:15 +00:00
Mark indirect goto and address-as-label as extensions
This commit is contained in:
parent
8f1ac67ea9
commit
4bfffe8e12
1 changed files with 2 additions and 2 deletions
|
@ -14584,13 +14584,13 @@ static JSValue JS_CallInternal(JSContext *caller_ctx, JSValue func_obj,
|
||||||
#define DEFAULT default
|
#define DEFAULT default
|
||||||
#define BREAK break
|
#define BREAK break
|
||||||
#else
|
#else
|
||||||
static const void * const dispatch_table[256] = {
|
__extension__ static const void * const dispatch_table[256] = {
|
||||||
#define DEF(id, size, n_pop, n_push, f) && case_OP_ ## id,
|
#define DEF(id, size, n_pop, n_push, f) && case_OP_ ## id,
|
||||||
#define def(id, size, n_pop, n_push, f)
|
#define def(id, size, n_pop, n_push, f)
|
||||||
#include "quickjs-opcode.h"
|
#include "quickjs-opcode.h"
|
||||||
[ OP_COUNT ... 255 ] = &&case_default
|
[ OP_COUNT ... 255 ] = &&case_default
|
||||||
};
|
};
|
||||||
#define SWITCH(pc) DUMP_BYTECODE_OR_DONT(pc) goto *dispatch_table[opcode = *pc++];
|
#define SWITCH(pc) DUMP_BYTECODE_OR_DONT(pc) __extension__ ({ goto *dispatch_table[opcode = *pc++]; });
|
||||||
#define CASE(op) case_ ## op
|
#define CASE(op) case_ ## op
|
||||||
#define DEFAULT case_default
|
#define DEFAULT case_default
|
||||||
#define BREAK SWITCH(pc)
|
#define BREAK SWITCH(pc)
|
||||||
|
|
Loading…
Reference in a new issue