Questions tagged [embedded-v8]
253 questions
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…

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…

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…

Sepehr
- 2,051
- 19
- 29
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…

xiagao1982
- 1,077
- 1
- 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,…

David Carpenter
- 1,389
- 2
- 16
- 29
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…

user3199023
- 433
- 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…

Rohit
- 1,001
- 1
- 11
- 20
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…

Ashish Negi
- 5,193
- 8
- 51
- 95
-1
votes
1 answer
In the chromium source code, why some boundary or type checks use DCHECK
Recently, I was studying chromium and v8 source code, and saw a lot of CHECK or DCHECK. Among them, many DCHECK are checks on parameter types, or bounds on arrays, and DCHECK are closed in the release version.
DCHECK(key->IsName() ||…

王艳明
- 3
- 2
-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…

Elias
- 234
- 2
- 9
-1
votes
1 answer
Embedded V8 context and script compilation crash
Calling on V8 experts. I am embedding V8 in a project of mine and I am running into issues modularizing my code. The simplest example of this is compiling and running a small script that prints "Hello World!" from a C++ function. The working version…

Darth Zaloj
- 153
- 6
-1
votes
1 answer
V8 "segmentation fault (core dumped)" Error Displayed By Sample Shell Application
V8 Version: 8.2.0
OS: Ubuntu v18.04.3 LTS
Architecture: x64
What steps will reproduce the problem?
Followed instructions on https://v8.dev/docs/source-code and https://v8.dev/docs/build to build and compile v8
Compiled the shell.cc in samples…

claOnline
- 1,005
- 3
- 10
- 18
-1
votes
1 answer
Use V8 engine in oop application c++
I want to use v8 in an oop based app in c++, but i have some issues with scope of v8 objects in my code, when i wrote all code in one function it works perfectly but when i put the in a class (or even a name space) some of objects will be…

EIP Passenger
- 63
- 5