Re: [webkit-dev] Possible bug in elementFromPoint-relative-to-viewport LayoutTest or not?

2010-01-06 Thread Darin Adler
On Jan 6, 2010, at 3:13 PM, Afonso Costa wrote:

> Is there any thing wrong or not?

I think the zoomOrNot argument and if statement are both unnecessary now that 
bug 30034 is fixed, but the test is otherwise OK.

-- Darin

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


Re: [webkit-dev] Custom Baseline?

2010-01-06 Thread Darin Adler
On Jan 6, 2010, at 3:16 PM, Alex Milowski wrote:

> Can I override the default calculation of the baseline somehow?

By overriding the baselinePosition function, perhaps.

-- Darin

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


Re: [webkit-dev] webkit html parser api?

2010-01-06 Thread Adam Treat
Hi,

This list is not the correct place for this kind of question.  Rather, you 
should use the webkit-help mailing list: 
http://lists.webkit.org/mailman/listinfo/webkit-help

Thanks!
Adam

On Wednesday 06 January 2010 06:21:34 pm Tomas Ramirez wrote:
> Hi, I am wondering if I can use a subset of webkit as an html parser
> framework.  Before I become entrenched in webkit development, could you let
> me know if this is even possible?  I know that webkit is a web browser
> engine, so I suspect that the parsing might be hidden.
>
> Thanks,
> - Tomas
> ___
> 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] webkit html parser api?

2010-01-06 Thread Tomas Ramirez
Hi, I am wondering if I can use a subset of webkit as an html parser 
framework.  Before I become entrenched in webkit development, could you let me 
know if this is even possible?  I know that webkit is a web browser engine, so 
I suspect that the parsing might be hidden.

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


[webkit-dev] Custom Baseline?

2010-01-06 Thread Alex Milowski
Can I override the default calculation of the baseline somehow?  I've got
render object that is an extension of RenderBlock with a display value
of 'inline-block'.  The baseline ends up being the bottom of the box (as
expected).  I want to set it to a custom position based on the contents.

Basically, I want to calculate the "mathematical baseline" for each of
my render objects for MathML.

-- 
--Alex Milowski
"The excellence of grammar as a guide is proportional to the paucity of the
inflexions, i.e. to the degree of analysis effected by the language
considered."

Bertrand Russell in a footnote of Principles of Mathematics
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


[webkit-dev] Possible bug in elementFromPoint-relative-to-viewport LayoutTest or not?

2010-01-06 Thread Afonso Costa
Hi guys,

After work some hours in the LayoutTests, I've noticed something weird
in LayoutTests/fast/dom/elementFromPoint-relative-to-viewport.html.
Please, take a look at the code below:

if (zoomOrNot == "zoom") {
shouldBe(scrolledRightBox, "'3'");
shouldBe(scrolledDownAndRightBox, "'8'");
} else {
shouldBe(scrolledRightBox, "'3'");
shouldBe(scrolledDownAndRightBox, "'8'");
}
.

It seems that the code is the same for the 'if' statement and the 'else'
also. Is there any thing wrong or not?

That code (with "zoom" parameter) is called after the
eventSender.zoomPageOut(). So, I wonder if those values in the 'if'
statement should be those ones (3 and 8), because the code is called
after the zoom function.

 Thanks in advance.

-- 
Afonso R. Costa Jr.
openBossa Labs 
Instituto Nokia de Tecnologia - INdT

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


[webkit-dev] Blacklisting some sqlite functions

2010-01-06 Thread Dumitru Daniliuc
while doing a security review of chromium's implementation of HTML5 DBs,
chris noted that some sqlite functions are potential security risks. thus,
we would like to blacklist them (or rather, have a list of whitelisted
functions). currently, WebCore's sqlite authorizer allows all functions, but
has a FIXME comment that wonders what the right thing to do is
(WebCore/storage/DatabaseAuthorizer.cpp:281).

here are the functions we'd like to whitelist:
http://www.sqlite.org/lang_corefunc.html: all of them, except
load_extension(), random() and randomblob() (once we fix some layout tests
that currently use randomblob()).
http://www.sqlite.org/lang_datefunc.html: all of them
http://www.sqlite.org/lang_aggfunc.html: all of them

