Re: [webkit-dev] How to compile WebKit GTK+ port from ARM processor?

2009-03-18 Thread arati
Hi Arun,
Thanks a lot for your help.
I will try this out.

Arati

-Original Message-
From: Arun Patole [mailto:webkit.ar...@gmail.com] 
Sent: Thursday, March 19, 2009 11:45
To: last...@yahoo.com
Cc: Nilesh Patil; arati; webkit-dev@lists.webkit.org
Subject: Re: [webkit-dev] How to compile WebKit GTK+ port from ARM
processor?

Hi,

below are some basic things you would need to compile your webkit-gtk
port for any targeted system(e.g. Arm)

1. Get some cross compilation environment from compiling webkit on
your machine but targeting some other system like arm. E.g.
scratchbox, the one you mentioned, etc.

2. Get the require toolchain which will actually have tools/bins
reuired to compile your code for target machine(E.g. Arm)

3.  you will also have to cross compile/build all the dependencies
required to build webkit.

4. here is the list of webkit-gtk port dependencies:
o Gtk+ (might be on X or DirectFb), it needs lot of
dependencies to be built and installed first, google search  it for
build details, packages, etc.
o gperf
o flex
o bison
o curl(libcurl)
o sqlite
o icu4c-4.0(libicu)
o libXslt

5. Build webkit
o Get the latest source
o ./autogen.sh && make && make install

Refer webkit.org/google (https://trac.webkit.org/wiki/BuildingGtk) for
more details.

-Arun



On 3/18/09, x yz  wrote:
>
> I do mips not arm, but after setup cross compiler tool chain the
compilation
> is the same as on native X86 platform.
> for how to setup tool chain, you would got help from Internet.
> after you set up tool chain, you will need to compile extra libs. how to
> compile libs is also another issue.
> rgds
> joe
>
>
> --- On Tue, 3/17/09, arati  wrote:
>
>> From: arati 
>> Subject: Re: [webkit-dev] How to compile WebKit GTK+ port from ARM
>> processor?
>> To: "'Nilesh Patil'" 
>> Cc: webkit-dev@lists.webkit.org
>> Date: Tuesday, March 17, 2009, 1:11 PM
>> Hi Nilesh,
>> Thanks for your reply.
>> I have a cross compiler(Sourcery g++) installed on openSUSE
>> Linux.
>> Can you give me any direction for starting building WebKit
>> GTK+ port?
>> Do I need to do any configuration for this?
>>
>> Thanks
>>
>> -Original Message-
>> From: Nilesh Patil [mailto:vni...@gmail.com]
>> Sent: Thursday, March 12, 2009 19:04
>> To: arati
>> Cc: webkit-dev@lists.webkit.org
>> Subject: Re: [webkit-dev] How to compile WebKit GTK+ port
>> from ARM
>> processor?
>>
>> Hi
>>
>> Not really sure but If this is for linux then probably you
>> need to
>> have some cross platform compiler with environment like
>> scratchbox.
>>
>> On Wed, Mar 11, 2009 at 2:46 PM, arati
>>  wrote:
>> > Hi,
>> >
>> > Can anyone give me any pointer to compile WebKit GTK+
>> port for ARM
>> > processor?
>> >
>> > Can this be done using gcc ?
>> >
>> >
>> >
>> > Thanks
>> >
>> > ___
>> > webkit-dev mailing list
>> > webkit-dev@lists.webkit.org
>> >
>> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>> >
>> >
>>
>> ___
>> webkit-dev mailing list
>> webkit-dev@lists.webkit.org
>> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>
>
>
> ___
> webkit-dev mailing list
> webkit-dev@lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] How to compile WebKit GTK+ port from ARM processor?

2009-03-18 Thread Arun Patole
Hi,

below are some basic things you would need to compile your webkit-gtk
port for any targeted system(e.g. Arm)

1. Get some cross compilation environment from compiling webkit on
your machine but targeting some other system like arm. E.g.
scratchbox, the one you mentioned, etc.

2. Get the require toolchain which will actually have tools/bins
reuired to compile your code for target machine(E.g. Arm)

3.  you will also have to cross compile/build all the dependencies
required to build webkit.

4. here is the list of webkit-gtk port dependencies:
o Gtk+ (might be on X or DirectFb), it needs lot of
dependencies to be built and installed first, google search  it for
build details, packages, etc.
o gperf
o flex
o bison
o curl(libcurl)
o sqlite
o icu4c-4.0(libicu)
o libXslt

5. Build webkit
o Get the latest source
o ./autogen.sh && make && make install

