[webkit-gtk] Memory and Cpu consumption on APPLE IOS5 page

Deepak Mundra deepak.m at allaboutif.com
Sun Jun 12 22:38:07 PDT 2011


Dear All,

JIT stubs is not working for MIPS platform. I am getting following
errors while compiling for mips. I guess JIT support is enabled by
default during the configuration. Now i am going to reconfigure webkit
with --disable-git  option and compile all over again to check if this
error still exists.

./.libs/libJavaScriptCore.a(libJavaScriptCore_la-JITStubs.o): In
function `ctiVMThrowTrampoline':
JITStubs.cpp:(.text+0x64): relocation truncated to fit: R_MIPS_PC16
against `cti_vm_throw'
./.libs/libJavaScriptCore.a(libJavaScriptCore_la-JITStubs.o): In
function `cti_op_create_this':
JITStubs.cpp:(.text+0xa8): relocation truncated to fit: R_MIPS_PC16
against `JITStubThunked_op_create_this'
./.libs/libJavaScriptCore.a(libJavaScriptCore_la-JITStubs.o): In
function `cti_op_convert_this':
JITStubs.cpp:(.text+0xc8): relocation truncated to fit: R_MIPS_PC16
against `JITStubThunked_op_convert_this'
./.libs/libJavaScriptCore.a(libJavaScriptCore_la-JITStubs.o): In
function `cti_op_convert_this_strict':
JITStubs.cpp:(.text+0xe8): relocation truncated to fit: R_MIPS_PC16
against `JITStubThunked_op_convert_this_strict'
./.libs/libJavaScriptCore.a(libJavaScriptCore_la-JITStubs.o): In
function `cti_op_add':
JITStubs.cpp:(.text+0x108): relocation truncated to fit: R_MIPS_PC16
against `JITStubThunked_op_add'
./.libs/libJavaScriptCore.a(libJavaScriptCore_la-JITStubs.o): In
function `cti_op_pre_inc':
JITStubs.cpp:(.text+0x128): relocation truncated to fit: R_MIPS_PC16
against `JITStubThunked_op_pre_inc'
./.libs/libJavaScriptCore.a(libJavaScriptCore_la-JITStubs.o): In
function `cti_timeout_check':
JITStubs.cpp:(.text+0x148): relocation truncated to fit: R_MIPS_PC16
against `JITStubThunked_timeout_check'
./.libs/libJavaScriptCore.a(libJavaScriptCore_la-JITStubs.o): In
function `cti_register_file_check':
JITStubs.cpp:(.text+0x168): relocation truncated to fit: R_MIPS_PC16
against `JITStubThunked_register_file_check'
./.libs/libJavaScriptCore.a(libJavaScriptCore_la-JITStubs.o): In
function `cti_op_loop_if_lesseq':
JITStubs.cpp:(.text+0x188): relocation truncated to fit: R_MIPS_PC16
against `JITStubThunked_op_loop_if_lesseq'
./.libs/libJavaScriptCore.a(libJavaScriptCore_la-JITStubs.o): In
function `cti_op_new_object':
JITStubs.cpp:(.text+0x1a8): relocation truncated to fit: R_MIPS_PC16
against `JITStubThunked_op_new_object'
./.libs/libJavaScriptCore.a(libJavaScriptCore_la-JITStubs.o): In
function `cti_op_put_by_id_generic':
JITStubs.cpp:(.text+0x1c8): additional relocation overflows omitted
from the output
collect2: ld returned 1 exit status
make[1]: *** [Programs/jsc] Error 1
make[1]: Leaving directory `/src/webkit-1.4.0'
make: *** [all] Error 2

Thanks
Deepak

On Fri, Jun 10, 2011 at 5:39 PM, Deepak Mundra <deepak.m at allaboutif.com> wrote:
> Dear Martin,
>
> Right now I  am compiling 1.4.0 release version. with gtk 3.0 support.
> I found that the fixes for alignment warnings for mips platform have
> already been merged in this release.  But i also found that with this
> release I had add those fixes for some new files like
>
>  ./Source/JavaScriptCore/runtime/JSCell.h
>  ./Source/JavaScriptCore/collector/handles/Handle.h
>  ./Source/JavaScriptCore/runtime/WriteBarrier.h
>
> I also found that webkitmarshal.h and webkitmarshal.cpp are not
> getting generated automatically and I had to manually generate them
> using following commands.
>
> glib-genmarshal --prefix=webkit_marshal
> ./Source/WebKit/gtk/webkitmarshal.list --header >
> DerivedSources/webkit/webkitmarshal.h
> echo "extern \"C\" {" > DerivedSources/webkit/webkitmarshal.cpp
> glib-genmarshal --prefix=webkit_marshal
> ./Source/WebKit/gtk/webkitmarshal.list --body >>
> DerivedSources/webkit/webkitmarshal.cpp
> echo '}' >> DerivedSources/webkit/webkitmarshal.cpp
>
> As I mentioned earlier, I am cross compiling webkit-gtk 1.4.0 for MIPS
> platform  and I found that
> Source/JavaScriptCore/assembler/MIPSAssembler.h and
> Source/JavaScriptCore/assembler/MacroAssemblerMIPS.h are not present
> in the 1.4.0 release tar ball. I had to fetch them separately from git
> repository.
>
> My compilation is still going on will post the result  today if I am
> able to compile successfully :)
>
> Thanks & Regards
> Deepak
>
> On Thu, Jun 9, 2011 at 10:52 AM, Deepak Mundra <deepak.m at allaboutif.com> wrote:
>> Dear Martin,
>>
>> Please find mine and Gabor Loki comments in following bug. This almost
>> has all mips alignment warning fixes. Unfortunately i couldn't  upload
>> any patch in the trunk at that time. Hopefully this time i will try to
>> contribute in 1.4.x
>> Right now compiling all dependencies (glib,gtk etc) for the 1.4.0 release.
>>
>> https://bugs.webkit.org/show_bug.cgi?id=43963
>>
>>
>> Thanks
>> Deepak
>>
>> On Wed, Jun 8, 2011 at 9:09 PM, Martin Robinson <mrobinson at webkit.org> wrote:
>>> On Wed, Jun 8, 2011 at 3:56 AM, Deepak Mundra <deepak.m at allaboutif.com> wrote:
>>>> Will pull latest release and test.  I have modified few things in the
>>>> version(1.2.0) which i am using right now, for example warning fixes
>>>> for mips platform etc.  I was planing to use 1.4.x version but never
>>>> tried.. I think this is the right time to move to 1.4.x...
>>>
>>> If you contribute those changes upstream you won't have to continually
>>> merge them. Please take a quick look at
>>> http://www.webkit.org/coding/contributing.html. :)
>>>
>>> --Martin
>>>
>>
>


More information about the webkit-gtk mailing list