The shell is a very simple JavaScript shell initially intended as a V8 sample. It is also used for running the tests. However if developing JavaScript I will recommended d8, as it has more features e.g. it has the "arguments" property with the command line arguments passed, it supports counters (by passing --dump-counters and possibly --native-code-counters) and supports a command line JavaScript debugger (by passing the --debugger). We try to change shell as little as possible whereas d8 gets extended with features. d8 also supports readline.
Regards, Søren On Fri, Jan 14, 2011 at 13:46, Paweł Hajdan, Jr. <[email protected]>wrote: > Thanks, that made all tests pass! > > What is the difference between d8 and shell? Is it documented somewhere? > Should a Linux package v8 provide d8, shell, both, or neither? > > 2011/1/14 Søren Gjesse <[email protected]> > >> The shell is a sample, and you have to pass sample=shell to scons to build >> it. >> >> $ scons sample=shell >> >> Regards, >> Søren >> >> On Fri, Jan 14, 2011 at 09:35, Paweł Hajdan, Jr. <[email protected] >> > wrote: >> >>> That makes sense. What arguments should I pass to scons to build the >>> shell, and where will be the shell binary? >>> >>> "scons ." doesn't seem to build shell, and I don't want to use >>> tools/test.py for building because the ebuild passes additional flags to >>> scons (for example to respect LDFLAGS). >>> >>> >>> On Wed, Jan 12, 2011 at 18:36, Vyacheslav Egorov >>> <[email protected]>wrote: >>> >>>> AFAIK d8 just does not support --stress-opt flag. It is shell specific. >>>> >>>> -- >>>> Vyacheslav Egorov >>>> >>>> >>>> On Wed, Jan 12, 2011 at 6:18 PM, Lasse R.H. Nielsen <[email protected]> >>>> wrote: >>>> > A quick look shows that many of the tests are from the "message" test >>>> suite. >>>> > Those tests check the output on stdout against an expectation. >>>> > They all fail because of the extra output saying: >>>> > --- >>>> > Warning: unknown flag --stress-opt. >>>> > Try --help for options >>>> > --- >>>> > Maybe you can look into why that option isn't recognized as expected. >>>> > /L >>>> > On Wed, Jan 12, 2011 at 14:49, Paweł Hajdan, Jr. < >>>> [email protected]> >>>> > wrote: >>>> >> >>>> >> Tests used to pass for v8-2.x (with one >>>> >> exception, >>>> http://groups.google.com/group/v8-users/browse_thread/thread/b8a3f42b5aa18d06 >>>> ), >>>> >> but with 3.x I'm getting a lot more test failures when packaging for >>>> Gentoo >>>> >> Linux. The package uses library=shared scons option. >>>> >> I'm attaching the full build log (for 3.0.6.1). Do you have some >>>> ideas >>>> >> what causes those failures? >>>> >> >>>> >> -- >>>> >> v8-users mailing list >>>> >> [email protected] >>>> >> http://groups.google.com/group/v8-users >>>> > >>>> > >>>> > -- >>>> > Lasse R.H. Nielsen >>>> > [email protected] >>>> > 'Faith without judgement merely degrades the spirit divine' >>>> > Google Denmark ApS - Frederiksborggade 20B, 1 sal - 1360 København K - >>>> > Denmark - CVR nr. 28 86 69 84 >>>> > >>>> > -- >>>> > v8-users mailing list >>>> > [email protected] >>>> > http://groups.google.com/group/v8-users >>>> >>>> -- >>>> v8-users mailing list >>>> [email protected] >>>> http://groups.google.com/group/v8-users >>>> >>> >>> -- >>> v8-users mailing list >>> [email protected] >>> http://groups.google.com/group/v8-users >>> >> >> -- >> v8-users mailing list >> [email protected] >> http://groups.google.com/group/v8-users >> > > -- > v8-users mailing list > [email protected] > http://groups.google.com/group/v8-users > -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