Refer webkit.org/google (https://trac.webkit.org/wiki/BuildingGtk) for
more details.

-Arun



On 3/18/09, x yz  wrote:
>
> I do mips not arm, but after setup cross compiler tool chain the compilation
> is the same as on native X86 platform.
> for how to setup tool chain, you would got help from Internet.
> after you set up tool chain, you will need to compile extra libs. how to
> compile libs is also another issue.
> rgds
> joe
>
>
> --- On Tue, 3/17/09, arati  wrote:
>
>> From: arati 
>> Subject: Re: [webkit-dev] How to compile WebKit GTK+ port from ARM
>> processor?
>> To: "'Nilesh Patil'" 
>> Cc: webkit-dev@lists.webkit.org
>> Date: Tuesday, March 17, 2009, 1:11 PM
>> Hi Nilesh,
>> Thanks for your reply.
>> I have a cross compiler(Sourcery g++) installed on openSUSE
>> Linux.
>> Can you give me any direction for starting building WebKit
>> GTK+ port?
>> Do I need to do any configuration for this?
>>
>> Thanks
>>
>> -Original Message-
>> From: Nilesh Patil [mailto:vni...@gmail.com]
>> Sent: Thursday, March 12, 2009 19:04
>> To: arati
>> Cc: webkit-dev@lists.webkit.org
>> Subject: Re: [webkit-dev] How to compile WebKit GTK+ port
>> from ARM
>> processor?
>>
>> Hi
>>
>> Not really sure but If this is for linux then probably you
>> need to
>> have some cross platform compiler with environment like
>> scratchbox.
>>
>> On Wed, Mar 11, 2009 at 2:46 PM, arati
>>  wrote:
>> > Hi,
>> >
>> > Can anyone give me any pointer to compile WebKit GTK+
>> port for ARM
>> > processor?
>> >
>> > Can this be done using gcc ?
>> >
>> >
>> >
>> > Thanks
>> >
>> > ___
>> > webkit-dev mailing list
>> > webkit-dev@lists.webkit.org
>> >
>> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>> >
>> >
>>
>> ___
>> webkit-dev mailing list
>> webkit-dev@lists.webkit.org
>> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>
>
>
> ___
> webkit-dev mailing list
> webkit-dev@lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


[webkit-dev] Diabling XML,XPATH,SVG,and XSLT features of WebKit

2009-03-18 Thread jagadeesh k
Hi,
    How can i disable the XML,XPATH,SVG,and XSLT features of WebKit ?

Is their any macros for disabling(as read in one of the threads of WebKit-dev 
forum)the same ?

thanks and regards
jagadeesh


  ___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] want to port JIT to MIPS - why GtkLaunder needs gcc?

2009-03-18 Thread Jenson Lui
Hello,

  Do you mean the Programs/GtkLauncher? Since the GtkLauncher is a wrapper
script and will create the actual lt-GtkLauncher under
Programs/.libs/.  My way is to
just run the Programs/GtkLauncher in host (with your cross toolchain
in PATH) and let
the script create the lt-GtkLauncher. Just ignore the error and copy the
Programs/.libs/lt-GtkLauncher created to your target.
 Hope this helps.

Regards,
Jenson

2009/3/19 x yz :
>
> we cross-compiled webkit and when we run GtkLaunder it says /bin/...gcc not 
> found.
> thanks for help.
> rgds
> joe
>
>
>
> ___
> webkit-dev mailing list
> webkit-dev@lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


[webkit-dev] the variable of JavaScript function

2009-03-18 Thread zhenghe zhang
Hi
There is a javaScript function, as follow:
Function test()
{
Var a = 3;
Var b = 2;
Print(a+b);
}
There are two variables, and the identifiers will stored in the
identifierTable. When running the function, it will print "5".
When running the code "print(a+b)",it will use "3" to replace "a" and "2"
replace "b". I don't know how to do it through the c++ functions. I hope you
tell!
Thank you & best regards
zhang

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] Show the chinese text when I browser the www.google.cn

2009-03-18 Thread joed

I tried on latest version (WebKitGtk) and it works fine.


canquan.shencq wrote:
> 
> Hi everyone,
> 
> I am build webkit on linux , when I success to build and run the
> QtLauncher
> www.google.cn   , the Chinese text not show.  I
> wonder if anyone can answer my questions and/or provide the pointers for
> detail info.
> 
>  
> 
> Steven Shen
> 
> 2009-3-11
> 
> 
> ___
> webkit-dev mailing list
> webkit-dev@lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Show-the-chinese-text-when-I-browser-the-www.google.cn-tp22450814p22587992.html
Sent from the Webkit mailing list archive at Nabble.com.

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] x86-64 JIT

