mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 18:55:30 +00:00
Bug 880886 - Always allocate AsmJS's JSFunction in tenured; r=bhackett
--HG-- extra : rebase_source : 756c4326cedc0dfda0d1f83573fe2c277ff38073
This commit is contained in:
parent
de88d1fec1
commit
ed088df110
@ -6111,7 +6111,7 @@ js::CompileAsmJS(JSContext *cx, TokenStream &ts, ParseNode *fn, const CompileOpt
|
||||
RootedPropertyName name(cx, FunctionName(fn));
|
||||
moduleFun.set(NewFunction(cx, NullPtr(), LinkAsmJS, FunctionNumFormals(fn),
|
||||
JSFunction::NATIVE_FUN, NullPtr(), name,
|
||||
JSFunction::ExtendedFinalizeKind));
|
||||
JSFunction::ExtendedFinalizeKind, TenuredObject));
|
||||
if (!moduleFun)
|
||||
return false;
|
||||
|
||||
|
10
js/src/jit-test/tests/gc/bug-880886.js
Normal file
10
js/src/jit-test/tests/gc/bug-880886.js
Normal file
@ -0,0 +1,10 @@
|
||||
// |jit-test| error: too much recursion
|
||||
|
||||
function testUniqueness(asmJSModule) {
|
||||
var f = asmJSModule();
|
||||
}
|
||||
function lambda() {
|
||||
var x = function inner() { "use asm"; function g() {} return g };
|
||||
return lambda();
|
||||
}
|
||||
testUniqueness(lambda);
|
Loading…
Reference in New Issue
Block a user