[gjs/mozjs78: 12/21] engine: Update flags. - JSGC_MAX_MALLOC_BYTES was removed. - JSGC_DYNAMIC_MARK_SLICE and JSGC_DYNAMI
- From: Evan Welsh <ewlsh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/mozjs78: 12/21] engine: Update flags. - JSGC_MAX_MALLOC_BYTES was removed. - JSGC_DYNAMIC_MARK_SLICE and JSGC_DYNAMI
- Date: Sun, 5 Jul 2020 03:36:10 +0000 (UTC)
commit bb300bb899c3214c5c785a6a4b62e8e19d466c15
Author: Evan Welsh <noreply evanwelsh com>
Date: Sat Jul 4 22:22:35 2020 -0500
engine: Update flags.
- JSGC_MAX_MALLOC_BYTES was removed.
- JSGC_DYNAMIC_MARK_SLICE and JSGC_DYNAMIC_HEAP_GROWTH are now defaults.
- JSGC_SLICE_TIME_BUDGET is now JSGC_SLICE_TIME_BUDGET_MS.
- setIon is now setWasmIon
- setBaseline is now setWasmBaseline
gjs/engine.cpp | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/gjs/engine.cpp b/gjs/engine.cpp
index 6182bc02..7572ca9e 100644
--- a/gjs/engine.cpp
+++ b/gjs/engine.cpp
@@ -213,13 +213,10 @@ JSContext* gjs_create_js_context(GjsContextPrivate* uninitialized_gjs) {
// commented are defaults in moz-24
JS_SetNativeStackQuota(cx, 1024 * 1024);
- JS_SetGCParameter(cx, JSGC_MAX_MALLOC_BYTES, 128 * 1024 * 1024);
JS_SetGCParameter(cx, JSGC_MAX_BYTES, -1);
JS_SetGCParameter(cx, JSGC_MODE, JSGC_MODE_INCREMENTAL);
- JS_SetGCParameter(cx, JSGC_SLICE_TIME_BUDGET, 10); /* ms */
+ JS_SetGCParameter(cx, JSGC_SLICE_TIME_BUDGET_MS, 10); /* ms */
// JS_SetGCParameter(cx, JSGC_HIGH_FREQUENCY_TIME_LIMIT, 1000); /* ms */
- JS_SetGCParameter(cx, JSGC_DYNAMIC_MARK_SLICE, true);
- JS_SetGCParameter(cx, JSGC_DYNAMIC_HEAP_GROWTH, true);
// JS_SetGCParameter(cx, JSGC_LOW_FREQUENCY_HEAP_GROWTH, 150);
// JS_SetGCParameter(cx, JSGC_HIGH_FREQUENCY_HEAP_GROWTH_MIN, 150);
// JS_SetGCParameter(cx, JSGC_HIGH_FREQUENCY_HEAP_GROWTH_MAX, 300);
@@ -255,9 +252,11 @@ JSContext* gjs_create_js_context(GjsContextPrivate* uninitialized_gjs) {
if (enable_jit) {
gjs_debug(GJS_DEBUG_CONTEXT, "Enabling JIT");
}
+
+ // TODO(mozjs78): Do these options do the same thing?
JS::ContextOptionsRef(cx)
- .setIon(enable_jit)
- .setBaseline(enable_jit)
+ .setWasmIon(enable_jit)
+ .setWasmBaseline(enable_jit)
.setAsmJS(enable_jit);
return cx;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]