Re: [v8-users] calling Javascript function from C++,

2015-10-29 Thread Ben Noordhuis
On Thu, Oct 29, 2015 at 11:07 AM, Ben N wrote: > Hi > > I am just starting out with V8 and I'm slowly finding my way round it but I > have run into a problem. I'm sorry if this is a common question or if the > answer is obvious, but I have spent some time trying to Google it

[v8-users] Re: calling Javascript function from C++,

2015-10-29 Thread Ben N
Oops, I meant to type getTime() instead of getMilliseconds(). b e n -- -- 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

Re: [v8-users] calling Javascript function from C++,

2015-10-29 Thread Ben N
Hi Ben I ran some more experiments and I found a memory leak problem which I think was contributing to the slowness. Fixed by adding a HandleScope. { HandleScope scope( isolate ) ; parameters[ 0 ] = Integer::New( isolate, x ) ; parameters[ 1 ] = Integer::New( isolate, y ) ; return

[v8-users] Function names in CpuProfileNode.

2015-10-29 Thread Jane Chen
Testing profiling against v8 4.6.88. I have functions that are exposed through accessor callbacks. If a native function is set for multiple accessor properties, the last property shows up as the function name in the CpuProfileNode, regardless what name you set to the function returned by the

[v8-users] Re: Function names in CpuProfileNode.

2015-10-29 Thread Jane Chen
A test case to demonstrate the issue can be found at: https://code.google.com/p/v8/issues/detail?id=4527 On Thursday, October 29, 2015 at 3:46:21 PM UTC-7, Jane Chen wrote: > > Testing profiling against v8 4.6.88. > > I have functions that are exposed through accessor callbacks. If a native >

Re: [v8-users] V8 Flags

2015-10-29 Thread Michael Hablich
You can also have a look at https://www.chromium.org/developers/how-tos/run-chromium-with-flags. Jakob is right, normally you don't want to mess with these if you are not actively working on V8/Chromium. Running d8 with '--help' will also show you the available flags with a short description.

[v8-users] V8 Flags

2015-10-29 Thread Ivan P.
I know that Chrome V8 Engine has some option that can be set like "command-line" flags using v8::V8::SetFlagsFromString(). But where can I find description of the each flag? I did not succeed with googling for this info so far. Does anyone know the place in documentation or some other resource

Re: [v8-users] V8 Flags

2015-10-29 Thread Jakob Kummerow
https://chromium.googlesource.com/v8/v8/+/master/src/flag-definitions.h Spoiler: there's nothing in there that you'd want to mess with. Most flags are for debugging and development. When it makes sense to turn on a flag, we turn it on by default. On Thu, Oct 29, 2015 at 9:39 AM, Ivan P.

[v8-users] calling Javascript function from C++,

2015-10-29 Thread Ben N
Hi I am just starting out with V8 and I'm slowly finding my way round it but I have run into a problem. I'm sorry if this is a common question or if the answer is obvious, but I have spent some time trying to Google it and I haven't found a satisfactory explanation. The problem I have