[gjs] context: Actually turn the JIT on
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] context: Actually turn the JIT on
- Date: Mon, 24 Jun 2013 22:12:28 +0000 (UTC)
commit 254dd02d6271fce421492357fec37f06250ed79c
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Jun 24 17:48:43 2013 -0400
context: Actually turn the JIT on
JSOPTION_JIT was removed in js17 and replaced with JSOPTION_METHODJIT.
...
That's right, when we ran with js17 we were actually running with the
slow bytecode interpreter... fun, isn't it :)
gjs/context.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gjs/context.c b/gjs/context.c
index b7c01cb..4419ed9 100644
--- a/gjs/context.c
+++ b/gjs/context.c
@@ -591,12 +591,10 @@ gjs_context_constructor (GType type,
*/
options_flags = JSOPTION_DONT_REPORT_UNCAUGHT | JSOPTION_STRICT | JSOPTION_ALLOW_XML;
-#ifdef JSOPTION_JIT
if (!g_getenv("GJS_DISABLE_JIT")) {
gjs_debug(GJS_DEBUG_CONTEXT, "Enabling JIT");
- options_flags |= JSOPTION_JIT;
+ options_flags |= JSOPTION_METHODJIT;
}
-#endif
JS_SetOptions(js_context->context,
JS_GetOptions(js_context->context) | options_flags);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]