[v8-users] Problems viewing wrapped C++ object properties in debugger (Visual-Studio Code)

2015-12-21 Thread Chris Fischer
We have successfully embedded V8 (4.5.103.35) in our C++ application and are using JavaScript to implement specific business rules in our application. Some of the objects exposed to the JavaScript code are constructed from v8::ObjectTemplate wrappers that access native C++ data and methods.

[v8-users] v8_libbase.lib(time.obj) : error LNK2001: unresolved external symbol __imp_timeGetTime

2015-12-21 Thread Jane Chen
I was able to build v8 4.6.88 successfully with Visual Studio 2013 with the following flags: -Dtarget_arch=x64 -Dv8_use_external_startup_data=0 I got the following libraries: $ ls -l build/Release/lib total 353468 -rwxr-xr-x 1 jchen Domain Users 3140002 Dec 21 17:20 gmock.lib -rwxr-xr-x 1

Re: [v8-users] Re: depot_tools fails to fetch V8 on Windows

2015-12-21 Thread Jochen Eisinger
hey, does the documented way work for you: install depot_tools, put it into your path, and use "fetch v8" to checkout v8? best -jochen On Sun, Dec 20, 2015 at 7:37 PM Zyr Ius wrote: > For two upcoming projects I've been wanting to implement the V8 JavaScript > engine as

[v8-users] Finding "--print_opt_code" in memory

2015-12-21 Thread D T
Hi there! This is maybe a pretty stupid question: I printed the following code, with the following v8 command: user@debugbox: v8/out/ia32.release/d8 --print_opt_code test.js --- Raw source --- (n) { return Math.floor(Math.random() * n); } --- Optimized code --- optimization_id = 0

Re: [v8-users] Finding "--print_opt_code" in memory

2015-12-21 Thread Jakob Kummerow
On Mon, Dec 21, 2015 at 5:38 PM, D T wrote: > To my understanding, this is the ASM code, V8 produces for my Javascript > input file? > Yes. More specifically, it's the optimized code that was generated for your "rnd" function. > So if I execute my JS file with Chrome