Re: [v8-users] kKeep segfault

2018-06-18 Thread Ryan Dahl
Thanks: https://bugs.chromium.org/p/v8/issues/detail?id=7857 -- -- 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

[v8-users] kKeep segfault

2018-06-18 Thread Ryan Dahl
Hi, I'm experiencing a segfault when using SnapshotCreator::FunctionCodeHandling::kKeep. I'm wondering if this is intended behavior or a bug? Here is a patch to demo it in test/cctest/test-serialize.cc https://gist.github.com/ry/0429eb4887370ee2a263446a59ec9ed7 thank you, Ryan -- --

Re: [v8-users] Large build size

2018-02-07 Thread Ryan Dahl
Jakob, I'm glad to hear that your v8_base is only 29M for you. The .o files in my obj/v8_base are large > du -sh obj/v8_base 1.1G obj/v8_base Could this have something to do with libcpp_is_static? Ali, are you on macintosh? Maybe this is only a problem on OSX. And I also find that my resulting

[v8-users] Large build size

2018-02-07 Thread Ryan Dahl
Hi, I've noticed that the build size in the latest V8 releases is very large. For example, on 6.5.257, I get -rw-r--r-- 1 rld staff 1.1G Feb 7 18:49 out/v8build/obj//libv8_base.a It's similarly large on 6.6.164. I'm experiencing this on OSX and here is the configuration I'm using:

[v8-users] Windows GYP build

2011-08-30 Thread Ryan Dahl
https://github.com/joyent/node/commit/b68c6bac96a480fe210220335bc685e89a927d2b It seems v8_base depends on ws2_32.lib for accept() and some of the other socket used for the debugger. -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users

[v8-users] Question about crankshaft optimization

2011-03-14 Thread Ryan Dahl
Hi, In Node we call a function EventEmitter.prototype.emit very often: https://github.com/joyent/node/blob/2c185a9dfd3be8e718858b946333c433c375c295/lib/events.js#L16-67 I'm using x64 Linux V8 version 3.1.8 with --crankshaft and --trace_opt. Putting load on this web server

Re: [v8-users] gnome bindings

2011-01-22 Thread Ryan Dahl
2011/1/21 Víctor M. Jáquez L. vjaq...@igalia.com: Hi, Do you know if is there an effort for binding v8 with the gnome libraries through gobject-instrospection? Such as seed [1] for jscore, or gjs [2] for spidermonkey. Thanks vmjl 1. http://live.gnome.org/Seed 2.

[v8-users] post-mortem debugging

2011-01-14 Thread Ryan Dahl
Would it be feasible to somehow core dump a V8 context and inspect it post-mortem with the debugger agent? -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users

[v8-users] heap profiling via debugger agent

2010-12-22 Thread Ryan Dahl
Is there a desire to have this or a reason not to have it? -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users

[v8-users] Re: heap profiling via debugger agent

2010-12-22 Thread Ryan Dahl
Related: what about a remote debugger command to close the server thread. We'd like to dynamically enable and disable it. -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users

Re: [v8-users] Re: heap profiling via debugger agent

2010-12-22 Thread Ryan Dahl
2010/12/22 Søren Gjesse sgje...@chromium.org: Which server are you refering to? The debugger agent. It would be nice to be able to call i::Debugger::StopAgent() from the protocol. -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users

Re: [v8-users] heap profiling via debugger agent

2010-12-22 Thread Ryan Dahl
2010/12/22 Søren Gjesse sgje...@chromium.org: Ryan, This sounds like a reasonable request. The new heap profiler can generate a JSON representation of a heap snapshot, so that would fit straight into the debugger protocol. However this JSON string have a size which could easily be the same

Re: [v8-users] Native JSON.parse()?

2010-04-28 Thread Ryan Dahl
On Wed, Apr 28, 2010 at 4:17 PM, Robert Ginda rgi...@chromium.org wrote: I'm working on a v8 embedding that needs to take a JSON file as a command line argument.  I'd prefer not to Script::Run() it directly, for the usual reason folks don't want to eval() json.  Is there a native API for

Re: [v8-users] String to Socket

2010-04-22 Thread Ryan Dahl
On Thu, Apr 22, 2010 at 12:19 AM, Anton Muhin ant...@chromium.org wrote: Ryan, just a quick question: couldn't external strings solve the problem for you?  They sound pretty much like Buffer you describe as far as I can judge from your email. yours, anton. I hadn't considered using

Re: [v8-users] String to Socket

2010-04-22 Thread Ryan Dahl
On Thu, Apr 22, 2010 at 10:18 AM, Anton Muhin ant...@chromium.org wrote: On Thu, Apr 22, 2010 at 9:05 PM, Ryan Dahl coldredle...@gmail.com wrote: On Thu, Apr 22, 2010 at 12:19 AM, Anton Muhin ant...@chromium.org wrote: Ryan, just a quick question: couldn't external strings solve the problem

