FTL should support double variables
Created attachment 199919 [details] the patch Still need to test it more, so not ready for review.
Heh. Looping over an array to sum up some doubles just got 50% faster. [pizlo@dethklok OpenSource] DYLD_FRAMEWORK_PATH=WebKitBuild/Release/ WebKitBuild/Release/jsc --useExperimentalFTL=false test10.js Warmup: 1000 iterations took 3.915071487426758 ms. Warmup: 10000 iterations took 33.653974533081055 ms. Measurement: 100000 iterations took 329.6809196472168 ms. [pizlo@dethklok OpenSource] DYLD_FRAMEWORK_PATH=WebKitBuild/Release/ WebKitBuild/Release/jsc --useExperimentalFTL=true test10.js Warmup: 1000 iterations took 8.111000061035156 ms. Warmup: 10000 iterations took 22.084951400756836 ms. Measurement: 100000 iterations took 220.31879425048828 ms.
Created attachment 199921 [details] the patch Note, for this to work on Darwin, I'll need to fix LLVM's MCJIT on Darwin. Lol.
Comment on attachment 199921 [details] the patch r=me Now all we need is for Darwin to become a supported platform for LLVM...
(In reply to comment #4) > (From update of attachment 199921 [details]) > r=me > > Now all we need is for Darwin to become a supported platform for LLVM... Lol. I will wait with landing this until I have that figured out. I've got a backlog of concurrent DFG stuff to do anyway.
(In reply to comment #5) > (In reply to comment #4) > > (From update of attachment 199921 [details] [details]) > > r=me > > > > Now all we need is for Darwin to become a supported platform for LLVM... > > Lol. > > I will wait with landing this until I have that figured out. I've got a backlog of concurrent DFG stuff to do anyway. And I "fixed" it. All that is needed is to switch the MCJIT to CodeModel::Small. This required exposing more things via the C API; I'll attach the patch here and try to land it in LLVM trunk soon.
Created attachment 199976 [details] latest MCJIT patch This includes my previous MCJIT patch since it's still in a land-rollout pattern. ;-)
Landed in http://trac.webkit.org/changeset/149264