mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset f35c977b4b21 (bug 1000182) for failing jit tests on a CLOSED TREE
This commit is contained in:
parent
d580b2275f
commit
c8f64af328
@ -1,18 +0,0 @@
|
||||
// |jit-test| allow-unhandlable-oom;
|
||||
function range(n, m) {
|
||||
var result = [];
|
||||
result.push(i);
|
||||
return result;
|
||||
for (var i = 0, l = a.length; i < l; i++) {}
|
||||
}
|
||||
function b(opFunction, cmpFunction) {
|
||||
var result = opFunction({mode:"compile"});
|
||||
var result = opFunction({mode:"par"});
|
||||
}
|
||||
function a(arr, op, func, cmpFunc) {
|
||||
b(function (m) { return arr[op + "Par"].apply(arr, [func, m]); }, function(m) {});
|
||||
}
|
||||
if ("mapPar" in [])
|
||||
a(range(0, 1024), "map", function (i) {});
|
||||
if (typeof oomAfterAllocations === "function")
|
||||
oomAfterAllocations(4);
|
@ -531,17 +531,14 @@ JitCompartment::notifyOfActiveParallelEntryScript(JSContext *cx, HandleScript sc
|
||||
}
|
||||
|
||||
if (!activeParallelEntryScripts_) {
|
||||
ScriptSet *scripts = js_new<ScriptSet>();
|
||||
if (!scripts || !scripts->init()) {
|
||||
js_delete(scripts);
|
||||
js_ReportOutOfMemory(cx);
|
||||
activeParallelEntryScripts_ = cx->new_<ScriptSet>(cx);
|
||||
if (!activeParallelEntryScripts_ || !activeParallelEntryScripts_->init())
|
||||
return false;
|
||||
}
|
||||
activeParallelEntryScripts_ = scripts;
|
||||
}
|
||||
|
||||
script->parallelIonScript()->setIsParallelEntryScript();
|
||||
return activeParallelEntryScripts_->put(script);
|
||||
ScriptSet::AddPtr p = activeParallelEntryScripts_->lookupForAdd(script);
|
||||
return p || activeParallelEntryScripts_->add(p, script);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -421,8 +421,7 @@ class JitCompartment
|
||||
// Set of JSScripts invoked by ForkJoin (i.e. the entry script). These
|
||||
// scripts are marked if their respective parallel IonScripts' age is less
|
||||
// than a certain amount. See IonScript::parallelAge_.
|
||||
typedef HashSet<PreBarrieredScript, DefaultHasher<PreBarrieredScript>, SystemAllocPolicy>
|
||||
ScriptSet;
|
||||
typedef HashSet<PreBarrieredScript> ScriptSet;
|
||||
ScriptSet *activeParallelEntryScripts_;
|
||||
|
||||
JitCode *generateStringConcatStub(JSContext *cx, ExecutionMode mode);
|
||||
|
Loading…
Reference in New Issue
Block a user