Re: [v8-users] Using V8 to generate runtime calls in Functions

2015-03-14 Thread Malek Musleh
For 1) I was trying to do something like this initially: http://stackoverflow.com/questions/20643470/execute-a-command-line-binary-in-node-js but it doesn't seem to work with v8 standalone. Might seem like a trivial example, but would you be able to provide an example that would work with v8 stand

Re: [v8-users] Using V8 to generate runtime calls in Functions

2015-03-13 Thread Flying Jester
Doing the first thing you suggest is really not at all related to dealing with the optimizer. Just putting strings from JS into a C++ system exec would not be very difficult. Unless you want to do something to V8 itself, and are less concerned with actually doing things from JavaScript, I sugge

Re: [v8-users] Using V8 to generate runtime calls in Functions

2015-03-13 Thread Malek Musleh
Doing some more investigating, I am able to narrow down the scope of my question: In lithium.cc / fullcode-gen.c I see calls to MakeCodePrologue() and MakeCodeEpilogue(). Since I am interested in adding to the prologue of optimized code, I can focus on the lithium.cc part. Both those call void Cod