On May 12, 2009, at 11:48 PM, Gyuyoung Kim wrote:
Hello,
According to my knowledge, SFX makes bytecode using javascript, then the bytecode is translated to native code via JITc. I was told that V8 doesn't make bytecode. It makes native code from javascript directly. If SFX also makes native code from javascript directly, in my opinion, the performace of SFX can be better than now. Are there any movements about my question?
If I have misunderstandings, please let me know.
There's two ways in which bytecode might have an effect on performance: 1) It might take longer at code generation time to first make bytecode and then native code. We're not worried about this, because at least right now code generation time is a tiny proportion of execution time. 2) Bytecode might be a more effective or less effective format for doing further optimizations than using the parse directly. We think it's more effective - while sometimes it loses useful information, it also makes a number of optimizations easier. So at least for now, we're happy with our approach of generating bytecode before native code. Regards, Maciej