in addition to these standard functions, we'd like to whitelist some
functions from a few extensions chromium uses:
full text search (fts2.c): whitelist snippet(), offsets(), optimize(), but
not fts2_tokenizer().
unicode data (icu.c): whitelist regexp(), lower(), upper(), like(), but not
icu_load_collation().

any objection?

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


Re: [webkit-dev] SnowLeopard Intel Leaks is out of space

2010-01-06 Thread Eric Seidel
Thank you!

On Wed, Jan 6, 2010 at 2:37 PM, Simon Fraser  wrote:
> He's around, and he just fixed this.
>
> Simon
>
> On Jan 6, 2010, at 2:22 PM, Eric Seidel wrote:
>
>> Not sure who I contact, I think Mark is on vacation.
>>
>> http://build.webkit.org/builders/SnowLeopard%20Intel%20Leaks
>>
>> http://build.webkit.org/builders/SnowLeopard%20Intel%20Leaks/builds/3237/steps/compile-webkit/logs/stdio
>
>
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] SnowLeopard Intel Leaks is out of space

2010-01-06 Thread Simon Fraser
He's around, and he just fixed this.

Simon

On Jan 6, 2010, at 2:22 PM, Eric Seidel wrote:

> Not sure who I contact, I think Mark is on vacation.
> 
> http://build.webkit.org/builders/SnowLeopard%20Intel%20Leaks
> 
> http://build.webkit.org/builders/SnowLeopard%20Intel%20Leaks/builds/3237/steps/compile-webkit/logs/stdio

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


[webkit-dev] SnowLeopard Intel Leaks is out of space

2010-01-06 Thread Eric Seidel
Not sure who I contact, I think Mark is on vacation.

http://build.webkit.org/builders/SnowLeopard%20Intel%20Leaks

http://build.webkit.org/builders/SnowLeopard%20Intel%20Leaks/builds/3237/steps/compile-webkit/logs/stdio
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] ARM JIT for WinCE

2010-01-06 Thread Patrick Roland Gansterer
Hi Gabor,

Thanks for your prompt reply.

> Make sure your assembler does not break ctiVMThrowTrampoline
> and ctiOpThrowNotCaught functions. This approach requires that the
> ctiVMThrowTrampoline fall-backs to ctiOpThrowNotCaught
> after 'bl cti_vm_throw' call. Or you can simply copy the body of
> ctiOpThrowNotCaught into ctiVMThrowTrampoline after the
> call.
I've copied it, but I think it's unnecessary (see disassembly)

> Did you do anything with DEFINE_STUB_FUNCTION macro?
I've done it like for the RVCT compiler. (e.g. see cti_op_end in disassembly)

When I run "jsc.exe tests\mozilla\ecma_2\shell.js" it crashes with the 
following callstack:
0x
jsc.EXE!JSC::JSCell::inherits(JSC::ClassInfo* info = 0x00189818) Line: 335, 
Byte Offsets: 0x2c
jsc.EXE!JSC::JSValue::inherits(JSC::ClassInfo* classInfo = 0x00189818) Line: 
345, Byte Offsets: 0x40
jsc.EXE!JSC::dateProtoFuncGetTimezoneOffset(JSC::ExecState* exec = 0x00601b60, 
JSC::JSObject* __formal = 0x00601b40, JSC::JSValue thisValue = {...}, 
JSC::ArgList& __formal = {...}) Line: 764, Byte Offsets: 0x1c
0x003e01d4

Is there a better javascript file to start with? When I enter a simple "1+2+3" 
into the interactive jsc.exe it prints the correct result.

Here are some parts of the disassembly:

