mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Merge.
This commit is contained in:
commit
c03dba3fe5
@ -241,6 +241,7 @@ static bool did_we_check_sse2 = false;
|
||||
|
||||
#ifdef JS_JIT_SPEW
|
||||
bool js_verboseDebug = getenv("TRACEMONKEY") && strstr(getenv("TRACEMONKEY"), "verbose");
|
||||
bool js_verboseStats = getenv("TRACEMONKEY") && strstr(getenv("TRACEMONKEY"), "stats");
|
||||
#endif
|
||||
|
||||
/* The entire VM shares one oracle. Collisions and concurrent updates are tolerated and worst
|
||||
@ -3571,6 +3572,13 @@ js_RecordLoopEdge(JSContext* cx, TraceRecorder* r, uintN& inlineCallCount)
|
||||
Fragment* f = getLoop(&JS_TRACE_MONITOR(cx), cx->fp->regs->pc, ti->globalShape);
|
||||
if (nesting_enabled && f) {
|
||||
|
||||
/* Cannot handle treecalls with callDepth > 0 and argc > nargs, see bug 480244. */
|
||||
if (r->getCallDepth() > 0 &&
|
||||
cx->fp->argc > cx->fp->fun->nargs) {
|
||||
js_AbortRecording(cx, "Can't call inner tree with extra args in pending frame");
|
||||
return false;
|
||||
}
|
||||
|
||||
/* Make sure inner tree call will not run into an out-of-memory condition. */
|
||||
if (tm->reservedDoublePoolPtr < (tm->reservedDoublePool + MAX_NATIVE_STACK_SLOTS) &&
|
||||
!js_ReplenishReservedPool(cx, tm)) {
|
||||
@ -4522,7 +4530,7 @@ extern void
|
||||
js_FinishJIT(JSTraceMonitor *tm)
|
||||
{
|
||||
#ifdef JS_JIT_SPEW
|
||||
if (jitstats.recorderStarted) {
|
||||
if (js_verboseStats && jitstats.recorderStarted) {
|
||||
printf("recorder: started(%llu), aborted(%llu), completed(%llu), different header(%llu), "
|
||||
"trees trashed(%llu), slot promoted(%llu), unstable loop variable(%llu), "
|
||||
"breaks(%llu), returns(%llu), unstableInnerCalls(%llu)\n",
|
||||
|
Loading…
Reference in New Issue
Block a user