2009-03-18 Thread Mike Hommey
On Wed, Mar 18, 2009 at 01:07:51PM -0700, Gavin Barraclough wrote:
> On Mar 18, 2009, at 11:06 AM, Mike Hommey wrote:
>
>> An earlier call to JSC::JITStubs::cti_op_call_NotJSFunction works and a 
>> lot
>> of other stub functions are called before the crash, so it means most 
>> of
>> the JIT works, but it is failing in a subtle way.
>
> I'd suggest trying to produce a reduction of the test case your looking 
> at – JIT crashers can usually be reduced down to a very small test case.  
> You may then want to step though the JIT code to see where the bogus 
> value is coming from.  Adding calls to breakpoint() from  
> JIT::privateCompile and JIT::privateCompileMainPass can help with this, 
> inserting breakpoints into the JIT code that the debugger will then hit.

Apparently, any javascript containing page is enough to trigger the
crash. The default homepage, google.com does trigger it, and the much
simpler alert() testcase i found with a quick search crashes too.
http://liblearn.osu.edu/tutor/jscript.html

I'll give a try to breakpoints when I'll have the occasion.

Thanks,

Mike
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] x86-64 JIT

2009-03-18 Thread Gavin Barraclough

On Mar 18, 2009, at 11:06 AM, Mike Hommey wrote:

An earlier call to JSC::JITStubs::cti_op_call_NotJSFunction works  
and a lot
of other stub functions are called before the crash, so it means  
most of

the JIT works, but it is failing in a subtle way.


I'd suggest trying to produce a reduction of the test case your  
looking at – JIT crashers can usually be reduced down to a very small  
test case.  You may then want to step though the JIT code to see where  
the bogus value is coming from.  Adding calls to breakpoint() from  
JIT::privateCompile and JIT::privateCompileMainPass can help with  
this, inserting breakpoints into the JIT code that the debugger will  
then hit.


cheers,
G.

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] how I know WebKit version after check out?

2009-03-18 Thread x yz

The Changelog doesn't include all change history.
rgds
joe



  
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] how to do JIT benchmark

2009-03-18 Thread x yz

I used to see that calling convention change lead to certain % of efficiency 
improvement. in general how we can do a speed benchmark?
rgds
joe


  
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] how can i get the diff between two revisions of webkit

2009-03-18 Thread x yz

here is an example:
http://trac.webkit.org/diff?new_path=%2Ftrunk%2FJavaScriptCore%2Fassembler&old_path=%2Ftrunk%2FJavaScriptCore%2Fassembler&new_rev=41544&old_rev=41544

rgds
joe


--- On Tue, 3/10/09, Nitin  wrote:

