mirror of
https://github.com/bellard/quickjs.git
synced 2025-05-12 11:06:10 +08:00
fixed DUMP_BYTECODE
This commit is contained in:
parent
5b0c98a43a
commit
9106fa0b58
@ -33230,7 +33230,7 @@ static JSValue js_create_function(JSContext *ctx, JSFunctionDef *fd)
|
||||
}
|
||||
|
||||
#if defined(DUMP_BYTECODE) && (DUMP_BYTECODE & 4)
|
||||
if (!s->strip_debug) {
|
||||
if (!fd->strip_debug) {
|
||||
printf("pass 1\n");
|
||||
dump_byte_code(ctx, 1, fd->byte_code.buf, fd->byte_code.size,
|
||||
fd->args, fd->arg_count, fd->vars, fd->var_count,
|
||||
@ -33245,7 +33245,7 @@ static JSValue js_create_function(JSContext *ctx, JSFunctionDef *fd)
|
||||
goto fail;
|
||||
|
||||
#if defined(DUMP_BYTECODE) && (DUMP_BYTECODE & 2)
|
||||
if (!s->strip_debug) {
|
||||
if (!fd->strip_debug) {
|
||||
printf("pass 2\n");
|
||||
dump_byte_code(ctx, 2, fd->byte_code.buf, fd->byte_code.size,
|
||||
fd->args, fd->arg_count, fd->vars, fd->var_count,
|
||||
@ -33375,7 +33375,7 @@ static JSValue js_create_function(JSContext *ctx, JSFunctionDef *fd)
|
||||
add_gc_object(ctx->rt, &b->header, JS_GC_OBJ_TYPE_FUNCTION_BYTECODE);
|
||||
|
||||
#if defined(DUMP_BYTECODE) && (DUMP_BYTECODE & 1)
|
||||
if (!s->strip_debug) {
|
||||
if (!fd->strip_debug) {
|
||||
js_dump_function_bytecode(ctx, b);
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user