diff options
author | Randall Leeds <randall@apache.org> | 2013-01-26 03:15:46 -0800 |
---|---|---|
committer | Randall Leeds <randall@apache.org> | 2013-01-26 03:15:46 -0800 |
commit | 67e75c2b31b3f13e45df1314e08f2a407f9a2d1b (patch) | |
tree | 0f624e448835a2049b067f1389df454bbc21b108 | |
parent | fd4b78671c4367f4f6469156e428176648c07a76 (diff) | |
download | couchdb-67e75c2b31b3f13e45df1314e08f2a407f9a2d1b.tar.gz |
enable JaegerMonkey features on mozjs185
closes COUCHDB-1376
-rw-r--r-- | src/couchdb/priv/couch_js/sm185.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/couchdb/priv/couch_js/sm185.c b/src/couchdb/priv/couch_js/sm185.c index c11e885d9..bfee023c0 100644 --- a/src/couchdb/priv/couch_js/sm185.c +++ b/src/couchdb/priv/couch_js/sm185.c @@ -345,6 +345,10 @@ main(int argc, const char* argv[]) JS_SetErrorReporter(cx, couch_error); JS_ToggleOptions(cx, JSOPTION_XML); + JS_SetOptions(cx, JSOPTION_METHODJIT); +#ifdef JSOPTION_TYPE_INFERENCE + JS_SetOptions(cx, JSOPTION_TYPE_INFERENCE); +#endif JS_SetContextPrivate(cx, args); SETUP_REQUEST(cx); |