> From: Nitin 
> Subject: Re: [webkit-dev] webkit-dev Digest, Vol 46, Issue 9
> To: webkit-dev@lists.webkit.org
> Date: Tuesday, March 10, 2009, 1:05 PM
> hello,
> I have some thing to ask :-
> how can i get the diff between two revisions of webkit.
> lets take an example of r36XXX and r40XXX.
> Is there any Logging system with webkit.org developers that
> they changed
> this and that , this could be very helpful for us.
> Thank you.
> 
> On Mon, Mar 9, 2009 at 7:34 PM,
>  wrote:
> 
> > Send webkit-dev mailing list submissions to
> >webkit-dev@lists.webkit.org
> >
> > To subscribe or unsubscribe via the World Wide Web,
> visit
> >   
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
> > or, via email, send a message with subject or body
> 'help' to
> >webkit-dev-requ...@lists.webkit.org
> >
> > You can reach the person managing the list at
> >webkit-dev-ow...@lists.webkit.org
> >
> > When replying, please edit your Subject line so it is
> more specific
> > than "Re: Contents of webkit-dev digest..."
> >
> >
> > Today's Topics:
> >
> >   1. Re: four perl files hard-code the path to gcc
> (David Kilzer)
> >   2. Where is the javascript engine code which build a
> callsyntax
> >  tree (ying lcs)
> >   3. Fwd:  run-safari fails in Window Debug build
> (First Half)
> >   4. Re: Where is the javascript engine code which
> build a call
> >  syntax tree (Darin Adler)
> >   5. Fwd: RSS support (RamaMohanReddy B)
> >   6. Please help:press tab button twice to go from
> browser
> >  status bar to browser window button in webkit
> (Ajay Gautam)
> >   7. Re: ISO C++ forbids casting between
> pointer-to-function and
> >  pointer-to-object (Paul Pedriana)
> >   8. Re: how to implement the flash block for webkit
> onlinux?
> >  (Julien Chaffraix)
> >   9. Re: Please help:press tab button twice to go
> from browser
> >  tool bar to browser window button in webkit (Ajay
> Gautam)
> >  10. Is it possible to get current source URL and line
> number from
> >  JavaScriptCore API? (Zhe Su)
> >
> >
> >
> --
> >
> > Message: 1
> > Date: Sun, 8 Mar 2009 08:23:38 -0700 (PDT)
> > From: David Kilzer 
> > Subject: Re: [webkit-dev] four perl files hard-code
> the path to gcc
> > To: Dennis Heuer 
> > Cc: webkit-dev@lists.webkit.org
> > Message-ID:
> <278539.28476...@web110809.mail.gq1.yahoo.com>
> > Content-Type: text/plain; charset="us-ascii"
> >
> > I agree that the path shouldn't be hard-coded, so
> I filed:
> >
> > Bug 24454: Path to perl should not be hard-coded
> > https://bugs.webkit.org/show_bug.cgi?id=24454
> >
> > Salvation lies within:
> >
> > Bug 392184 - Users should be allowed to delete their
> own account
> > https://bugzilla.mozilla.org/show_bug.cgi?id=392184
> >
> > Dave
> >
> >
> >
> >
> > 
> > From: Dennis Heuer 
> > To: webkit-dev@lists.webkit.org
> > Sent: Saturday, March 7, 2009 11:42:12 PM
> > Subject: [webkit-dev] four perl files hard-code the
> path to gcc
> >
> > hello
> >
> > first: i refuse to use bugzilla because it doesn't
> let me drop or at
> > least close my account at a later time. take this post
> or not.
> >
> > four of the perl files contend hard-coded paths to
> gcc. my gcc resides
> > in opt and is not detected (not even searched for).
> please update these
> > scripts with the general configure procedure. the
> scripts are:
> >
> > WebCore/css/make-css-file-arrays.pl
> > WebCore/dom/make_names.pl
> > WebCore/bindings/scripts/IDLParser.pm
> > WebCore/bindings/scripts/CodeGeneratorObjC.pm
> >
> > many thanks,
> > dennis heuer
> >
> > ___
> > webkit-dev mailing list
> > webkit-dev@lists.webkit.org
> >
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
> > -- next part --
> > An HTML attachment was scrubbed...
> > URL: <
> >
> http://lists.webkit.org/pipermail/webkit-dev/attachments/20090308/8fc7136f/attachment-0001.html
> > >
> >
> > --
> >
> > Message: 2
> > Date: Sun, 8 Mar 2009 18:09:18 -0700
> > From: ying lcs 
> > Subject: [webkit-dev] Where is the javascript engine
> code which build
> >a call  syntax tree
> > To: webkit-dev@lists.webkit.org
> > Message-ID:
> >   
> <568e62a40903081809g4da2d2ccl9a37238ce3448...@mail.gmail.com>
> > Content-Type: text/plain; charset=ISO-8859-1
> >
> > Hi,
> >
> > My understand of WebKit javascript engine is it builds
> a call-syntax
> > tree and gives it to the interrupter.
> >
> > http://webkit.org/projects/javascript/index.html
> >
> > Can you please tell me where is the code which parses
> the js file and
> > build a call-syntax tree?
> > And if Ja

Re: [webkit-dev] Use SquirrelFishExtreme Alone, Many Questions

2009-03-18 Thread David Kilzer

> [...] Is there good example code for:
> 
> (1) adding an object to the global objects that has it's own functions and 
> properties
> (2) getting call backs for getters, setters, etc, in objects


You might try the files in the JavaScriptCore/API/tests/ directory.  I haven't 
used the API before, so I'm not sure where any good examples would be.

Dave

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] How to compile WebKit GTK+ port from ARM processor?

2009-03-18 Thread x yz

I do mips not arm, but after setup cross compiler tool chain the compilation is 
the same as on native X86 platform. 
for how to setup tool chain, you would got help from Internet.
after you set up tool chain, you will need to compile extra libs. how to 
compile libs is also another issue.
rgds
joe


--- On Tue, 3/17/09, arati  wrote:

