Skip to content

Commit

Permalink
Bug 822145 - Use correct allocator for CompileInfo on inlined frames,…
Browse files Browse the repository at this point in the history
… r=sstangl.
  • Loading branch information
bhackett1024 committed Dec 19, 2012
1 parent d3bf5b7 commit c3a1554
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions js/src/ion/IonBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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_<CompileInfo>(calleeScript.get(), callee,
(jsbytecode *)NULL, constructing,
SequentialExecution);
CompileInfo *info = alloc->new_<CompileInfo>(calleeScript.get(), callee,
(jsbytecode *)NULL, constructing,
SequentialExecution);
if (!info)
return false;

Expand Down

0 comments on commit c3a1554

Please sign in to comment.