Questions tagged [embedded-v8]
229 questions
0
votes
1 answer
Is it required to grab v8::Locker before making v8::Function::Call?
I'm using V8 to execute some custom javascript code, exposing OnUpdate function to JS world. Overall code works fine but currently I'm concerned about performance of below code - is it required to grab v8::Locker for executing any user defined…
![](../../users/profiles/888796.webp)
Abhi
- 33
- 1
- 4
0
votes
1 answer
how to convert node-addon Persistent to Local?
I'm trying to update a node.js addon using the old v8 API.
Here is my wrapper.cpp code:
std::map > WrapMdUser::callback_map;
void WrapMdUser::FunCallback(CbRtnField *data) {
std::map >::iterator…
![](../../users/profiles/1599872.webp)
Sulliwane
- 402
- 4
- 14
0
votes
1 answer
V8 NewInstance failing when ObjectTemplate has a Date member
Is V8 Broken or am I?
I want to add a JS Date to a Object available in the global object. This works with a older version (4.9.385.28) but fails with (5.0.71.33)... see output
g++ -I/usr/local core.c -o testCore -ldl -pthread -std=c++0x -lv8…
![](../../users/profiles/6298692.webp)
Matt
- 1
- 1
0
votes
1 answer
How can I make an object immutable in the Google V8 Javascript engine?
Is it possible to make an object immutable in the V8 Javascript Engine? V8 is embedded in a C++ application.
In my case I've created and populated an Array (code is simplified)
auto arr = v8::Array::New(isolate, 10);
for (auto i = 0; i < 10; ++i)
{
…
![](../../users/profiles/385094.webp)
Boinst
- 2,970
- 2
- 29
- 56
0
votes
2 answers
V8 compiler errors
I recently managed to generate the visual studio project file for V8, but it doesn't compile
When I compile the All solution it spends maybe ~10 minutes compiling and then presents me with a bunch of error (at least in Release mode, 35 to be…
![](../../users/profiles/5539085.webp)
user112513312
- 399
- 4
- 13
0
votes
1 answer
Chrome V8 engine options
I know that Chrome V8 Engine has some option that can be set like "command-line" flags using v8::V8::SetFlagsFromString(). But where can I find description of the each flag? I did not succeed with googling for this info so far. Does anyone know the…
![](../../users/profiles/1540501.webp)
ivan.ukr
- 2,111
- 14
- 33
0
votes
1 answer
share an immutable object/function in a multi-threaded environment (embedded v8)
N00b question.
I am thinking of embedding v8/SpiderMonkey into my server code. The server is taking thousands of requests per second. So multithreading is a must. I am just wondering if different threads can share compiled immutable js functions and…
![](../../users/profiles/4548982.webp)
abab
- 71
- 5
0
votes
1 answer
How to configure and compile ArangoDB with already installed v8
I am trying to compile ArandoDB 2.2.3 in my Cubietruck board runing Debian for armhf
Since 3rdParty V8 will not compile and will throw error "#error Target architecture ia32 is only supported on ia32 host", I decided to install libv8-dev, so my…
![](../../users/profiles/2525543.webp)
Guille Ju
- 53
- 3
0
votes
0 answers
Node.js / v8 assignment operator overloading
My question is simple, How do you define the behavior of assignment operator in v8 / Node.js?
Assume I have a class in C++ domain that have a set method. Normally when I write this JS:
var jsInstance = new CppWrappedClass(params1);
jsInstance = new…
![](../../users/profiles/388751.webp)
Sepehr
- 1,897
- 17
- 28
0
votes
1 answer
Can Google V8 engine run different Javascripts in different contexts in different threads simultaneously?
I plan to embed Google V8 in my C++ application, which is a multi-threading process. I need to run multiple Javascripts concurrently. Can I create multiple V8 contexts and run different Javascripts in different contexts simultaneously in different…
![](../../users/profiles/1023729.webp)
xiagao1982
- 1,007
- 13
- 25
0
votes
1 answer
Node js, passing a javascript function into an add on and storing it
I am developing a Node.js extension and I would like to pass a javascript function into it that can be called later from the c++ code. If I store the javascript function in my wrapper class and call it right when it is passed in it works fine,…
![](../../users/profiles/983556.webp)
David Carpenter
- 1,066
- 2
- 12
- 25
0
votes
1 answer
node.js c++ addon: return new copy
I am writing a node.js addon and I am having problems with implementing a clone method that returns a copy of the object.
var p = new Point(1, -2);
var copyOfP = p.clone();
Here's my implementation, which is not correct as it does not call the…
![](../../users/profiles/3199023.webp)
user3199023
- 443
- 2
- 8
0
votes
1 answer
How does google V8 handles javascript events
I am trying to understand Google V8 javascript engine,
I went through https://developers.google.com/v8/get_started which lets javascript code be understood and executed. I am not getting how the events in javascript like Mouse click, Mouse over etc…
![](../../users/profiles/2068280.webp)
Rohit
- 1,001
- 1
- 10
- 19
0
votes
1 answer
What can make a program not capable to take advantages of 64 bit system?
I am looking into Google V8 Javascript Engine. It is said that they are having problems for porting to 64 bit systems.
What kind of programming or programming constraints can make a program a 32-bit or 64-bit specific, apart from building and…
![](../../users/profiles/728407.webp)
Ashish Negi
- 4,733
- 6
- 44
- 85
-1
votes
1 answer
Why do I get the error Map is not defined using Google's V8 engine?
Hi I am willing to embedded MathJax for an applicaton I am developing. I chose V8 as the JS engine but I am having problem loading MathJax.
The issue I get is that "Map" is undefined. Shouldn't this be a standard JavaScript built-in object?
#include…
![](../../users/profiles/502179.webp)
Elias
- 194
- 2
- 9