Re: [v8-users] question on the sample file process.cc

2017-06-30 Thread wxz
Thanks for the explanation, but it's still blur to me. I'm trying to wrap those two maps into an interceptor class. Please see the attached. It works for lines such as: if (option.verbose) but it fails on lines: output[request.host] = 1; The script runs, but the final output is:

Re: [v8-users] question on the sample file process.cc

2017-06-30 Thread Jakob Kummerow
There are no conversions happening. In the script, "output" is a regular JavaScript object, with all the behavior you would expect. On the C++ side, "output" is a map, but "output_obj" is a JavaScript object created from that map (via the WrapMap(output) call), and that's what's

Re: [v8-users] question on the sample file process.cc

2017-06-30 Thread wxz
a follow up question, in the script, the 'output' map is used as map: output[request.host] = 1; output[request.host]++ however, it's a map in c++ side, which part of the c++ code handles such conversion? On Thursday, June 29, 2017 at 5:07:20 PM UTC-4, Jakob

[v8-users] Announcement: V8's x87 port is going away

2017-06-30 Thread Jakob Kummerow
Ever since V8's "ia32" port (for 32-bit x86 platforms) has started requiring SSE2 instruction support in 2014, there has been an "x87" port to allow V8 to continue to run on x86 hardware that does not support SSE2 instructions. Due to a lack of stakeholders in the "x87" port, and the ongoing