Re: [v8-users] Re: How to keep track of instance deletion in V8?

2010-02-22 Thread Ryan Dahl
2010/2/22 deadmorous deadmor...@gmail.com: Finally I have found the solution. 1. The alternative version of constructor jsnative_myobj() should be used (it is commented out in the code in my previous post above). 2. Persistent handles are created using Persistent::New(). So, the line    

Re: [v8-users] External

2009-11-28 Thread Ryan Dahl
On Sat, Nov 28, 2009 at 6:52 PM, Stephan Beal sgb...@googlemail.com wrote: On Sat, Nov 28, 2009 at 5:09 PM, Christian Plesner Hansen christian.plesner.han...@gmail.com wrote: Try reading a property, invoking a method, or generally doing any nontrivial operation that involves an external.  If

[v8-users] scriptCollected debugger event

2009-10-13 Thread Ryan Dahl
Hi, When I issue a scripts command to the debugger agent, I don't get a complete list of script that have been compiled. I guess this is because they have been garbage collected and that the scriptCollected event which accompanies the result is a reference to those collected scripts. My question

[v8-users] Re: V8 built-in debugger agent - how to activate?

2009-10-08 Thread Ryan Dahl
Hi Søren, I'm began a little patch to give such a wake-up callback (attached). Is this something you all would accept? It adds a new public function v8::Debug::Poll() which is to be called from the main thread occasionally. It also adds an optional third argument to v8::Debug::EnableAgent()

[v8-users] Re: V8 built-in debugger agent - how to activate?

2009-10-07 Thread Ryan Dahl
Hi Søren, If you receive a message in the DebuggerAgent and your main thread is not immediately executing javascript but idling in select(), how can you give control back to V8 to handle the message? It seems there should be some way to poll the agent to handle received messages. Am I correct

[v8-users] Binary data in ExternalAsciiStringResource

2009-09-08 Thread ryan dahl
Hello - I am trying to store binary in a string by using an ExternalAsciiStringResource. There is a problem with values over 127. It seems this might be solved a some cast somewhere inside of V8? Or is it more complicated than that? The problem is shown with the attached C++ program. It seems

[v8-users] Re: Binary data in ExternalAsciiStringResource

2009-09-08 Thread ryan dahl
On Tue, Sep 8, 2009 at 8:20 PM, Erik Corryerik.co...@gmail.com wrote: What you are looking for is Blob support, which is not done: http://code.google.com/p/v8/issues/detail?id=270 It seems this would be a simpler way importing binary data into javascript. Is there any fundamental reason why it

[v8-users] stack traces again

2009-07-24 Thread ryan dahl
There still seems to be no way to get a stack trace - at least not in 1.2.14. PrintCurrentStackTrace doesn't work either after the exception has taken place or in a MessageListener callback. It was mentioned this was disabled for performance reasons - is there a way one could re-enable it?

[v8-users] debugger agent

2009-06-17 Thread ryan dahl
How do I use the debugger agent? I'm running v8::Debug::EnableAgent(script_name, 5858); in my program, then using d8 to connect to that port: ./d8 --remote_debugger Type: connect V8-Version: 1.2.8.1 Protocol-Version: 1 Embedding-Host: test-http_simple.js I can then enter commands

[v8-users] Re: Message-PrintCurrentStackTrace not really useful

2009-06-08 Thread ryan dahl
Any guidance from the V8 dev team ? I'm also interested in this problem. --~--~-~--~~~---~--~~ v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users -~--~~~~--~~--~--~---

[v8-users] more problems with snapshot=on

2009-06-02 Thread Ryan Dahl
I'm experiencing an error trying to build bleeding_edge with snapshot=on on Linux. It doesn't give a very informative error message, just Error -11. Any ideas? $ uname -a Linux li62-72 2.6.18.8-linode16 #1 SMP Mon Jan 12 09:50:18 EST 2009 i686 Intel(R) Xeon(R) CPU L5420 @ 2.50GHz GenuineIntel

[v8-users] Re: Call a JS function like a C function?

2009-05-01 Thread Ryan Dahl
The result will be empty if an exception occoured. You can use a stack allocated v8::TryCatch in C++ to catch exceptions. Take a look at the test FunctionCall in test/cctest/test-api.cc. Which is better: checking if the return value is empty or using try_catch.HasCaught() ?

[v8-users] Re: JS Callback via OS callback

2009-04-10 Thread Ryan Dahl
Also a shot in the dark: Does the callback get executed as part of the normal execution or is it like a signal handler? (I know nothing about windows) --~--~-~--~~~---~--~~ v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users

[v8-users] profiler

2009-04-08 Thread Ryan Dahl
Is there any documentation about how to use the profiler? --~--~-~--~~~---~--~~ v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users -~--~~~~--~~--~--~---