Bug 113619

Summary: FTL should force LLVM to use our own JIT memory allocator, and we shouldn't have to keep around an LLVMExecutionEngineRef to keep code alive
Product: WebKit Reporter: Filip Pizlo <fpizlo>
Component: JavaScriptCoreAssignee: Filip Pizlo <fpizlo>
Status: RESOLVED FIXED    
Severity: Normal CC: barraclough, ggaren, mark.lam, mhahnenberg, msaboff, oliver, sam
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 112840, 113620    
Attachments:
Description Flags
LLVM patch to expose MCJITMemoryManager callbacks
none
the patch
ggaren: review+
LLVM patch to expose MCJITMemoryManager callbacks
none
LLVM patch to expose MCJITMemoryManager callbacks
none
new patch for LLVM
none
the patch none

Description Filip Pizlo 2013-03-29 16:08:20 PDT
FTL should force LLVM to use our own JIT memory allocator.
Comment 1 Filip Pizlo 2013-05-15 15:08:37 PDT
Created attachment 201888 [details]
LLVM patch to expose MCJITMemoryManager callbacks
Comment 2 Filip Pizlo 2013-05-15 15:09:59 PDT
Created attachment 201889 [details]
the patch
Comment 3 Filip Pizlo 2013-05-15 15:12:00 PDT
Created attachment 201890 [details]
LLVM patch to expose MCJITMemoryManager callbacks
Comment 4 Geoffrey Garen 2013-05-15 15:17:01 PDT
Comment on attachment 201889 [details]
the patch

View in context: https://bugs.webkit.org/attachment.cgi?id=201889&action=review

r=me

> Source/JavaScriptCore/ftl/FTLCompile.cpp:43
> +static uint8_t *allocateCodeSection(

Move the star, please. And below.

> Source/JavaScriptCore/ftl/FTLCompile.cpp:54
> +            state.graph.m_vm, size, state.graph.m_codeBlock, JITCompilationMustSucceed);

Maybe link to the bug here about must succeed.
Comment 5 Filip Pizlo 2013-05-15 18:52:31 PDT
Created attachment 201909 [details]
LLVM patch to expose MCJITMemoryManager callbacks
Comment 6 Filip Pizlo 2013-05-18 09:11:19 PDT
Created attachment 202207 [details]
new patch for LLVM
Comment 7 Filip Pizlo 2013-05-18 09:12:19 PDT
Created attachment 202208 [details]
the patch
Comment 8 Filip Pizlo 2013-05-22 10:01:09 PDT
Landed in http://trac.webkit.org/changeset/150520