// Execute the code!
inline JSValue execute(RegisterFile* registerFile, CallFrame* 
callFrame, JSGlobalData* globalData, JSValue* exception)
{
000A7868  mov r12, sp 
000A786C  stmdb   sp!, {r0 - r3} 
000A7870  stmdb   sp!, {r12, lr} 
000A7874  sub sp, sp, #0x20 
return 
JSValue::decode(ctiTrampoline(m_ref.m_code.executableAddress(), registerFile, 
callFrame, exception, Profiler::enabledProfilerReference(), globalData));
000A7878  bl  |JSC::Profiler::enabledProfilerReference ( 1b2e0h )| 
000A787C  str r0, [sp, #0x14] 
000A7880  ldr r0, this 
000A7884  bl  |WTF::RefPtr::operator-> ( d2e3ch )| 
000A7888  str r0, [sp, #0x18] 
000A788C  ldr r3, globalData 
000A7890  str r3, [sp, #4] 
000A7894  ldr r3, [sp, #0x14] 
000A7898  str r3, [sp] 
000A789C  ldr r3, exception 
000A78A0  ldr r2, callFrame 
000A78A4  ldr r1, registerFile 
000A78A8  ldr r0, [sp, #0x18] 
000A78AC  bl  0014A000 
000A78B0  str r0, [sp, #0x1C] 
000A78B4  ldr r1, [sp, #0x1C] 
000A78B8  ldr r0, [sp, #0x2C] 
000A78BC  bl  |JSC::JSValue::decode ( 1b94ch )| 
000A78C0  ldr r3, [sp, #0x2C] 
000A78C4  str r3, [sp, #0x10] 
}
000A78C8  ldr r0, [sp, #0x10] 
000A78CC  add sp, sp, #0x20 
000A78D0  ldmia   sp, {sp, pc} 



ctiTrampoline:
0014A000  stmdb   sp!, {r1 - r3} 
0014A004  stmdb   sp!, {r4 - r8, lr} 
0014A008  sub sp, sp, #0x24 
0014A00C  mov r4, r2 
0014A010  mov r5, #2, 24 
0014A014  mov lr, pc 
0014A018  bx  r0// r0 = 0x003e0270
0014A01C  add sp, sp, #0x24 
0014A020  ldmia   sp!, {r4 - r8, lr} 
0014A024  add sp, sp, #0xC 
0014A028  bx  lr   
ctiVMThrowTrampoline:
0014A02C  mov r0, sp 
0014A030  bl  0014A6D4 
0014A034  add sp, sp, #0x24 
0014A038  ldmia   sp!, {r4 - r8, lr} 
0014A03C  add sp, sp, #0xC 
0014A040  bx  lr   
ctiOpThrowNotCaught:
0014A044  add sp, sp, #0x24 
0014A048  ldmia   sp!, {r4 - r8, lr} 
0014A04C  add sp, sp, #0xC 
0014A050  bx  lr   
cti_op_convert_this:
0014A054  str lr, [sp, #0x20] 
0014A058  bl  |JITStubThunked_op_convert_this ( ae718h )| 
0014A05C  ldr lr, [sp, #0x20] 
0014A060  bx  lr   
cti_op_end:
0014A064  str lr, [sp, #0x20] 
0014A068  bl  |JITStubThunked_op_end ( ae878h )| 
0014A06C  ldr lr, [sp, #0x20] 
0014A070  bx  lr   



003E017C  mov pc, r0 
003E0180  mov r0, lr 
003E0184  str r0, [r4, #-0x14] 
003E0188  ldr r1, [r4, #-0x18] 
003E018C  ldr r1, [r1, #-0x1C] 
003E0190  str r1, [r4, #-0x1C] 
003E0194  ldr r0, [r4, #-0xC] 
003E0198  subssp, sp, #8 
003E019C  subsr0, r0, #1 
003E01A0  str r0, [sp, #4] 
003E01A4  mov r1, r4 
003E01A8  subsr1, r1, #0x20 
003E01AC  mov r3, #4 
003E01B0  mulsr0, r3, r0 
003E01B4  subsr1, r1, r0 
003E01B8  str r1, [sp] 
003E01BC  ldr r2, [r1, #-4] 
003E01C0  ldr r1, [r4, #-8] 
003E01C4  mov r0, r4 
003E01C8  mov r3, sp 
003E01CC  mov lr, pc 
003E01D0  ldr pc, [r1, #0x1C] 
003E01D4  addssp, sp, #8 
003E01D8  ldr r3, [pc, #0x7C] 
003E01DC  ldr r2, [r3] 
003E01E0  bicsr3, r2, #0 
003E01E4  bne 003E01F8

Re: [webkit-dev] Better to store a local variable or call a method repeatedly?

2010-01-06 Thread Darin Adler
On Jan 6, 2010, at 10:46 AM, Chris Fleizach wrote:

> I see a lot of code that calls the same function a number of times in the 
> same scope.
> 
> Is it better to store that result in a local variable, or is it better to 
> repeatedly call a method...
> 
> in this example, node() is called two times
> 
>return !m_renderer->node() || !m_renderer->node()->isContentEditable();
> 
> Would it better to write it as 
> 
>   Node* node = m_renderer->node();
>   return !node || !node->isContentEditable();

Some advantages to using a local variable:

1) If the function is a non-trivial function, this can be faster.

2) Name of local variable can be helpful for additional documentation.

Some advantages to calling a function twice:

1) In cases where the function is a trivial inline function, this can be 
slightly faster. Saves allocating a slot on the stack to store the variable.

2) No need to name the local variable. Can avoid confusion by not having a 
name.

3) Eliminates the danger the local variable could be holding a stale 
pointer or other stale value.

I lean heavily in the “use a local variable” direction almost all the time, but 
Maciej has pushed me in the other direction in the past.

-- Darin

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


Re: [webkit-dev] Better to store a local variable or call a method repeatedly?

2010-01-06 Thread Eric Seidel
If those are the only two times, then it is "fewer lines of code" to
not use a local variable.  In many cases it makes sense (to me) to use
a local variable, but not in the example you provided.

-eric

On Wed, Jan 6, 2010 at 10:46 AM, Chris Fleizach  wrote:
> I see a lot of code that calls the same function a number of times in the 
> same scope.
>
> Is it better to store that result in a local variable, or is it better to 
> repeatedly call a method...
>
> in this example, node() is called two times
>
>    return !m_renderer->node() || !m_renderer->node()->isContentEditable();
>
> Would it better to write it as
>
>        Node* node = m_renderer->node();
>        return !node || !node->isContentEditable();
> ___
> 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] Better to store a local variable or call a method repeatedly?

2010-01-06 Thread Chris Fleizach
I see a lot of code that calls the same function a number of times in the same 
scope.

Is it better to store that result in a local variable, or is it better to 
repeatedly call a method...

in this example, node() is called two times

return !m_renderer->node() || !m_renderer->node()->isContentEditable();

Would it better to write it as 

Node* node = m_renderer->node();
return !node || !node->isContentEditable();
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] build system for wince port

2010-01-06 Thread Patrick Roland Gansterer
Adam Roben:
> That sounds like a maintenance headache. Any new files will have to be
>  added to both .vcproj files.
Of course!

> The Apple and Cairo/libCURL ports of WebKit are already sharing .vcproj
>  files. Can WinCE share these files, too?
It is possible, but i'm not sure if it's the best solution: There will 
uncountable ExcludeFromBuild in the vcproj files and if we will add additional 
platforms i will grow further. If you add the "STANDARDSDK_500 (ARMV4I)" 
platform to the solution it might throw a warning if the SDK isn't installed.

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


Re: [webkit-dev] build system for wince port

2010-01-06 Thread Adam Roben

On Jan 6, 2010, at 5:28 AM, Patrick Roland Gansterer wrote:

> David Kilzer:
>> On Thu, December 24, 2009 at 1:51:43 AM, Patrick Roland Gansterer wrote:
>>> On Thu, Dec 24, 2009 at 02:53:18, Adam Barth:
 I'm worried that the port will rot without an active maintainer, no
 matter which build system you choose.
>>> 
>>> If i choose my preferred solution, there will be many changes in the
>>> current sln/vcproj/vsprops files. Who is maintaining this files at the
>>> moment? I'd like to hear his/her opinion on this before.
>> 
>> You can use svn/git log to see who commits changes to these files.  I know
>> Apple uses them for their Windows build, but we're on break until Jan 4,
>> so please don't expect a reply until after that date.  (I don't work on
>> the Windows port much, so I don't have an opinion about your proposal.)
> Break is over and I didn't find a better working buildsystem for WincE than 
> vcproj in the meantime. :-/
> 
> In the current trunk the vcproj files all use the Win32 defines. Because 
> Win32 
> an WinCE have some parts in common i'd like to split the current vsprop 
> files. 

That sounds like a good idea.

> To keep the vcproj files readable i prefer to add a second vcproj file for 
> e.g. JavaScriptCore and a solution file with this new vcproj file.

That sounds like a maintenance headache. Any new files will have to be added to 
both .vcproj files.

The Apple and Cairo/libCURL ports of WebKit are already sharing .vcproj files. 
Can WinCE share these files, too?

-Adam

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


Re: [webkit-dev] About debug of webkit

2010-01-06 Thread Adam Roben
These questions should be posted to webkit-help, not webkit-dev. See 
 for a description of WebKit's various mailing 
lists.

-Adam

On Jan 6, 2010, at 9:42 AM, chang@nokia.com wrote:

> I just want to confirm that I got exactly the same problem and have no clue 
> how to resolve it. The Chinese below basically says “Failed to initialize 
> application (0xc0150002). Click ok to terminate.”
> Thanks!
>  
> Chang
>  
> From: webkit-dev-boun...@lists.webkit.org 
> [mailto:webkit-dev-boun...@lists.webkit.org] On Behalf Of ext changjiang fu 
> fcjjcf
> Sent: Wednesday, January 06, 2010 4:55 AM
> To: webkit-dev@lists.webkit.org
> Subject: [webkit-dev] About debug of webkit
>  
> Hi, I want to get some help from you about running webkit.
>  
> I want to build and run webkit on windows. Now I have successfully builded 
> webkit src code by following the step of www.webkit.org. Now all the .exe and 
> .dll exist in the output directory.
> For I want to run it on windows, so I
> (1)  Download a safari(4.0.4(531.21.10), maybe the latest) for windows and 
> install it use default configuration.  
> (2)  Copy all the dll from C:\Program Files\Common Files\Apple\Apple 
> Application Support to my webkit output directory(E:\webkit\WebKitBuild\bin).
> (3)  Run WinLauncher_debug.exe.
>  
> The step (3) failed and an error message box show 
> "应用程序初始化(0xc0150002)失败。请单击"确定",终止应用程序".,(I am from China, sorry for use 
> chinese)
> So I am confused of this error.
>  
> If I follow the step of the www.webkit.org to first execute 'run-safari 
> --debug', after execution, the proc ess Safari.exe is not exist in the 
> windows task manager, I can not find it, So I can not do the next step to 
> attach the webkit to the Safari.exe.
>  
> I really wish you can help me to solve this issue cause I spend much time to 
> build this huge project and now it is actuall builded successfully, I am 
> looking forward to run webkit and debug with it.
> Thanks a lot for your help!
>  
> ___
> 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] About debug of webkit

2010-01-06 Thread Chang.Shu
I just want to confirm that I got exactly the same problem and have no clue how 
to resolve it. The Chinese below basically says “Failed to initialize 
application (0xc0150002). Click ok to terminate.”
Thanks!

Chang

From: webkit-dev-boun...@lists.webkit.org 
[mailto:webkit-dev-boun...@lists.webkit.org] On Behalf Of ext changjiang fu 
fcjjcf
Sent: Wednesday, January 06, 2010 4:55 AM
To: webkit-dev@lists.webkit.org
Subject: [webkit-dev] About debug of webkit

Hi, I want to get some help from you about running webkit.

I want to build and run webkit on windows. Now I have successfully builded 
webkit src code by following the step of 
www.webkit.org. Now all the .exe and .dll exist in the 
output directory.
For I want to run it on windows, so I
(1)  Download a safari(4.0.4(531.21.10), maybe the latest) for windows and 
install it use default configuration.
(2)  Copy all the dll from C:\Program Files\Common Files\Apple\Apple 
Application Support to my webkit output directory(E:\webkit\WebKitBuild\bin).
(3)  Run WinLauncher_debug.exe.

The step (3) failed and an error message box show 
"应用程序初始化(0xc0150002)失败。请单击"确定",终止应用程序".,(I am from China, sorry for use chinese)
So I am confused of this error.

If I follow the step of the www.webkit.org to first 
execute 'run-safari --debug', after execution, the proc ess Safari.exe is not 
exist in the windows task manager, I can not find it, So I can not do the next 
step to attach the webkit to the Safari.exe.

I really wish you can help me to solve this issue cause I spend much time to 
build this huge project and now it is actuall builded successfully, I am 
looking forward to run webkit and debug with it.
Thanks a lot for your help!

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


Re: [webkit-dev] ARM JIT for WinCE

2010-01-06 Thread Gabor Loki
Hi Patrick,

Patrick Roland Gansterer wrote:
> I'm trying to enable the JIT for CPU(ARM_TRADITIONAL) && OS(WINCE).
> MSVC supports inline assembler only for X86, so i had to provide a separate 
> asm file (i copied the code from the GCC #ifdef with !JSVALUE32_64):
> 
> ctiVMThrowTrampoline proc
> mov r0, sp
> bl cti_vm_throw
> endp

Make sure your assembler does not break ctiVMThrowTrampoline
and ctiOpThrowNotCaught functions. This approach requires that the
ctiVMThrowTrampoline fall-backs to ctiOpThrowNotCaught
after 'bl cti_vm_throw' call. Or you can simply copy the body of
ctiOpThrowNotCaught into ctiVMThrowTrampoline after the
call.

> ctiOpThrowNotCaught proc
> add sp, sp, #36
> ldmia sp!, {r4-r8, lr}
> add sp, sp, #12
> mov pc, lr
> endp

Did you do anything with DEFINE_STUB_FUNCTION macro?

You can check how should it be handled for ARM_TRADITIONAL.
See after the following line in JITStubs.cpp:
#elif CPU(ARM_TRADITIONAL) && COMPILER(GCC)

I guess this will not work for you, so try to examine
the following bugzilla entry.
https://bugs.webkit.org/show_bug.cgi?id=30552
The attached patch shows how we would like to interpret
DEFINE_STUB_FUNCTION for RVCT compiler:


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


[webkit-dev] ARM JIT for WinCE

2010-01-06 Thread Patrick Roland Gansterer
Hi,

I'm trying to enable the JIT for CPU(ARM_TRADITIONAL) && OS(WINCE).
It already passes the RegExp-Tests with ENABLE_YARR_JIT. If i set all 
ENABLE_JIT_OPTIMIZE_* to 0 it won't compile.
MSVC supports inline assembler only for X86, so i had to provide a separate 
asm file (i copied the code from the GCC #ifdef with !JSVALUE32_64):
ctiTrampoline proc
stmdb sp!, {r1-r3}
stmdb sp!, {r4-r8, lr}
sub sp, sp, #36
mov r4, r2
mov r5, #512
mov lr, pc
mov pc, r0
add sp, sp, #36
ldmia sp!, {r4-r8, lr}
add sp, sp, #12
mov pc, lr
endp

ctiVMThrowTrampoline proc
mov r0, sp
bl cti_vm_throw
endp

ctiOpThrowNotCaught proc
add sp, sp, #36
ldmia sp!, {r4-r8, lr}
add sp, sp, #12
mov pc, lr
endp

I can compile and link it without problems, but it crashes with a nullpointer 
at runtime and a strange callstack. When i use a debugger and step into 
ctiTrampoline it stops at the second stmdb because it can't find the 
sourcecode. :-/
I've done a #pragma pack(4) around the JITStackFrame.

Can somebody give me a hint where to search for the failure?

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


Re: [webkit-dev] build system for wince port

2010-01-06 Thread Patrick Roland Gansterer
David Kilzer:
> On Thu, December 24, 2009 at 1:51:43 AM, Patrick Roland Gansterer wrote:
> > On Thu, Dec 24, 2009 at 02:53:18, Adam Barth:
> > > I'm worried that the port will rot without an active maintainer, no
> > > matter which build system you choose.
> >
> > If i choose my preferred solution, there will be many changes in the
> > current sln/vcproj/vsprops files. Who is maintaining this files at the
> > moment? I'd like to hear his/her opinion on this before.
> 
> You can use svn/git log to see who commits changes to these files.  I know
>  Apple uses them for their Windows build, but we're on break until Jan 4,
>  so please don't expect a reply until after that date.  (I don't work on
>  the Windows port much, so I don't have an opinion about your proposal.)
Break is over and I didn't find a better working buildsystem for WincE than 
vcproj in the meantime. :-/

In the current trunk the vcproj files all use the Win32 defines. Because Win32 
an WinCE have some parts in common i'd like to split the current vsprop files. 
To keep the vcproj files readable i prefer to add a second vcproj file for 
e.g. JavaScriptCore and a solution file with this new vcproj file.
I'd like to start with the JavaScriptCore for "STANDARDSDK_500 (ARMV4I)".

The last blocker for WinCE JavascriptCore is the missing TextCodec (see 
https://bugs.webkit.org/show_bug.cgi?id=32169) with a pending review request 
for a month.

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


Re: [webkit-dev] About debug of webkit

2010-01-06 Thread douchuan
It's so *bored of compiling codes on Win directly.
Maybe you could try it on Qt or GTK on linux.
Qt 4.6 Brower contains stable webkit codes and build Qt on Win is easy.
*
changjiang fu fcjjcf 写道:
> Hi, I want to get some help from you about running webkit.
> I want to build and run webkit on windows. Now I have successfully
> builded webkit src code by following the step of www.webkit.org
> . Now all the .exe and .dll exist in the
> output directory.
> For I want to run it on windows, so I
> (1) Download a safari(4.0.4(531.21.10), maybe the latest) for windows
> and install it use default configuration.
> (2) Copy all the dll from C:\Program Files\Common Files\Apple\Apple
> Application Support to my webkit output
> directory(E:\webkit\WebKitBuild\bin).
> (3) Run WinLauncher_debug.exe.
> The step (3) failed and an error message box show "应用程序初始化
> (0xc0150002)失败。请单击"确定",终止应用程序".,(I am from China, sorry
> for use chinese)
> So I am confused of this error.
> If I follow the step of the www.webkit.org  to
> first execute 'run-safari --debug', after execution, the proc ess
> Safari.exe is not exist in the windows task manager, I can not find
> it, So I can not do the next step to attach the webkit to the Safari.exe.
> I really wish you can help me to solve this issue cause I spend much
> time to build this huge project and now it is actuall builded
> successfully, I am looking forward to run webkit and debug with it.
> Thanks a lot for your help!
> 
>
> ___
> 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] About debug of webkit

2010-01-06 Thread changjiang fu fcjjcf
By the way, I just install the basic vs2005 component but have not
install Microsoft
Visual Studio 2005 Team Suite Service
Pack1
and
four patch on http://webkit.org/building/tools.html. Does that matter?

2010/1/6 changjiang fu fcjjcf 

> Hi, I want to get some help from you about running webkit.
>
> I want to build and run webkit on windows. Now I have successfully builded
> webkit src code by following the step of www.webkit.org. Now all the .exe
> and .dll exist in the output directory.
> For I want to run it on windows, so I
> (1)  Download a safari(4.0.4(531.21.10), maybe the latest) for windows and
> install it use default configuration.
> (2)  Copy all the dll from C:\Program Files\Common Files\Apple\Apple
> Application Support to my webkit output
> directory(E:\webkit\WebKitBuild\bin).
> (3)  Run WinLauncher_debug.exe.
>
> The step (3) failed and an error message box show "
> 应用程序初始化(0xc0150002)失败。请单击"确定",终止应用程序".,(I am from China, sorry for use
> chinese)
> So I am confused of this error.
>
> If I follow the step of the www.webkit.org to first execute 'run-safari
> --debug', after execution, the proc ess Safari.exe is not exist in the
> windows task manager, I can not find it, So I can not do the next step to
> attach the webkit to the Safari.exe.
>
> I really wish you can help me to solve this issue cause I spend much time
> to build this huge project and now it is actuall builded successfully, I am
> looking forward to run webkit and debug with it.
> Thanks a lot for your help!
>
>
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


[webkit-dev] About debug of webkit

2010-01-06 Thread changjiang fu fcjjcf
Hi, I want to get some help from you about running webkit.

I want to build and run webkit on windows. Now I have successfully builded
webkit src code by following the step of www.webkit.org. Now all the .exe
and .dll exist in the output directory.
For I want to run it on windows, so I
(1)  Download a safari(4.0.4(531.21.10), maybe the latest) for windows and
install it use default configuration.
(2)  Copy all the dll from C:\Program Files\Common Files\Apple\Apple
Application Support to my webkit output
directory(E:\webkit\WebKitBuild\bin).
(3)  Run WinLauncher_debug.exe.

The step (3) failed and an error message box show "
应用程序初始化(0xc0150002)失败。请单击"确定",终止应用程序".,(I am from China, sorry for use
chinese)
So I am confused of this error.

If I follow the step of the www.webkit.org to first execute 'run-safari
--debug', after execution, the proc ess Safari.exe is not exist in the
windows task manager, I can not find it, So I can not do the next step to
attach the webkit to the Safari.exe.

I really wish you can help me to solve this issue cause I spend much time to
build this huge project and now it is actuall builded successfully, I am
looking forward to run webkit and debug with it.
Thanks a lot for your help!
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev