Re: [v8-users] Debugger acting as a client connecting to the server

2018-08-09 Thread 'Jakob Gruber' via v8-users
+yang who can say more about node. We (Ben, Yang & myself) recently discussed the possibility of adding coverage support to node itself. See here for a (very rough and early stage) doc with some thou

Re: [v8-users] OOM in Heap::ReserveSpace

2018-07-07 Thread 'Jakob Gruber' via v8-users
Even without a repro, could you open a bug? It's easier to loop in people and discuss there. Thanks! On Sat, Jul 7, 2018 at 2:43 AM, Yvonne Chen wrote: > Actually, not mprotect. madvise, in ReclaimInaccessibleMemory, with both > MADV_FREE and MADV_DONTNEED calls failing, both with error code EIN

Re: [v8-users] Building in linux, either v8_libplatform and v8_libbase are all I get, or they're the only things that are missing!

2018-04-19 Thread 'Jakob Gruber' via v8-users
Did you see https://github.com/v8/v8/wiki/Building-from-Source? To build all targets, just use: $ ninja -C out.gn/golib/ On Fri, Apr 20, 2018 at 7:25 AM, Andrew Walker wrote: > I am attempting to build v8 in a wheezy VM for a binding that links > against > >- libv8 >- v8_base >- v8_

Re: [v8-users] What is the memory layout of a code object in V8?

2018-04-19 Thread 'Jakob Gruber' via v8-users
Have a look at [0], which describes the memory layout of code objects. The RelocInfo is currently a separate object and Code objects store a pointer to it. [0] https://cs.chromium.org/chromium/src/v8/src/objects/code.h?l=369&rcl=ff6b34b468c1eae8589b278923f87e2f573bc248 On Thu, Apr 19, 2018 at 11:

Re: [v8-users] Re: Slower Performance than expected

2018-04-06 Thread 'Jakob Gruber' via v8-users
If you do end up with a good repro for the performance difference between typed arrays and arrays, please post it at crbug.com/v8/new. On Fri, Apr 6, 2018 at 8:33 AM, wrote: > Are you able to hoist the memory allocations out of the library so the > caller can allocate the buffers it needs and re

Re: [v8-users] mksnapshot and warm_up

2018-03-01 Thread 'Jakob Gruber' via v8-users
AFAIK that's correct. The polluted warmup context is thrown out, and a second clean context (with the now-compiled code) is serialized into the warmed up snapshot. On Thu, Mar 1, 2018 at 5:31 PM, Johannes Rieken wrote: > Great! Thanks for the speedy reply. Looking at https://cs.chromium.org/ > c

Re: [v8-users] mksnapshot and warm_up

2018-03-01 Thread 'Jakob Gruber' via v8-users
On Thu, Mar 1, 2018 at 4:43 PM, Johannes Rieken wrote: > > Hey, > > Can someone help me understand what the difference between a warm and cold > snapshot is? I stumbled over `WarmUpSnapshotDataBlob` but I am not > entirely sure how to make use of them via the mksnapshot-tools and what the > seque

Re: [v8-users] Lazy deserialization

2018-02-20 Thread 'Jakob Gruber' via v8-users
On Fri, Feb 16, 2018 at 5:09 PM, Chris Dumoulin wrote: > Thanks for the reply Jakob. I'll give your code changes a try. > I'm currently trying this on Mac OS X x64. > > I'm pretty sure I'm using a snapshot build. Is there an easy way to tell > for sure? > Snapshot builds are the default if you'r

Re: [v8-users] Lazy deserialization

2018-02-16 Thread 'Jakob Gruber' via v8-users
On Thu, Feb 15, 2018 at 9:28 PM, Chris Dumoulin wrote: > I'm interested in minimizing v8 memory usage, and I recently saw this blog > post on Lazy Deserialization: https://v8project.blogspot.ca/2018/02/ > lazy-deserialization.html > > I've built and run samples/hello-world.cc against static libra

Re: [v8-users] Advice for submitting a PR to fix Debug::ArchiveDebug and Debug::RestoreDebug?

2017-12-19 Thread 'Jakob Gruber' via v8-users
On Mon, Dec 18, 2017 at 9:39 PM, Ben Noordhuis wrote: > On Mon, Dec 18, 2017 at 9:06 PM, Ben Newman wrote: > > Hi folks! This is my first time posting here, so please let me know if I > > should ask this question somewhere else instead. I'm asking here because > > https://github.com/v8/v8 does n

Re: [v8-users] Query regarding file size of snaphot_blob.bin

2017-12-19 Thread 'Jakob Gruber' via v8-users
On Tue, Dec 19, 2017 at 7:25 AM, wrote: > Hi Jakob, > > We were comparing v8/src/builtins.h file of Chromium M47 and Chromium M56 > and found that there many new (>100) builtin functions added in Chromium 56. > > Do you think this could be one of the major reasons for increase in size > of Snapsh

Re: [v8-users] Query regarding file size of snaphot_blob.bin

2017-12-17 Thread 'Jakob Gruber' via v8-users
On Mon, Dec 18, 2017 at 6:20 AM, wrote: > >* new functionality (both internal and new language additions); > > Is it possible to find out what new functionality has been added?( If > yes please can you let me know where to check for new features added ?) > For new language features, you coul

Re: [v8-users] Query regarding file size of snaphot_blob.bin

2017-12-14 Thread 'Jakob Gruber' via v8-users
On Thu, Dec 14, 2017 at 10:39 AM, wrote: > On Thursday, December 14, 2017 at 2:44:15 PM UTC+5:30, Ben Noordhuis wrote: >> >> On Thu, Dec 14, 2017 at 7:22 AM, wrote: >> > 1) How is snapshot_blob.bin generated at compile time ? (If possible >> where >> > in chromium code ) >> >> Look for a file c

Re: [v8-users] Query regarding file size of snaphot_blob.bin

2017-12-14 Thread 'Jakob Gruber' via v8-users
We've actually been working on reducing memory overhead around the snapshot, see the lazy builtins design doc at http://goo.gl/dxkYDZ. Note though that this is intended to reduce runtime memory use, not the size of the snapshot blob itself. I'd expect the snapshot blob to grow further in the future

[v8-users] Re: [blink-dev] Intent to Ship: RegExp named captures

2017-10-18 Thread 'Jakob Gruber' via v8-users
On Wed, Oct 18, 2017 at 4:51 PM, Daniel Bratell wrote: > On Wed, 18 Oct 2017 09:16:32 +0200, Jakob Gruber > wrote: > > Webkit has shipped this in Safari Tech Preview Release 40. > Firefox and Edge have not implemented this yet. > > > Is there any reason to think they will not implement it soon?

Re: [v8-users] Re: V8 snapshots

2017-09-07 Thread 'Jakob Gruber' via v8-users
You can use the `job` gdb macro (see gdbinit ) to print heap objects. E.g. 'job 0x367b6c023fa9'. On Thu, Sep 7, 2017 at 5:04 PM, Francisco Moraes wrote: > If you know of a way to find more inf

Re: [v8-users] Inspector commonly crashes after TerminateExecution()?

2017-08-30 Thread 'Jakob Gruber' via v8-users
Sounds like a bug to me. I opened https://crbug.com/v8/6774 for you, please feel free to CC yourself there. Also, a repro would be very helpful if you could provide one. Thanks! Jakob On Thu, Aug 31, 2017 at 3:12 AM, 'Kenton Varda' via v8-users < v8-users@googlegroups.com> wrote: > Hi v8-users,

Re: [v8-users] How to compile V8 for X86_64 platform?

2017-07-04 Thread &#x27;Jakob Gruber&#x27; via v8-users
Hi Sameer, the V8 build process is documented at https://github.com/v8/v8/wiki/Building-with-GN. Cheers, Jakob On Wed, Jul 5, 2017 at 7:20 AM, Sameer wrote: > Hi, > > I am new to V8 world. > Could you please help how do I compile V8 for X86_64 platforms? > I am trying to debug some Java script

Re: [v8-users] Re: Significant JSON::Stringify, Uint8Array, or ArrayBuffer changes between v5.4 to v6.0.186

2017-06-27 Thread &#x27;Jakob Gruber&#x27; via v8-users
Interesting. It'd be very helpful if you could open a bug at crbug.com/v8/new with a full code example (including build instructions if it includes C++) and instructions to reproduce the issue. Feel free to assign it to me (jgru...@chromium.org) and I'll have a look. On Mon, Jun 26, 2017 at 6:44 P

Re: [v8-users] V8 debugging and multithreading

2017-05-16 Thread &#x27;Jakob Gruber&#x27; via v8-users
We removed support for preserving debugger state across thread switches because it was untested, probably buggy, and unused. As a workaround, you would need to store state (e.g. active breakpoints) yourself and reissue debugger commands after switching threads. On Tue, May 16, 2017 at 12:49 PM, P