> From: arati 
> Subject: Re: [webkit-dev] How to compile WebKit GTK+ port from ARM processor?
> To: "'Nilesh Patil'" 
> Cc: webkit-dev@lists.webkit.org
> Date: Tuesday, March 17, 2009, 1:11 PM
> Hi Nilesh,
> Thanks for your reply.
> I have a cross compiler(Sourcery g++) installed on openSUSE
> Linux.
> Can you give me any direction for starting building WebKit
> GTK+ port?
> Do I need to do any configuration for this?
> 
> Thanks
> 
> -Original Message-
> From: Nilesh Patil [mailto:vni...@gmail.com] 
> Sent: Thursday, March 12, 2009 19:04
> To: arati
> Cc: webkit-dev@lists.webkit.org
> Subject: Re: [webkit-dev] How to compile WebKit GTK+ port
> from ARM
> processor?
> 
> Hi
> 
> Not really sure but If this is for linux then probably you
> need to
> have some cross platform compiler with environment like
> scratchbox.
> 
> On Wed, Mar 11, 2009 at 2:46 PM, arati
>  wrote:
> > Hi,
> >
> > Can anyone give me any pointer to compile WebKit GTK+
> port for ARM
> > processor?
> >
> > Can this be done using gcc ?
> >
> >
> >
> > Thanks
> >
> > ___
> > webkit-dev mailing list
> > webkit-dev@lists.webkit.org
> >
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
> >
> >
> 
> ___
> webkit-dev mailing list
> webkit-dev@lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


  
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] x86-64 JIT

2009-03-18 Thread Mike Hommey
On Wed, Mar 18, 2009 at 08:54:27AM +0100, Mike Hommey wrote:
> On Wed, Mar 18, 2009 at 08:02:06AM +0100, Mike Hommey wrote:
> > On Tue, Mar 17, 2009 at 05:09:10PM -0700, Maciej Stachowiak wrote:
> > >
> > > On Mar 17, 2009, at 1:51 PM, Mike Hommey wrote:
> > >
> > >> Hi,
> > >>
> > >> I was taking a quick look at the JIT code and also gave a shot at
> > >> forcing a build of the x86-64 code under Linux.
> > >>
> > >> The main problem right now is the following:
> > >> ../JavaScriptCore/jit/JITArithmetic.cpp:664: error: cast from  
> > >> 'JSC::Structure*' to 'unsigned int' loses precision
> > >> ../JavaScriptCore/jit/JITArithmetic.cpp:674: error: cast from  
> > >> 'JSC::Structure*' to 'unsigned int' loses precision
> > >> ../JavaScriptCore/jit/JITArithmetic.cpp:714: error: cast from  
> > >> 'JSC::Structure*' to 'unsigned int' loses precision
> > >> ../JavaScriptCore/jit/JITArithmetic.cpp:724: error: cast from  
> > >> 'JSC::Structure*' to 'unsigned int' loses precision
> > >>
> > >> Looking at the code, it seems really too much x86-centric, and
> > >> depending on how the x86-64 ABI is under OSX. I don't know how things
> > >> are going to evolve with Snow-Leopard, as I hear the kernel will  
> > >> finally
> > >> be 64-bits, but maybe the same issue will arise.
> > >
> > > The x86_64 ABI is standardized, so it should match between Linux and OS X 
> > > for the things we care about.
> > >
> > >> Anyways, I'd need guidance from some people with JIT knowledge to help
> > >> me get it work on Linux.
> > >
> > > Sounds like either ALTERNATE_JSIMMEDIATE or JIT_OPTIMIZE_ARITHMETIC is  
> > > not defined for you. It should be defined on x86_64. But it also sounds 
> > > like a bug that pointers are being cast to unsigned in this code path. 
> > > I'm not sure offhand how to fix it. But making sure those two 
> > > preprocessor symbols are set should help.
> > 
> > Oh thanks, that was it. I removed one PLATFORM(MAC) for ENABLE_JIT but
> > missed the one for ALTERNATE_JSIMMEDIATE. It built. I'll check if it
> > works (and will probably enable it in the debian packages, so that it is
> > mode widely tested)
> 
> FWIW, it crashes with a corrupted stack:
> (gdb) bt
> #0  0x7fd115002c00 in ?? ()
> #1  0x7fd11f4f6d26 in JSC::JITStubs::cti_op_call_NotJSFunction 
> (args=0x7fff27e13820) at ../JavaScriptCore/runtime/JSCell.h:206
> #2  0x7fd11fc55a3a in ?? ()
> #3  0x in ?? ()
> 
> I'll investigate later today.

