Re: [v8-users] How can I convert a argument to v8::Array?

2013-01-15 Thread Matthias Ernst
args[0].Asv8::Array() On Tue, Jan 15, 2013 at 3:16 AM, amourfou amourfo...@gmail.com wrote: In the following source codes, if args[0] is array object, let me know how to convert it to v8::Array or handle it. ... Test(const v8::Arguments args) { ... if (args[0]-IsArray() ==

Re: [v8-users] How can I convert a argument to v8::Array?

2013-01-15 Thread Stephan Beal
On Tue, Jan 15, 2013 at 3:16 AM, amourfou amourfo...@gmail.com wrote: In the following source codes, if args[0] is array object, let me know how to convert it to v8::Array or handle it. ... if (args[0]-IsArray() == true) { HandleArray ar( Array::Cast(args[0]) ); } } --

[v8-users] [Memory reduction in v8]

2013-01-15 Thread nagarjuna atluri
Hi, Need some info about memory Configuration, can we reduce the memory consumption in v8 through any settings, if yes please let me know the settings. Secondly in Garbage collection cycles there seems to be GC pause can this GC pause be configured, please let me the file where to configure

Re: [v8-users] How can I convert a argument to v8::Array?

2013-01-15 Thread Simas Toleikis
HandleArray ar( Array::Cast(args[0]) ); Quick fix: HandleArray ar( HandleArray::Cast(args[0]) ); Or use the -As... as posted by Matthias Ernst. -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users

[v8-users] Failed to compile recent V8 on Win32

2013-01-15 Thread ondras
Hi, after updating to recent SVN trunk, my windows build ends in the very end (linking) by spitting out these messages: Creating library file: libv8.a

Re: [v8-users] Failed to compile recent V8 on Win32

2013-01-15 Thread Jakob Kummerow
The SCons build is unmaintained and no longer being tested. It is entirely possible that it is broken. You should really migrate away from it, as we will delete the SCons-related files Really Soon Now™. In this particular case, code-stubs-hydrogen.cc is probably missing. If you're lucky, adding

Re: [v8-users] Failed to compile recent V8 on Win32

2013-01-15 Thread ondras
Is there a specific reason you are using MinGW to compile V8? Yes - I am maintaining my embedding (TeaJS) for more than 4 years and I am compiling it with MinGW from the very start. Both V8 and TeaJS. I spent quite a lot of time to make everything work (including support for 3rd party

[v8-users] Re: Set prototype of Host Object handle question.

2013-01-15 Thread Ioannis Epaminonda
I have tried the above but i don;t think that it works correctly. Have you found another way to set an Object to null ? On Friday, 8 April 2011 19:29:04 UTC+3, mcot wrote: I think I solved my problem: v8::HandleScope hndl_scope; ... ... v8::Handlev8::Object obj =

[v8-users] Newbie doubt about property name allocation

2013-01-15 Thread Angel Java Lopez
Hi people! I will create in project (Node.js) a lot of object withÑ var obj = { author: aValue }; maybe in different parts of the application (not in the same line/place) the symbol/string author, is allocated only once? or is allocated only once per line of code? Maybe I should ask: the

[v8-users] Re: Recovering from an OOM situation

2013-01-15 Thread Chris Angelico
On Fri, Jan 11, 2013 at 5:32 PM, Chris Angelico ros...@gmail.com wrote: What is the proper way to handle this? According to the docs for V8::IgnoreOutOfMemoryException, *contexts* other than the one that had trouble ought to be able to continue. So in theory, this basic technique should work -