Backed out changeset f35c977b4b21 (bug 1000182) for failing jit tests on a CLOSED TREE

This commit is contained in:
Carsten "Tomcat" Book 2014-06-23 10:12:12 +02:00
parent d580b2275f
commit c8f64af328
3 changed files with 5 additions and 27 deletions

View File

@ -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);

View File

@ -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

View File

@ -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);