It appears it's not exactly a corrupted stack, yet, it's sad the JIT
code doesn't do the right thing to allow gdb to trace back to earlier
frames.

Anyways, it really does crash in JSC::JITStubs::cti_op_call_NotJSFunction.
To be more precise, it crashes on the following line:
CallType callType = funcVal.getCallData(callData);
which is actually:
inline CallType JSValuePtr::getCallData(CallData& callData)
{
return JSImmediate::isImmediate(asValue()) ? CallTypeNone : 
asCell()->getCallData(callData);
}

It appears asCell() here is returning something wrong (not NULL).

An earlier call to JSC::JITStubs::cti_op_call_NotJSFunction works and a lot
of other stub functions are called before the crash, so it means most of
the JIT works, but it is failing in a subtle way.

Would someone with JIT knowledge have some hints to debug this crasher ?

Cheers,

Mike
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] Use SquirrelFishExtreme Alone, Many Questions

2009-03-18 Thread Brian Barnes
Thank you David, a couple more quick questions and I should be on my 
way.  First off, the API is very similar to SpiderMonkey's, so that's a 
good thing.  Second, following the links I found some example code for 
contexts, evaluating, rooting (very important in my case) and calling 
functions in scripts.  Is there good example code for:


(1) adding an object to the global objects that has it's own functions 
and properties

(2) getting call backs for getters, setters, etc, in objects

This looks doable.  I'm still not sure about the win32 version, though.  
I'm assuming I might want to build the javascriptcore myself to shield 
myself from changing versions of Safari.


[>] Brian
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] want to port JIT to MIPS - why GtkLaunder needs gcc?

2009-03-18 Thread x yz

we cross-compiled webkit and when we run GtkLaunder it says /bin/...gcc not 
found.
thanks for help.
rgds
joe


  
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] Use SquirrelFishExtreme Alone, Many Questions

2009-03-18 Thread David Kilzer

On Wednesday, March 18, 2009 9:02:04 AM, Brian Barnes wrote:

> 1) Can I compile SFE alone (without webkit)

Yes.  Squirrelfish Extreme ("SFX") is an implementation "detail" (albeit a very 
significant detail :) of the JavaScriptCore framework.

> 2) Are there XCode and MVC projects (for SPE alone), and is the XCode
> project a  framework?

Yes, it's JavaScriptCore.  Yes it's also an Xcode project.

> 3) Where are the SPE API docs online?

http://developer.apple.com/documentation/Carbon/Reference/WebKit_JavaScriptCore_Ref/index.html

> 4) Is there a C interface (obviously I can't find the docs :) )


Yes, it's a C interface.

Dave

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] Use SquirrelFishExtreme Alone, Many Questions

2009-03-18 Thread Ariya Hidayat

> I'm working on v3 of my 3D engine dim3, it's a complete rewrite in a
> number of areas (for instance going to GLSL, new physics, etc).  The
> last thing I'm looking at is the javascript engine that runs the
> scripting.  Right now I'm using SpiderMonkey 1.7, and I'm investigating
> moving away from that for a couple reasons.  So, I googled, looked at
> the wiki, and can't seem to find the answers for these, though they seem
> like obvious things so I might have just missed it.

You can build JSC stand-alone (and thus get the SFX) without the rest of 
WebCore.

As example, if you build the Qt port (QtWebKit), see 
http://trac.webkit.org/wiki/BuildingQtOnLinux on how to do that, you will get 
the JS interpreter at WebKitBuild/Release/JavaScriptCore/jsc.



-- 
Ariya Hidayat, Software Engineer
Qt Software, Nokia Devices R&D
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


[webkit-dev] Use SquirrelFishExtreme Alone, Many Questions

2009-03-18 Thread Brian Barnes
I'm working on v3 of my 3D engine dim3, it's a complete rewrite in a 
number of areas (for instance going to GLSL, new physics, etc).  The 
last thing I'm looking at is the javascript engine that runs the 
scripting.  Right now I'm using SpiderMonkey 1.7, and I'm investigating 
moving away from that for a couple reasons.  So, I googled, looked at 
the wiki, and can't seem to find the answers for these, though they seem 
like obvious things so I might have just missed it.


1) Can I compile SFE alone (without webkit)
2) Are there XCode and MVC projects (for SPE alone), and is the XCode 
project a framework?

3) Where are the SPE API docs online?
4) Is there a C interface (obviously I can't find the docs :) )

Pointing me to the API docs would be an extreme help right off the bat, 
as it would tell me how ugly the switch over would be.  Sorry for the 
beginner questions, but I'm trying to evaluate and can't seem to find 
the information I need.


[>] Brian

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


[webkit-dev] Fwd: [webkit-changes] the variable of JavaScript function

2009-03-18 Thread Adam Roben
webkit-changes is only used for commit notifications from Subversion.  
Forwarding this to the appropriate mailing list.


Begin forwarded message:


From: zhenghe zhang 
Date: March 18, 2009 6:39:46 AM EDT
To: webkit-chan...@lists.webkit.org
Subject: [webkit-changes] the variable of JavaScript function

Hi
There is a javaScript function, as follow:
Function test()
{
Var a = 3;
Var b = 2;
Print(a+b);
}
There are two variables, and the identifiers will stored in the
identifierTable. When running the function, it will print "5".
When running the code "print(a+b)",it will use "3" to replace "a"  
and "2"
replace "b". I don't know how to do it through the c++ functions. I  
hope you

tell!
Thank you & best regards
zhang

___
webkit-changes mailing list
webkit-chan...@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes


___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] about WebCore\bindings\scripts documents

2009-03-18 Thread David Kilzer
The *.idl files are a custom Interface Definition Language for generating 
source code for DOM bindings.  On the Apple Mac port, there are (generally 
speaking) two such bindings built for each *.idl file:

- JavaScript bindings in C++ created by CodeGeneratorJS.pm; these files are the 
glue between JavaScriptCore and the C++ implementation files in WebCore.  They 
make the HTML DOM work in the web browser.

- Objective-C DOM bindings created by CodeGeneratorObjC.pm; these files provide 
an interface nearly identical to the HTML DOM interface in JavaScript, except 
in the Objective-C language.

Dave





From: 张正和 
To: webkit-dev@lists.webkit.org
Sent: Wednesday, March 18, 2009 3:13:00 AM
Subject: [webkit-dev] about WebCore\bindings\scripts documents


Hi all
In the webcore\bindings,there are some documents, but they are not c++ 
documents and I don't kown what they are. And what language they use. Now I 
want to konw their function, I hope you tell me!
thank you
zzh 

好玩贺卡等你发,邮箱贺卡全新上线!___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] about WebCore\bindings\scripts documents

2009-03-18 Thread Nilesh Patil
Hi

which documents are u talking about ?

Thanks & Regards
Niilesh

2009/3/18 张正和 :
> Hi all
> In the webcore\bindings,there are some documents, but they are not c++
> documents and I don't kown what they are. And what language they use. Now I
> want to konw their function, I hope you tell me!
> thank you
> zzh
> 
> 好玩贺卡等你发,邮箱贺卡全新上线!
> ___
> webkit-dev mailing list
> webkit-dev@lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>
>
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


[webkit-dev] Building WebKit on OMAP 3

2009-03-18 Thread jagadeesh k
hi,
  I want to know the build instructions of WebKitGTK+ port on OMAP 3 series 
board using Embedded Linux OS.

Also i want to know how to configure WebKit, so that it builds on OMAP 
3(options to be given in a command line of configure) ?



Thanks and Regards
Jagadeesh


  ___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


[webkit-dev] about WebCore\bindings\scripts documents

2009-03-18 Thread 张正和
Hi all
In the webcore\bindings,there are some documents, but they are not c++ 
documents and I don't kown what they are. And what language they use. Now I 
want to konw their function, I hope you tell me!
thank you
zzh


  ___ 
  好玩贺卡等你发,邮箱贺卡全新上线! 
http://card.mail.cn.yahoo.com/___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] WebKit does not refresh cached resource

2009-03-18 Thread Alexey Proskuryakov


18.03.2009, в 9:11, halaiwa написал(а):

What is the correct way to work with the WebKit cache, how to force  
it to

load the resource from server based on "Last-Modified" header?



It should work in accordance with . Does the response specify an age for it to be considered  
stale?


Do you see the same problems with Safari? CFNetwork DLL is not  
redistributable, so using it with other clients is not supported.


- WBR, Alexey Proskuryakov


___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] x86-64 JIT

