diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2025-03-18 18:29:10 +0100 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2025-03-18 18:29:10 +0100 |
commit | 61e8b9442840bf94a2a9b0b872c8b3a197c1eac3 (patch) | |
tree | a9a3bee4f06eed73e9ea9a440c3193cb5b613501 /qjsc.c | |
parent | 837a69758874339a75560d99cea665f1966799c8 (diff) | |
download | quickjs-61e8b9442840bf94a2a9b0b872c8b3a197c1eac3.tar.gz quickjs-61e8b9442840bf94a2a9b0b872c8b3a197c1eac3.zip |
removed bignum support and qjscalc - added optimized BigInt implementation
Diffstat (limited to 'qjsc.c')
-rw-r--r-- | qjsc.c | 28 |
1 files changed, 1 insertions, 27 deletions
@@ -492,9 +492,6 @@ int main(int argc, char **argv) int module; OutputTypeEnum output_type; size_t stack_size; -#ifdef CONFIG_BIGNUM - BOOL bignum_ext = FALSE; -#endif namelist_t dynamic_module_list; out_filename = NULL; @@ -547,13 +544,7 @@ int main(int argc, char **argv) } if (i == countof(feature_list)) goto bad_feature; - } else -#ifdef CONFIG_BIGNUM - if (!strcmp(optarg, "bignum")) { - bignum_ext = TRUE; - } else -#endif - { + } else { bad_feature: fprintf(stderr, "unsupported feature: %s\n", optarg); exit(1); @@ -630,14 +621,6 @@ int main(int argc, char **argv) rt = JS_NewRuntime(); ctx = JS_NewContext(rt); -#ifdef CONFIG_BIGNUM - if (bignum_ext) { - JS_AddIntrinsicBigFloat(ctx); - JS_AddIntrinsicBigDecimal(ctx); - JS_AddIntrinsicOperators(ctx); - JS_EnableBignumExt(ctx, TRUE); - } -#endif /* loader for ES6 modules */ JS_SetModuleLoaderFunc(rt, NULL, jsc_module_loader, NULL); @@ -686,15 +669,6 @@ int main(int argc, char **argv) feature_list[i].init_name); } } -#ifdef CONFIG_BIGNUM - if (bignum_ext) { - fprintf(fo, - " JS_AddIntrinsicBigFloat(ctx);\n" - " JS_AddIntrinsicBigDecimal(ctx);\n" - " JS_AddIntrinsicOperators(ctx);\n" - " JS_EnableBignumExt(ctx, 1);\n"); - } -#endif /* add the precompiled modules (XXX: could modify the module loader instead) */ for(i = 0; i < init_module_list.count; i++) { |