Re: [v8-users] Limiting WASM memory allocation as an embedder?

2018-09-12 Thread kenton via v8-users
Looking at the code, it looks like --wasm_max_mem_pages limits the size of a particular Memory object, but a script can always allocate multiple objects / create multiple instances. I need to limit the script's total memory usage... I do need to track and limit per-isolate. But maybe I can use

Re: [v8-users] Arraybuffer

2018-09-12 Thread dan Med
Yeah i meant ArrayBuffer*Builder*::Append my bad but when it is actually called in blink ? Cause by the name it has to do with Arraybuffers.. Plus if i build v8 so i can examine the memory layout, where is the code on how v8 handeles arraybuffer ? Where is the doc or some source where

Re: [v8-users] Arraybuffer

2018-09-12 Thread Jakob Kummerow
On Wed, 12 Sep 2018 at 13:15, dan Med wrote: > But can someone help me understand the arraybuffer part ? How to call > arraybuffer::append and when I create an instance of a arraybuffer it will > create it with maximum size so 37... bytes and will only say that the bytes > used are the one which

Re: [v8-users] Arraybuffer

2018-09-12 Thread dan Med
Oh one more thing, so each tab in chrome is handeled as a single process, but Is the same process sandboxes with the Windows 10 kernel. Security or there’s another process which is sandboxes and then the main tab process the ( renderer ) is executed inside of it ? On Wed, 12 Sep 2018 at 13:15,

[v8-users] Re: ChromeDevTools connected to Inspector, but error responses... missing native JS functions?

2018-09-12 Thread @soylentgraham
With a lot of back & forth help from Ibon/hyperandroid, we've got a bit further in working out which things are good, and which are bad. Feels like we're close, but things are still unstable, and a bit unresponsive. I can kinda break into the code (which only shows *this *in sources) Still get

Re: [v8-users] Arraybuffer

2018-09-12 Thread dan Med
But can someone help me understand the arraybuffer part ? How to call arraybuffer::append and when I create an instance of a arraybuffer it will create it with maximum size so 37... bytes and will only say that the bytes used are the one which I’ve declared ? On Wed, 12 Sep 2018 at 00:12, Peter