2009-03-18 Thread Mike Hommey
On Wed, Mar 18, 2009 at 08:02:06AM +0100, Mike Hommey wrote:
> On Tue, Mar 17, 2009 at 05:09:10PM -0700, Maciej Stachowiak wrote:
> >
> > On Mar 17, 2009, at 1:51 PM, Mike Hommey wrote:
> >
> >> Hi,
> >>
> >> I was taking a quick look at the JIT code and also gave a shot at
> >> forcing a build of the x86-64 code under Linux.
> >>
> >> The main problem right now is the following:
> >> ../JavaScriptCore/jit/JITArithmetic.cpp:664: error: cast from  
> >> 'JSC::Structure*' to 'unsigned int' loses precision
> >> ../JavaScriptCore/jit/JITArithmetic.cpp:674: error: cast from  
> >> 'JSC::Structure*' to 'unsigned int' loses precision
> >> ../JavaScriptCore/jit/JITArithmetic.cpp:714: error: cast from  
> >> 'JSC::Structure*' to 'unsigned int' loses precision
> >> ../JavaScriptCore/jit/JITArithmetic.cpp:724: error: cast from  
> >> 'JSC::Structure*' to 'unsigned int' loses precision
> >>
> >> Looking at the code, it seems really too much x86-centric, and
> >> depending on how the x86-64 ABI is under OSX. I don't know how things
> >> are going to evolve with Snow-Leopard, as I hear the kernel will  
> >> finally
> >> be 64-bits, but maybe the same issue will arise.
> >
> > The x86_64 ABI is standardized, so it should match between Linux and OS X 
> > for the things we care about.
> >
> >> Anyways, I'd need guidance from some people with JIT knowledge to help
> >> me get it work on Linux.
> >
> > Sounds like either ALTERNATE_JSIMMEDIATE or JIT_OPTIMIZE_ARITHMETIC is  
> > not defined for you. It should be defined on x86_64. But it also sounds 
> > like a bug that pointers are being cast to unsigned in this code path. 
> > I'm not sure offhand how to fix it. But making sure those two 
> > preprocessor symbols are set should help.
> 
> Oh thanks, that was it. I removed one PLATFORM(MAC) for ENABLE_JIT but
> missed the one for ALTERNATE_JSIMMEDIATE. It built. I'll check if it
> works (and will probably enable it in the debian packages, so that it is
> mode widely tested)

FWIW, it crashes with a corrupted stack:
(gdb) bt
#0  0x7fd115002c00 in ?? ()
#1  0x7fd11f4f6d26 in JSC::JITStubs::cti_op_call_NotJSFunction 
(args=0x7fff27e13820) at ../JavaScriptCore/runtime/JSCell.h:206
#2  0x7fd11fc55a3a in ?? ()
#3  0x in ?? ()

I'll investigate later today.

Mike
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] x86-64 JIT

2009-03-18 Thread Mike Hommey
On Tue, Mar 17, 2009 at 05:09:10PM -0700, Maciej Stachowiak wrote:
>
> On Mar 17, 2009, at 1:51 PM, Mike Hommey wrote:
>
>> Hi,
>>
>> I was taking a quick look at the JIT code and also gave a shot at
>> forcing a build of the x86-64 code under Linux.
>>
>> The main problem right now is the following:
>> ../JavaScriptCore/jit/JITArithmetic.cpp:664: error: cast from  
>> 'JSC::Structure*' to 'unsigned int' loses precision
>> ../JavaScriptCore/jit/JITArithmetic.cpp:674: error: cast from  
>> 'JSC::Structure*' to 'unsigned int' loses precision
>> ../JavaScriptCore/jit/JITArithmetic.cpp:714: error: cast from  
>> 'JSC::Structure*' to 'unsigned int' loses precision
>> ../JavaScriptCore/jit/JITArithmetic.cpp:724: error: cast from  
>> 'JSC::Structure*' to 'unsigned int' loses precision
>>
>> Looking at the code, it seems really too much x86-centric, and
>> depending on how the x86-64 ABI is under OSX. I don't know how things
>> are going to evolve with Snow-Leopard, as I hear the kernel will  
>> finally
>> be 64-bits, but maybe the same issue will arise.
>
> The x86_64 ABI is standardized, so it should match between Linux and OS X 
> for the things we care about.
>
>> Anyways, I'd need guidance from some people with JIT knowledge to help
>> me get it work on Linux.
>
> Sounds like either ALTERNATE_JSIMMEDIATE or JIT_OPTIMIZE_ARITHMETIC is  
> not defined for you. It should be defined on x86_64. But it also sounds 
> like a bug that pointers are being cast to unsigned in this code path. 
> I'm not sure offhand how to fix it. But making sure those two 
> preprocessor symbols are set should help.

Oh thanks, that was it. I removed one PLATFORM(MAC) for ENABLE_JIT but
missed the one for ALTERNATE_JSIMMEDIATE. It built. I'll check if it
works (and will probably enable it in the debian packages, so that it is
mode widely tested)

Mike
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev