Message from discussion
v8 compatible CPUs : HTC Dream
Received: by 10.224.9.144 with SMTP id l16mr7553951qal.26.1310465411926;
Tue, 12 Jul 2011 03:10:11 -0700 (PDT)
X-BeenThere: v8-users@googlegroups.com
Received: by 10.224.181.73 with SMTP id bx9ls11569qab.6.gmail; Tue, 12 Jul
2011 03:10:09 -0700 (PDT)
Received: by 10.224.195.9 with SMTP id ea9mr7575923qab.27.1310465409452;
Tue, 12 Jul 2011 03:10:09 -0700 (PDT)
Received: by 10.224.195.9 with SMTP id ea9mr7575922qab.27.1310465409428;
Tue, 12 Jul 2011 03:10:09 -0700 (PDT)
Return-Path: <rodolph.perfe...@gmail.com>
Received: from mail-vx0-f182.google.com ([209.85.220.182])
by gmr-mx.google.com with ESMTPS id ge31si13309146qcb.2.2011.07.12.03.10.09
(version=TLSv1/SSLv3 cipher=OTHER);
Tue, 12 Jul 2011 03:10:09 -0700 (PDT)
Received-SPF: pass (google.com: domain of rodolph.perfe...@gmail.com designates 209.85.220.182 as permitted sender) client-ip=209.85.220.182;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of rodolph.perfe...@gmail.com designates 209.85.220.182 as permitted sender) smtp.mail=rodolph.perfe...@gmail.com; dkim=pass (test mode) header...@gmail.com
Received: by vxg33 with SMTP id 33so6281858vxg.27
for <v8-users@googlegroups.com>; Tue, 12 Jul 2011 03:10:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=gamma;
h=mime-version:in-reply-to:references:date:message-id:subject:from:to
:content-type;
bh=dDFMhpmNdKKWPZTVUH2WqrvgHc0GrDNb9oxn+gWEnwQ=;
b=QGldJHx4eNIbcMCFQWmpk93QCkQGV2CR3KxuNvXD+IlqASXsISLEmx/mP0z3AMvnK6
Wh8/GB0jZDr3Rp+Eq7t/ZWWMa8TC/sohTU/iafcFkIrRqQP5NV+mpERaH4aQv4HUJ9Wc
31kHyhGXaUyS6zcqMBBuqIh+UbbNsvBxOpjHs=
MIME-Version: 1.0
Received: by 10.220.133.14 with SMTP id d14mr1802350vct.19.1310465408705; Tue,
12 Jul 2011 03:10:08 -0700 (PDT)
Received: by 10.220.72.12 with HTTP; Tue, 12 Jul 2011 03:10:08 -0700 (PDT)
In-Reply-To: <CAB20zvWmDfv+kV2g3NeWNfMKcBMSUE79NHDE+8z=v8_aH2q-Xw@mail.gmail.com>
References: <CAB20zvWsh7BM-wzPWGZUiYAMyoarBtiXV=eobncQVB118On...@mail.gmail.com>
<CA+vEM_UCo3bV9XxgWuA=YEQQUH5sHL1fBr2thKa-kVOH+AS...@mail.gmail.com>
<CAB20zvUnUYo0zYY5aMBHxqCJyYWa2zHct5tm=18mxrof_xE...@mail.gmail.com>
<CAMf9vFzOpMTNNqXjibrmz74VcpigFREn88a99UrBEV2_vR5...@mail.gmail.com>
<CAB20zvUMbgALSx=VJsCpiBS4OivDigHBjFPa3yp9Gm1OqaE...@mail.gmail.com>
<CA+vEM_USU+ckhhEKfdFPE72HUpaJO89vLvoej=BQb0CmjUp...@mail.gmail.com>
<CAMf9vFwjbrRwb1idohdz7grYMRpqXFhie_LAWznL3tQZwvv...@mail.gmail.com>
<CAB20zvWmDfv+kV2g3NeWNfMKcBMSUE79NHDE+8z=v8_aH2q...@mail.gmail.com>
Date: Tue, 12 Jul 2011 11:10:08 +0100
Message-ID: <CA+vEM_Uc_X2600vLy6KhHkkujk_sgSN9HzAErydwNB00ef3...@mail.gmail.com>
Subject: Re: [v8-users] v8 compatible CPUs : HTC Dream
From: Rodolph Perfetta <rodolph.perfe...@gmail.com>
To: v8-users@googlegroups.com
Content-Type: multipart/alternative; boundary=e0cb4e43ce792d236704a7dc81ef
--e0cb4e43ce792d236704a7dc81ef
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Am I correct in thinking you are using bleeding_edge revision 3784. This is
very old, current bleeding edge is around revision 8600. Anything stopping
you to use a more recent bleeding_edge?
your build option include '-mtune=3Darm1136jf-s' the f is for VFP but in
theory this should have no bearing as it is passed as a pipeline tuning
setting.
Rodolph.
On 12 July 2011 10:44, Jose Manuel Cantera Fonseca <
jmcanterafons...@gmail.com> wrote:
> The problem is still there. Below you can find the compilation options my
> Android build is using.
>
> On the other hand the options mentioned by Soren do not appear on my
> contants-arm-h file. This is an Android build and the upstream v8 version
> used is http://v8.googlecode.com/svn/branches/bleeding_edge@3784
>
> CAN_USE_THUMB_INSTRUCTIONS defined as 1.
>> Are you defining CAN_USE_UNALIGNED_ACCESSES to 1 when compiling?
>
>
>
> ------ Compilation options start here -----
>
> target thumb C++: libv8 <=3D external/v8/src/accessors.cc
> prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-g++ -c
> -fno-exceptions -Wno-multichar -msoft-float -fpic -ffunction-sections
> -funwind-tables -fstack-protector -fno-short-enums -march=3Darmv6j
> -mtune=3Darm1136jf-s -pipe -fomit-frame-pointer -D__ARM_ARCH_5__
> -D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -mthumb-interwork
> -DANDROID -fmessage-length=3D0 -W -Wall -Wno-unused -Winit-self
> -Wpointer-arith -Werror=3Dreturn-type -Werror=3Dnon-virtual-dtor -Werror=
=3Daddress
> -Werror=3Dsequence-point -DNDEBUG -g -Wstrict-aliasing=3D2 -finline-funct=
ions
> -fno-inline-functions-called-once -fgcse-after-reload -frerun-cse-after-l=
oop
> -frename-registers -DNDEBUG -UDEBUG -fvisibility-inlines-hidden -DANDROID
> -fmessage-length=3D0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith
> -Wsign-promo -Werror=3Dreturn-type -Werror=3Dnon-virtual-dtor -Werror=3Da=
ddress
> -Werror=3Dsequence-point -DNDEBUG -UDEBUG -mthumb -Os -fomit-frame-pointe=
r
> -fno-strict-aliasing -finline-limit=3D64 -fno-rtti -Wno-endif-labels
> -Wno-import -Wno-format -fno-exceptions -DENABLE_DEBUGGER_SUPPORT
> -DV8_NATIVE_REGEXP -fpic -funwind-tables -fstack-protector -fno-short-enu=
ms
> -fmessage-length=3D0 -finline-functions -fno-inline-functions-called-once
> -fgcse-after-reload -frerun-cse-after-loop -frename-registers
> -fomit-frame-pointer -fno-strict-aliasing -finline-limit=3D64 -MD *
> -mfloat-abi=3Dsoft* -DARM -DV8_TARGET_ARCH_ARM -MD
>
>
>
>
> 2011/7/11 S=F8ren Gjesse <sgje...@chromium.org>
>
>> You can take a look at the SConstruct file for building with SCons on th=
e
>> root of the V8 repository. It has the following handling of the differen=
t
>> floating point options supported by V8.
>>
>> 'armeabi:soft' : {
>> 'CPPDEFINES' : ['USE_EABI_HARDFLOAT=3D0'],
>> 'simulator:none': {
>> 'CCFLAGS': ['-mfloat-abi=3Dsoft'],
>> }
>> },
>> 'armeabi:softfp' : {
>> 'CPPDEFINES' : ['USE_EABI_HARDFLOAT=3D0',
>> 'CAN_USE_VFP_INSTRUCTIONS'],
>> 'simulator:none': {
>> 'CCFLAGS': ['-mfloat-abi=3Dsoftfp'],
>> }
>> },
>> 'armeabi:hard' : {
>> 'CPPDEFINES' : ['USE_EABI_HARDFLOAT=3D1',
>> 'CAN_USE_VFP_INSTRUCTIONS'],
>> 'simulator:none': {
>> 'CCFLAGS': ['-mfloat-abi=3Dhard'],
>> }
>> }
>>
>> Regards,
>> S=F8ren
>>
>>
>> On Mon, Jul 11, 2011 at 12:28, Rodolph Perfetta <
>> rodolph.perfe...@gmail.com> wrote:
>>
>>> At first glance it looks like you are trying to run VFP code on a CPU
>>> which does not have VFP. The JIT checks the CPU at runtime, so I presum=
e you
>>> are compiling the C++ code with VFP support. Try updating the build sys=
tem
>>> to pass -'mfloat-abi=3Dsoft -mfpu=3Dnone' to the compiler. (and remove =
the
>>> '-mfloat-abi=3Dsoftfp' option).
>>>
>>> Cheers,
>>> Rodolph,.
>>>
>>>
>>> On 11 July 2011 10:47, Jose Manuel Cantera Fonseca <
>>> jmcanterafons...@gmail.com> wrote:
>>>
>>>> Hi there,
>>>>
>>>> Thank you for your responses. Trying to isolate the problem, I'm now
>>>> using v8 outside webkit, i.e. through the 'v8shell' helper program,
>>>>
>>>> I have discovered that v8 is working fine but when an incorrect
>>>> expression is given to the v8 shell, for instance a variable that does=
not
>>>> exist, a fault occurs and the v8shell process dies. The log trace is b=
elow.
>>>>
>>>> Any idea?
>>>>
>>>> many thanks
>>>>
>>>> best
>>>>
>>>>
>>>> ---- Log Trace ---
>>>>
>>>> *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
>>>> Build fingerprint:
>>>> 'tmobile/opal/sapphire/sapphire:2.2.1/FRG83/60505:user/release-keys'
>>>> pid: 511, tid: 511 >>> v8shell <<<
>>>> signal 4 (SIGILL), fault addr 40860360
>>>> r0 00000000 r1 408453b5 r2 408453b5 r3 00000000
>>>> r4 00000002 r5 4040a2a5 r6 4087e1e1 r7 00000000
>>>> r8 4040a13d r9 4083e12d 10 0013f620 fp beba66f4
>>>> ip 0014b5dc sp beba66dc lr 408ccd2c pc 40860360 cpsr 40000010
>>>> #00 pc 40860360
>>>> #01 lr 408ccd2c <unknown>
>>>>
>>>> code around pc:
>>>> 40860340 e5104001 e5d44007 e3540084 1affffc3
>>>> 40860350 e2407001 ed977b01 ea000002 e1a070c0
>>>> 40860360 ee077a90 eeb87be7 e3110001 0a000006
>>>> 40860370 e5114001 e5d44007 e3540084 1affffb7
>>>> 40860380 e2417001 ed976b01 ea000002 e1a070c1
>>>>
>>>> code around lr:
>>>> 408ccd0c e52d0004 e59f0260 e52d0004 e598200b
>>>> 408ccd1c e5920027 e49d1004 e1a0e00f e59ff24c
>>>> 408ccd2c e52d0004 e59f2248 e1a0e00f e59ff244
>>>> 408ccd3c e51b8004 e52d0004 e598200b e5920023
>>>> 408ccd4c e52d0004 e59f2230 e1a0e00f e59ff22c
>>>>
>>>> stack:
>>>> beba669c 0009b1c9 /system/bin/v8shell
>>>> beba66a0 00000002
>>>> beba66a4 beba66dc [stack]
>>>> beba66a8 beba66f4 [stack]
>>>> beba66ac beba66d0 [stack]
>>>> beba66b0 beba66f4 [stack]
>>>> beba66b4 00000002
>>>> beba66b8 0009b19d /system/bin/v8shell
>>>> beba66bc 4085e234
>>>> beba66c0 4085e234
>>>> beba66c4 4085e1c1
>>>> beba66c8 beba66f4 [stack]
>>>> beba66cc beba66e0 [stack]
>>>> beba66d0 df002777
>>>> beba66d4 e3a070ad
>>>> beba66d8 408453b5
>>>> #00 beba66dc 40844945
>>>> beba66e0 40834e69
>>>> beba66e4 4082ec2d
>>>> beba66e8 4083e12d
>>>> beba66ec 4083441d
>>>> beba66f0 4040a13d
>>>> beba66f4 beba6714 [stack]
>>>> beba66f8 408cc5b4
>>>> beba66fc 40407ac9
>>>> beba6700 40844945
>>>> beba6704 4082e361
>>>> beba6708 40844945
>>>> beba670c 40833bed
>>>> beba6710 4082e329
>>>> beba6714 beba672c [stack]
>>>> beba6718 40874bac
>>>> beba671c 40408469
>>>> beba6720 4082e361
>>>>
>>>>
>>>> --------------
>>>>
>>>>
>>>> 2011/7/8 S=F8ren Gjesse <sgje...@chromium.org>
>>>>
>>>>> Normally target CPU setup is handled by preprocessor defines set by t=
he
>>>>> compiler. Look at src/arm/constants-arm.h to see what is checked for.=
With
>>>>> an ARMv6 you should end up
>>>>> with CAN_USE_ARMV6_INSTRUCTIONS, CAN_USE_ARMV5_INSTRUCTIONS
>>>>> and CAN_USE_THUMB_INSTRUCTIONS defined as 1.
>>>>>
>>>>> Are you defining CAN_USE_UNALIGNED_ACCESSES to 1 when compiling?
>>>>>
>>>>> Do you have any idea whether the runtime issue you have is due to JIT
>>>>> code generated by V8?
>>>>>
>>>>> Regards,
>>>>> S=F8ren
>>>>>
>>>>> On Fri, Jul 8, 2011 at 08:47, Jose Manuel Cantera Fonseca <
>>>>> jmcanterafons...@gmail.com> wrote:
>>>>>
>>>>>> Do I need to set any special compilation flag?
>>>>>>
>>>>>> Thanks
>>>>>> El 07/07/2011 17:31, "Rodolph Perfetta" <rodolph.perfe...@gmail.com=
>
>>>>>> escribi=F3:
>>>>>>
>>>>>> > v8 will work on an ARMv6 cpu though Crankshaft (the optimising
>>>>>> compiler)
>>>>>> > will not be used.
>>>>>> >
>>>>>> > Cheers,
>>>>>> > Rodolph.
>>>>>> >
>>>>>> > On 7 July 2011 16:25, Jose Manuel Cantera Fonseca <
>>>>>> > jmcanterafons...@gmail.com> wrote:
>>>>>> >
>>>>>> >> Hi there,
>>>>>> >>
>>>>>> >> I'm trying to run v8 together with Webkit in a custom Android bui=
ld
>>>>>> for HTC
>>>>>> >> Dream.
>>>>>> >>
>>>>>> >> I'm having problems at runtime, thus I'm wondering if v8 is
>>>>>> supported on
>>>>>> >> the HTC Magic CPU:
>>>>>> >>
>>>>>> >> Qualcomm MSM 7201A 528 Mhz (see all the details below)
>>>>>> >>
>>>>>> >> thanks for your help
>>>>>> >>
>>>>>> >> all the best
>>>>>> >>
>>>>>> >> *Type:*MSM7201A *Manufacturer:*Qualcomm<
>>>>>> http://en.wikipedia.org/wiki/Qualcomm>
>>>>>>
>>>>>> >> *Year Released:*2008 *Predecessor:*32bit Qualcomm MSM7200A *
>>>>>> >> Characteristics**CPU Structure (complexity):* RISC<
>>>>>> http://pdadb.net/index.php?m=3Dcpu&id=3Da7201a&c=3Dqualcomm_msm7201a=
#>
>>>>>> >> *Width of Machine Word:*32 bit *Primary (RAM) Data bus:*32 bit
>>>>>> *Instruction
>>>>>> >> Set**Supported Instruction Set(s):* ARMv6*CPU Core<
>>>>>> http://pdadb.net/index.php?m=3Dcpu&id=3Da7201a&c=3Dqualcomm_msm7201a=
#>
>>>>>> >> :* ARM1136EJ-S *Clock Frequencies**Recommanded Maximum Clock
>>>>>> Frequency:*528 MHz
>>>>>> >> *Technology**Semiconductor<
>>>>>> http://pdadb.net/index.php?m=3Dcpu&id=3Da7201a&c=3Dqualcomm_msm7201a=
#>
>>>>>>
>>>>>> >> Technology:* CMOS*Minimum Feature Size:* 65 nm *Additional
>>>>>> Details**Special
>>>>>> >> Features:* ARM9 coprocessor, Embedded QDSP4000 and QDSP5000 DSP
>>>>>> (GSM,
>>>>>> >> GPRS/EGPRS Multislot Class 12, EDGE, UMTS/WCDMA, HSDPA, HSUPA, MB=
MS
>>>>>> >> baseband), Embedded gpsOne GPS module, Qcamera, Qtv, Qcamcorder,
>>>>>> >> Qvideophone, Adreno 130 GPU, OpenGL ES 1.1, OpenVG 1.1, EGL 1.3,
>>>>>> Direct3D
>>>>>> >> Mobile, SVGT 1.2, Direct Draw, GDI
>>>>>> >>
>>>>>> >> --
>>>>>> >> v8-users mailing list
>>>>>> >> v8-users@googlegroups.com
>>>>>> >> http://groups.google.com/group/v8-users
>>>>>> >
>>>>>> > --
>>>>>> > v8-users mailing list
>>>>>> > v8-users@googlegroups.com
>>>>>> > http://groups.google.com/group/v8-users
>>>>>>
>>>>>> --
>>>>>> v8-users mailing list
>>>>>> v8-users@googlegroups.com
>>>>>> http://groups.google.com/group/v8-users
>>>>>>
>>>>>
>>>>> --
>>>>> v8-users mailing list
>>>>> v8-users@googlegroups.com
>>>>> http://groups.google.com/group/v8-users
>>>>>
>>>>
>>>> --
>>>> v8-users mailing list
>>>> v8-users@googlegroups.com
>>>> http://groups.google.com/group/v8-users
>>>>
>>>
>>> --
>>> v8-users mailing list
>>> v8-users@googlegroups.com
>>> http://groups.google.com/group/v8-users
>>>
>>
>> --
>> v8-users mailing list
>> v8-users@googlegroups.com
>> http://groups.google.com/group/v8-users
>>
>
> --
> v8-users mailing list
> v8-users@googlegroups.com
> http://groups.google.com/group/v8-users
>
--e0cb4e43ce792d236704a7dc81ef
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Am I correct in thinking you are using bleeding_edge revision 3784. This is=
very old, current bleeding edge is around revision 8600. Anything stopping=
you to use a more recent bleeding_edge?<div><br></div><div>your build opti=
on include '-mtune=3Darm1136jf-s' the f is for VFP but in theory th=
is should have no bearing as it is passed as a pipeline tuning setting.</di=
v>
<div><br></div><div>Rodolph.<br><br><div class=3D"gmail_quote">On 12 July 2=
011 10:44, Jose Manuel Cantera Fonseca <span dir=3D"ltr"><<a href=3D"mai=
lto:jmcanterafons...@gmail.com">jmcanterafons...@gmail.com</a>></span> w=
rote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex;">The problem is still there. Below you can f=
ind the compilation options my Android build is using.=A0<div><br></div><di=
v>
On the other hand the options mentioned by Soren do not appear on my contan=
ts-arm-h file. This is an Android build and the upstream v8 version used is=
=A0<a href=3D"http://v8.googlecode.com/svn/branches/bleeding_edge@3784" tar=
get=3D"_blank">http://v8.googlecode.com/svn/branches/bleeding_edge@3784</a>=
</div>
<div class=3D"im">
<div><br></div><blockquote class=3D"gmail_quote" style=3D"margin-top:0px;ma=
rgin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;bo=
rder-left-color:rgb(204, 204, 204);border-left-style:solid;padding-left:1ex=
">
<span style=3D"font-family:arial, sans-serif;font-size:13px;background-colo=
r:rgb(255, 255, 255)">CAN_USE_THUMB_INSTRUCTIONS defined as 1.<br></span><s=
pan style=3D"font-family:arial, sans-serif;font-size:13px;background-color:=
rgb(255, 255, 255)">Are you defining CAN_USE_UNALIGNED_ACCESSES to 1 when c=
ompiling?</span></blockquote>
</div><div><span style=3D"font-family:arial, sans-serif;font-size:13px;back=
ground-color:rgb(255, 255, 255)"><div><br></div></span><div><br></div><div>=
------ Compilation options start here -----</div>
<div><br></div><div><div><font face=3D"georgia, serif">target thumb C++: li=
bv8 <=3D external/v8/src/accessors.cc</font></div><div><font face=3D"geo=
rgia, serif">prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-g++ =
=A0-c =A0-fno-exceptions -Wno-multichar -msoft-float -fpic -ffunction-secti=
ons -funwind-tables -fstack-protector -fno-short-enums -march=3Darmv6j -mtu=
ne=3Darm1136jf-s -pipe -fomit-frame-pointer -D__ARM_ARCH_5__ -D__ARM_ARCH_5=
T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ =A0-mthumb-interwork -DANDROID -fm=
essage-length=3D0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Werror=
=3Dreturn-type -Werror=3Dnon-virtual-dtor -Werror=3Daddress -Werror=3Dseque=
nce-point -DNDEBUG -g -Wstrict-aliasing=3D2 -finline-functions -fno-inline-=
functions-called-once -fgcse-after-reload -frerun-cse-after-loop -frename-r=
egisters -DNDEBUG -UDEBUG -fvisibility-inlines-hidden -DANDROID -fmessage-l=
ength=3D0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Wsign-promo -We=
rror=3Dreturn-type -Werror=3Dnon-virtual-dtor -Werror=3Daddress -Werror=3Ds=
equence-point -DNDEBUG -UDEBUG -mthumb -Os -fomit-frame-pointer -fno-strict=
-aliasing -finline-limit=3D64 =A0-fno-rtti =A0-Wno-endif-labels -Wno-import=
-Wno-format -fno-exceptions -DENABLE_DEBUGGER_SUPPORT -DV8_NATIVE_REGEXP -=
fpic -funwind-tables -fstack-protector -fno-short-enums -fmessage-length=3D=
0 -finline-functions -fno-inline-functions-called-once -fgcse-after-reload =
-frerun-cse-after-loop -frename-registers -fomit-frame-pointer -fno-strict-=
aliasing -finline-limit=3D64 -MD <b>-mfloat-abi=3Dsoft</b> =A0-DARM -DV8_TA=
RGET_ARCH_ARM =A0 =A0 -MD=A0</font></div>
<div><div></div><div class=3D"h5">
<div><br></div><div><br></div><div><br><br><div class=3D"gmail_quote">2011/=
7/11 S=F8ren Gjesse <span dir=3D"ltr"><<a href=3D"mailto:sgjesse@chromiu=
m.org" target=3D"_blank">sgje...@chromium.org</a>></span><br><blockquote=
class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc soli=
d;padding-left:1ex">
You can take a look at the SConstruct file for building with SCons on the r=
oot of the V8 repository. It has the following handling of the different fl=
oating point options supported by V8.<div><br><div><div>=A0 =A0 =A0 'ar=
meabi:soft' : {</div>
<div>=A0 =A0 =A0 =A0 'CPPDEFINES' : ['USE_EABI_HARDFLOAT=3D0=
9;],</div><div>=A0 =A0 =A0 =A0 'simulator:none': {</div><div>=A0 =
=A0 =A0 =A0 =A0 'CCFLAGS': =A0 =A0 ['-mfloat-abi=3Dsoft'],<=
/div><div>=A0 =A0 =A0 =A0 }</div><div>=A0 =A0 =A0 },</div>
<div>=A0 =A0 =A0 'armeabi:softfp' : {</div><div>=A0 =A0 =A0 =A0 =
9;CPPDEFINES' : ['USE_EABI_HARDFLOAT=3D0', 'CAN_USE_VFP_INS=
TRUCTIONS'],</div><div>=A0 =A0 =A0 =A0 'simulator:none': {</div=
><div>=A0 =A0 =A0 =A0 =A0 'CCFLAGS': =A0 =A0 ['-mfloat-abi=3Dso=
ftfp'],</div>
<div>=A0 =A0 =A0 =A0 }</div><div>=A0 =A0 =A0 },</div><div>=A0 =A0 =A0 '=
armeabi:hard' : {</div><div>=A0 =A0 =A0 =A0 'CPPDEFINES' : [=
9;USE_EABI_HARDFLOAT=3D1', 'CAN_USE_VFP_INSTRUCTIONS'],</div><d=
iv>=A0 =A0 =A0 =A0 'simulator:none': {</div>
<div>=A0 =A0 =A0 =A0 =A0 'CCFLAGS': =A0 =A0 ['-mfloat-abi=3Dhar=
d'],</div><div>=A0 =A0 =A0 =A0 }</div><div>=A0 =A0 =A0 }</div><div><br>=
</div>Regards,</div><div>S=F8ren</div><div><div></div><div><div><br></div><=
div><br><div class=3D"gmail_quote">
On Mon, Jul 11, 2011 at 12:28, Rodolph Perfetta <span dir=3D"ltr"><<a hr=
ef=3D"mailto:rodolph.perfe...@gmail.com" target=3D"_blank">rodolph.perfetta=
@gmail.com</a>></span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">At first glance it looks like you are trying=
to run VFP code on a CPU which does not have VFP. The JIT checks the CPU a=
t runtime, so I presume you are compiling the C++ code with VFP support. Tr=
y updating the build system to pass -'mfloat-abi=3Dsoft -mfpu=3Dnone=
9; to the compiler. (and remove the '-mfloat-abi=3Dsoftfp' option).=
<div>
<br></div><div>Cheers,</div><div>Rodolph,.<div><div></div><div><br><br><div=
class=3D"gmail_quote">On 11 July 2011 10:47, Jose Manuel Cantera Fonseca <=
span dir=3D"ltr"><<a href=3D"mailto:jmcanterafons...@gmail.com" target=
=3D"_blank">jmcanterafons...@gmail.com</a>></span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">Hi there,<div><br></div><div>Thank you for y=
our responses. Trying to isolate the problem, I'm now using v8 outside =
webkit, i.e. through the 'v8shell' helper program,=A0</div>
<div><br></div><div>I have discovered that v8 is working fine but when an i=
ncorrect expression is given to the v8 shell, for instance a variable that =
does not exist, a fault occurs and the v8shell process dies. The log trace =
is below.=A0</div>
<div><br></div><div>Any idea?</div><div><br></div><div>many thanks</div><di=
v><br></div><div>best</div><div><br></div><div><br></div><div>---- Log Trac=
e ---</div><div><br></div><div><div>*** *** *** *** *** *** *** *** *** ***=
*** *** *** *** *** ***</div>
<div>Build fingerprint: 'tmobile/opal/sapphire/sapphire:2.2.1/FRG83/605=
05:user/release-keys'</div><div>pid: 511, tid: 511 =A0>>> v8sh=
ell <<<</div><div>signal 4 (SIGILL), fault addr 40860360</div><div=
>
=A0r0 00000000 =A0r1 408453b5 =A0r2 408453b5 =A0r3 00000000</div><div>=A0r4=
00000002 =A0r5 4040a2a5 =A0r6 4087e1e1 =A0r7 00000000</div><div>=A0r8 4040=
a13d =A0r9 4083e12d =A010 0013f620 =A0fp beba66f4</div><div>=A0ip 0014b5dc =
=A0sp beba66dc =A0lr 408ccd2c =A0pc 40860360 =A0cpsr 40000010</div>
<div>=A0 =A0 =A0 =A0 =A0#00 =A0pc 40860360 =A0</div><div>=A0 =A0 =A0 =A0 =
=A0#01 =A0lr 408ccd2c =A0<unknown></div><div><br></div><div>code arou=
nd pc:</div><div>40860340 e5104001 e5d44007 e3540084 1affffc3=A0</div><div>=
40860350 e2407001 ed977b01 ea000002 e1a070c0=A0</div>
<div>40860360 ee077a90 eeb87be7 e3110001 0a000006=A0</div><div>40860370 e51=
14001 e5d44007 e3540084 1affffb7=A0</div><div>40860380 e2417001 ed976b01 ea=
000002 e1a070c1=A0</div><div><br></div><div>code around lr:</div><div>408cc=
d0c e52d0004 e59f0260 e52d0004 e598200b=A0</div>
<div>408ccd1c e5920027 e49d1004 e1a0e00f e59ff24c=A0</div><div>408ccd2c e52=
d0004 e59f2248 e1a0e00f e59ff244=A0</div><div>408ccd3c e51b8004 e52d0004 e5=
98200b e5920023=A0</div><div>408ccd4c e52d0004 e59f2230 e1a0e00f e59ff22c=
=A0</div>
<div><br></div><div>stack:</div><div>=A0 =A0 beba669c =A00009b1c9 =A0/syste=
m/bin/v8shell</div><div>=A0 =A0 beba66a0 =A000000002 =A0</div><div>=A0 =A0 =
beba66a4 =A0beba66dc =A0[stack]</div><div>=A0 =A0 beba66a8 =A0beba66f4 =A0[=
stack]</div><div>=A0 =A0 beba66ac =A0beba66d0 =A0[stack]</div>
<div>=A0 =A0 beba66b0 =A0beba66f4 =A0[stack]</div><div>=A0 =A0 beba66b4 =A0=
00000002 =A0</div><div>=A0 =A0 beba66b8 =A00009b19d =A0/system/bin/v8shell<=
/div><div>=A0 =A0 beba66bc =A04085e234 =A0</div><div>=A0 =A0 beba66c0 =A040=
85e234 =A0</div><div>=A0 =A0 beba66c4 =A04085e1c1 =A0</div>
<div>=A0 =A0 beba66c8 =A0beba66f4 =A0[stack]</div><div>=A0 =A0 beba66cc =A0=
beba66e0 =A0[stack]</div><div>=A0 =A0 beba66d0 =A0df002777 =A0</div><div>=
=A0 =A0 beba66d4 =A0e3a070ad =A0</div><div>=A0 =A0 beba66d8 =A0408453b5 =A0=
</div><div>#00 beba66dc =A040844945 =A0</div>
<div>=A0 =A0 beba66e0 =A040834e69 =A0</div><div>=A0 =A0 beba66e4 =A04082ec2=
d =A0</div><div>=A0 =A0 beba66e8 =A04083e12d =A0</div><div>=A0 =A0 beba66ec=
=A04083441d =A0</div><div>=A0 =A0 beba66f0 =A04040a13d =A0</div><div>=A0 =
=A0 beba66f4 =A0beba6714 =A0[stack]</div><div>
=A0 =A0 beba66f8 =A0408cc5b4 =A0</div><div>=A0 =A0 beba66fc =A040407ac9 =A0=
</div><div>=A0 =A0 beba6700 =A040844945 =A0</div><div>=A0 =A0 beba6704 =A04=
082e361 =A0</div><div>=A0 =A0 beba6708 =A040844945 =A0</div><div>=A0 =A0 be=
ba670c =A040833bed =A0</div><div>=A0 =A0 beba6710 =A04082e329 =A0</div>
<div>=A0 =A0 beba6714 =A0beba672c =A0[stack]</div><div>=A0 =A0 beba6718 =A0=
40874bac =A0</div><div>=A0 =A0 beba671c =A040408469 =A0</div><div>=A0 =A0 b=
eba6720 =A04082e361 =A0</div></div><div><br></div><div><br></div><div>-----=
---------</div><div><div></div>
<div><div><br><br>
<div class=3D"gmail_quote">2011/7/8 S=F8ren Gjesse <span dir=3D"ltr"><<a=
href=3D"mailto:sgje...@chromium.org" target=3D"_blank">sgje...@chromium.or=
g</a>></span><br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0=
.8ex;border-left:1px #ccc solid;padding-left:1ex">
Normally target CPU setup is handled by preprocessor defines set by the com=
piler. Look at src/arm/constants-arm.h to see what is checked for. With an =
ARMv6 you should end up with=A0CAN_USE_ARMV6_INSTRUCTIONS,=A0CAN_USE_ARMV5_=
INSTRUCTIONS and=A0CAN_USE_THUMB_INSTRUCTIONS defined as 1.<div>
<br></div><div>Are you defining CAN_USE_UNALIGNED_ACCESSES to 1 when compil=
ing?</div><div><br></div><div>Do you have any idea whether the runtime issu=
e you have is due to JIT code generated by V8?</div><div><br></div><div>
Regards,</div><div>S=F8ren<font color=3D"#888888"><br><br></font><div class=
=3D"gmail_quote"><div><div></div><div>On Fri, Jul 8, 2011 at 08:47, Jose Ma=
nuel Cantera Fonseca <span dir=3D"ltr"><<a href=3D"mailto:jmcanterafonse=
c...@gmail.com" target=3D"_blank">jmcanterafons...@gmail.com</a>></span> w=
rote:<br>
</div></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bo=
rder-left:1px #ccc solid;padding-left:1ex"><div><div></div><div><p>Do I nee=
d to set any special compilation flag?</p>
<p>Thanks<br>
</p>
<div class=3D"gmail_quote">El 07/07/2011 17:31, "Rodolph Perfetta"=
; <<a href=3D"mailto:rodolph.perfe...@gmail.com" target=3D"_blank">rodol=
ph.perfe...@gmail.com</a>> escribi=F3:<div><br type=3D"attribution">
> v8 will work on an ARMv6 cpu though Crankshaft (the optimising compile=
r)<br>
> will not be used.<br>> <br>> Cheers,<br>> Rodolph.<br>> <b=
r>> On 7 July 2011 16:25, Jose Manuel Cantera Fonseca <<br>> <a hr=
ef=3D"mailto:jmcanterafons...@gmail.com" target=3D"_blank">jmcanterafonseca=
@gmail.com</a>> wrote:<br>
> <br>>> Hi there,<br>>><br>>> I'm trying to run v=
8 together with Webkit in a custom Android build for HTC<br>>> Dream.=
<br>>><br>>> I'm having problems at runtime, thus I'm w=
ondering if v8 is supported on<br>
>> the HTC Magic CPU:<br>>><br>>> Qualcomm MSM 7201A 528 =
Mhz (see all the details below)<br>>><br>>> thanks for your hel=
p<br>>><br>>> all the best<br>>><br></div>>> *Type:=
*MSM7201A *Manufacturer:*Qualcomm<<a href=3D"http://en.wikipedia.org/wik=
i/Qualcomm" target=3D"_blank">http://en.wikipedia.org/wiki/Qualcomm</a>>=
<div>
<br>
>> *Year Released:*2008 *Predecessor:*32bit Qualcomm MSM7200A *<br></=
div>>> Characteristics**CPU Structure (complexity):* RISC<<a href=
=3D"http://pdadb.net/index.php?m=3Dcpu&id=3Da7201a&c=3Dqualcomm_msm=
7201a#" target=3D"_blank">http://pdadb.net/index.php?m=3Dcpu&id=3Da7201=
a&c=3Dqualcomm_msm7201a#</a>><br>
>> *Width of Machine Word:*32 bit *Primary (RAM) Data bus:*32 bit *In=
struction<br>>> Set**Supported Instruction Set(s):* ARMv6*CPU Core<=
;<a href=3D"http://pdadb.net/index.php?m=3Dcpu&id=3Da7201a&c=3Dqual=
comm_msm7201a#" target=3D"_blank">http://pdadb.net/index.php?m=3Dcpu&id=
=3Da7201a&c=3Dqualcomm_msm7201a#</a>><br>
>> :* ARM1136EJ-S *Clock Frequencies**Recommanded Maximum Clock Frequ=
ency:*528 MHz<br>>> *Technology**Semiconductor<<a href=3D"http://p=
dadb.net/index.php?m=3Dcpu&id=3Da7201a&c=3Dqualcomm_msm7201a#" targ=
et=3D"_blank">http://pdadb.net/index.php?m=3Dcpu&id=3Da7201a&c=3Dqu=
alcomm_msm7201a#</a>><div>
<br>
>> Technology:* CMOS*Minimum Feature Size:* 65 nm *Additional Detail=
s**Special<br>>> Features:* ARM9 coprocessor, Embedded QDSP4000 and Q=
DSP5000 DSP (GSM,<br>>> GPRS/EGPRS Multislot Class 12, EDGE, UMTS/WCD=
MA, HSDPA, HSUPA, MBMS<br>
>> baseband), Embedded gpsOne GPS module, Qcamera, Qtv, Qcamcorder,<b=
r>>> Qvideophone, Adreno 130 GPU, OpenGL ES 1.1, OpenVG 1.1, EGL 1.3,=
Direct3D<br>>> Mobile, SVGT 1.2, Direct Draw, GDI<br>>><br>
>> --<br>>> v8-users mailing list<br>>> <a href=3D"mailto=
:v8-users@googlegroups.com" target=3D"_blank">v8-users@googlegroups.com</a>=
<br>>> <a href=3D"http://groups.google.com/group/v8-users" target=3D"=
_blank">http://groups.google.com/group/v8-users</a><br>
> <br>> -- <br>> v8-users mailing list<br>> <a href=3D"mailto:v=
8-users@googlegroups.com" target=3D"_blank">v8-users@googlegroups.com</a><b=
r>> <a href=3D"http://groups.google.com/group/v8-users" target=3D"_blank=
">http://groups.google.com/group/v8-users</a><br>
</div></div></div></div><div><div></div><div>
<p></p>
-- <br><div>
v8-users mailing list<br>
<a href=3D"mailto:v8-users@googlegroups.com" target=3D"_blank">v8-users@goo=
glegroups.com</a><br>
<a href=3D"http://groups.google.com/group/v8-users" target=3D"_blank">http:=
//groups.google.com/group/v8-users</a></div></div></div></blockquote></div>=
<br></div><div><div></div><div>
<p></p>
-- <br>
v8-users mailing list<br>
<a href=3D"mailto:v8-users@googlegroups.com" target=3D"_blank">v8-users@goo=
glegroups.com</a><br>
<a href=3D"http://groups.google.com/group/v8-users" target=3D"_blank">http:=
//groups.google.com/group/v8-users</a></div></div></blockquote></div><br></=
div>
<p></p></div></div>
-- <br><div><div></div><div>
v8-users mailing list<br>
<a href=3D"mailto:v8-users@googlegroups.com" target=3D"_blank">v8-users@goo=
glegroups.com</a><br>
<a href=3D"http://groups.google.com/group/v8-users" target=3D"_blank">http:=
//groups.google.com/group/v8-users</a></div></div></blockquote></div><br></=
div></div></div>
<p></p>
-- <br><div><div></div><div>
v8-users mailing list<br>
<a href=3D"mailto:v8-users@googlegroups.com" target=3D"_blank">v8-users@goo=
glegroups.com</a><br>
<a href=3D"http://groups.google.com/group/v8-users" target=3D"_blank">http:=
//groups.google.com/group/v8-users</a></div></div></blockquote></div><br></=
div></div></div></div>
<p></p>
-- <br><div><div></div><div>
v8-users mailing list<br>
<a href=3D"mailto:v8-users@googlegroups.com" target=3D"_blank">v8-users@goo=
glegroups.com</a><br>
<a href=3D"http://groups.google.com/group/v8-users" target=3D"_blank">http:=
//groups.google.com/group/v8-users</a></div></div></blockquote></div><br></=
div></div></div></div></div>
<p></p>
-- <br><div><div></div><div class=3D"h5">
v8-users mailing list<br>
<a href=3D"mailto:v8-users@googlegroups.com" target=3D"_blank">v8-users@goo=
glegroups.com</a><br>
<a href=3D"http://groups.google.com/group/v8-users" target=3D"_blank">http:=
//groups.google.com/group/v8-users</a></div></div></blockquote></div><br></=
div>
--e0cb4e43ce792d236704a7dc81ef--