From c3a15549c77fd0c3798cc475558c9a07deadcb02 Mon Sep 17 00:00:00 2001 From: Brian Hackett Date: Wed, 19 Dec 2012 16:24:42 -0700 Subject: [PATCH] Bug 822145 - Use correct allocator for CompileInfo on inlined frames, r=sstangl. --- js/src/ion/IonBuilder.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/js/src/ion/IonBuilder.cpp b/js/src/ion/IonBuilder.cpp index ba4df7299a092..5ab125a3be7b8 100644 --- a/js/src/ion/IonBuilder.cpp +++ b/js/src/ion/IonBuilder.cpp @@ -3134,12 +3134,11 @@ IonBuilder::jsop_call_inline(HandleFunction callee, uint32_t argc, bool construc for (int32_t i = argc; i >= 0; i--) argv[i] = current->pop(); - // Compilation information is allocated for the duration of the current tempLifoAlloc - // lifetime. + LifoAlloc *alloc = GetIonContext()->temp->lifoAlloc(); RootedScript calleeScript(cx, callee->nonLazyScript()); - CompileInfo *info = cx->tempLifoAlloc().new_(calleeScript.get(), callee, - (jsbytecode *)NULL, constructing, - SequentialExecution); + CompileInfo *info = alloc->new_(calleeScript.get(), callee, + (jsbytecode *)NULL, constructing, + SequentialExecution); if (!info) return false;