Re: [v8-users] Build d8 with simulator running on host arch?

2018-07-02 Thread Jakob Kummerow
Sure. If you build with tools/dev/gm.py arm.release on an x86 host, you'll
get a simulator d8 binary. More generally, this is what having distinct
target_arch and v8_target_arch parameters in args.gn is good for: the
former controls what platform the binaries will run on, the latter controls
what architecture V8's compilers will target. If there is a difference, the
simulator will be used.

On Mon, Jul 2, 2018 at 7:48 PM Thomson Tan  wrote:

> Mksnapshot builds v8 to target arch but it could run with simulator on
> host arch when cross compiling. Is there a similar way to build d8 to
> target arch but actually running on host arch with simulator? I'd like to
> utilize the simulator to debug some codegen issue which might be hard to
> debug on target.
>
> --
> --
> v8-users mailing list
> v8-users@googlegroups.com
> http://groups.google.com/group/v8-users
> ---
> You received this message because you are subscribed to the Google Groups
> "v8-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to v8-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[v8-users] Build d8 with simulator running on host arch?

2018-07-02 Thread Thomson Tan
Mksnapshot builds v8 to target arch but it could run with simulator on host 
arch when cross compiling. Is there a similar way to build d8 to target 
arch but actually running on host arch with simulator? I'd like to utilize 
the simulator to debug some codegen issue which might be hard to debug on 
target.

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[v8-users] Re: A strange error with timezone

2018-07-02 Thread zcw
Turns out it is a known issue 
https://bugs.chromium.org/p/chromium/issues/detail?id=811403

On Wednesday, June 27, 2018 at 5:55:21 PM UTC-7, zcw wrote:
>
> Hello, 
>
> We found a strange behavior with timezone. I tested the following with the 
> v8_shell.
> running:
> var d =new Date()
> d.getTimezoneOffset()
>
> It will give me 420 which is correct for PDT. but if I set the TZ variable 
> by doing:
> export TZ=:/etc/localtime
> and running the above script again, it gives me 480.
>
> When I do zdump /etc/localtime, it shows the timezone is PDT. So it 
> doesn't seem the /etc/localtime has error.
>
> I don't know why setting the TZ variable changed the correct timezone. 
> Our program needs the TZ variable, is there any way to fix this behavior?
>
>

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.