From 87a6dd92fba18d4f13c05ce9504531d97b7a1574 Mon Sep 17 00:00:00 2001 From: Hannes Verschore Date: Fri, 2 Nov 2012 11:45:25 +0100 Subject: [PATCH] Bug #807380: Report to the compiler the function is constructing when entering at a branch, r=dvander --- js/src/ion/Ion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/ion/Ion.cpp b/js/src/ion/Ion.cpp index e8da55e50801..6cd9ed34eebf 100644 --- a/js/src/ion/Ion.cpp +++ b/js/src/ion/Ion.cpp @@ -1270,7 +1270,7 @@ ion::CanEnterAtBranch(JSContext *cx, HandleScript script, StackFrame *fp, jsbyte // Attempt compilation. Returns Method_Compiled if already compiled. JSFunction *fun = fp->isFunctionFrame() ? fp->fun() : NULL; - MethodStatus status = Compile(cx, script, fun, pc, false); + MethodStatus status = Compile(cx, script, fun, pc, fp->isConstructing()); if (status != Method_Compiled) { if (status == Method_CantCompile) ForbidCompilation(cx, script);