diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2025-04-12 16:02:48 +0200 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2025-04-12 16:02:48 +0200 |
commit | 9106fa0b58b0b13551ed2696beb5b6f859972dd9 (patch) | |
tree | 391bb412d13d386d0472c85628635360048db5c1 /quickjs.c | |
parent | 5b0c98a43a4608eab2e245807b9a18ff3f5168cf (diff) | |
download | quickjs-9106fa0b58b0b13551ed2696beb5b6f859972dd9.tar.gz quickjs-9106fa0b58b0b13551ed2696beb5b6f859972dd9.zip |
fixed DUMP_BYTECODE
Diffstat (limited to 'quickjs.c')
-rw-r--r-- | quickjs.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |