Main issue here is that V8 does not have a PPC codegen.
You'll to implement one (plus all required arch specific runtime
support) if you want to see V8 running on Power PC.
--
Vyacheslav Egorov
> --
> v8-users mailing list
> v8-u...@googlegroups.com
> http://groups.google.com/group/v8-users
Cheers,
Rico
I mean hours for a preliminary version, just a rough guess...I'm not sure about how a MIPS port could be useful for possible PPC port:) Not familiar with both architectures good enough to see similarities.
Another way to put it: we have roughly 40K LoC for each architecture. You could start with a copy and probably wouldn't have to change every single line, but most of them.
Exactly what Bryan said: V8 generates machine code (think "on-the-fly compiler"), and that's architecture specific by definition. There's no way around that, it's not some optional optimization. It might be possible to reduce some overlap by restructuring the code, but it's difficult to say whether that'd be worth the effort.
Thanks to you both. No, i'm not suggesting that there be any optimization effort. i'm just curious. Most software dev managers would probably cringe at that amount of "duplication", but as you but say, it's not really duplication.
On Tue, Aug 30, 2011 at 5:17 PM, Stephan Beal <sgb...@googlemail.com> wrote:Thanks to you both. No, i'm not suggesting that there be any optimization effort. i'm just curious. Most software dev managers would probably cringe at that amount of "duplication", but as you but say, it's not really duplication.But it would be interesting to get your opinions: having developed v8 this way for so long, do you (as the developers) feel that the time spent in platform-specific code "would have been better spent" on instead writing a fast VM, as opposed to aggressively targeting the speed benefits of native code?
Again, i'm not arguing one way or the other, i'm just curious about how the devs feel about it. i was always surprised at the focus of generating machine-specific code, but as an old SpiderMonkey user i can say that the speed benefits of v8 are very visible to clients. (When i first did some simple benchmarks on v8, i compared it to my older SpiderMonkey code and function calls in tight loops were 200 _times_ faster on v8.)
--
I don't understand the question. V8 is fast precisely because of the underlying design choice to generate machine code. It's a fast VM *because* it's aggressively targeting the speed benefits of native code.
modern JS engines, though, cannot be achieved without compiling to native code one way or another.