зеркало из https://github.com/mozilla/pjs.git
Backout merge, a=backing out changeset tried for b7 blocker
This commit is contained in:
Коммит
a62adf7383
|
@ -1238,9 +1238,6 @@ nsJSContext::JSOptionChangedCallback(const char *pref, void *data)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!chromeWindow)
|
|
||||||
newDefaultJSOptions |= JSOPTION_ROPES;
|
|
||||||
|
|
||||||
if (useTraceJIT)
|
if (useTraceJIT)
|
||||||
newDefaultJSOptions |= JSOPTION_JIT;
|
newDefaultJSOptions |= JSOPTION_JIT;
|
||||||
else
|
else
|
||||||
|
|
|
@ -916,8 +916,6 @@ JS_StringToVersion(const char *string);
|
||||||
|
|
||||||
#define JSOPTION_METHODJIT JS_BIT(14) /* Whole-method JIT. */
|
#define JSOPTION_METHODJIT JS_BIT(14) /* Whole-method JIT. */
|
||||||
#define JSOPTION_PROFILING JS_BIT(15) /* Profiler to make tracer/methodjit choices. */
|
#define JSOPTION_PROFILING JS_BIT(15) /* Profiler to make tracer/methodjit choices. */
|
||||||
#define JSOPTION_ROPES JS_BIT(16) /* Enable rope optimization for
|
|
||||||
* string concat. */
|
|
||||||
|
|
||||||
extern JS_PUBLIC_API(uint32)
|
extern JS_PUBLIC_API(uint32)
|
||||||
JS_GetOptions(JSContext *cx);
|
JS_GetOptions(JSContext *cx);
|
||||||
|
|
|
@ -268,8 +268,6 @@ FinishConcat(JSContext *cx, bool usingLeft, bool usingRight,
|
||||||
left->convertToInteriorNode(res);
|
left->convertToInteriorNode(res);
|
||||||
if (usingRight)
|
if (usingRight)
|
||||||
right->convertToInteriorNode(res);
|
right->convertToInteriorNode(res);
|
||||||
if (!JS_HAS_OPTION(cx, JSOPTION_ROPES))
|
|
||||||
res->flatten();
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5436,7 +5436,7 @@ main(int argc, char **argv, char **envp)
|
||||||
if (!cx)
|
if (!cx)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
JS_SetOptions(cx, JS_GetOptions(cx) | JSOPTION_ANONFUNFIX | JSOPTION_ROPES);
|
JS_SetOptions(cx, JS_GetOptions(cx) | JSOPTION_ANONFUNFIX);
|
||||||
JS_SetGCParameterForThread(cx, JSGC_MAX_CODE_CACHE_BYTES, 16 * 1024 * 1024);
|
JS_SetGCParameterForThread(cx, JSGC_MAX_CODE_CACHE_BYTES, 16 * 1024 * 1024);
|
||||||
|
|
||||||
result = Shell(cx, argc, argv, envp);
|
result = Shell(cx, argc, argv, envp);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче