For questions related to JavaScript engine development. If you are simply referring to issues with JavaScript code, use the [javascript] tag instead.
Questions tagged [javascript-engine]
171 questions
4
votes
0 answers
import .so files using PythonInterpreter in java
I am facing probs to import .so file using PythonInterpreter from java
From python:
$ python
Python 2.7.3 (default, Apr 10 2013, 06:20:15)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import…

user2743055
- 127
- 8
4
votes
1 answer
V8 profiling: linux-tick-processor not working with d8
I'm trying to get the v8 profiling and linux-tick-processor working on my ubuntu.
Basically I have done these steps:
$ git clone git://github.com/v8/v8.git v8 && cd v8
$ make dependencie
$ make native
// added d8 to $PATH
$ d8 --prof primes.js
//…

DerDree
- 277
- 4
- 12
3
votes
1 answer
How is JavaScript code transformed into Machine Code? Or why is it not?
I'm trying to understand the process of how a piece of JavaScript code is executed. So far, I've managed to have most of the layout pictured out, but there's a few gaps that I wish to cover.
I know that a computer's CPU only understands 0's and 1's.…

luckyy13
- 65
- 1
- 8
3
votes
1 answer
Need Clarification on Execution Context
function a(){
b();
var c;
}
function b(){
var d;
}
a();
var d;
I would like clarification on the Execution Context for the code above. From what I understand, during the creation phase of Execution Context functions a and b are set as…

Roma Kim
- 321
- 1
- 8
3
votes
1 answer
Setting gem path from ScriptEngineManager eval method
Is it possible to set my jruby's gem path from the ScriptEngineManager in Java? The problem is that I'm using a compressed jruby interpreter (jruby-complete.jar) and it's not possible to get this package with pre-installed gems, so what I'm trying…

Eder
- 1,874
- 17
- 34
3
votes
1 answer
Is the event-loop, queue, etc. part of the JavaScript runtime or engine?
I know that the document, window, etc. objects are part of the runtime, and I know that the engine deals with things like JIT compilation, running the actual code, etc.
But where does the event-loop, callback queue, etc. lie? Is it in the runtime?…

Adam Thompson
- 3,278
- 3
- 22
- 37
3
votes
2 answers
Is there a port of the Rhino JavaScript engine for .NET
I worked for a company that had both Java and .NET implementations of an application. The app allowed for end-user customization of processing and business rules using scripts. The Java version supported JavaScript using the Rhino engine. The .NET…

Andrew Van Slaars
- 1,816
- 1
- 14
- 20
3
votes
3 answers
How to use V8's built in functions
I'm new in both javascript and V8. According to Google's Embedder's Guide, I saw something in the context section talking about built-in utility javascript functions. And I also found some .js files(e.g. math.js) in the downloaded source code, so I…

Victor jiang
- 33
- 3
3
votes
1 answer
Javascript setter returns value without validation
JavaScript setter updates the internal value at the reference but the return value is not correct.
var Game =
{
get points() {
return this._points;
},
set points(x){
x = Math.min(x,25);
this._points = x; …

sbr
- 4,735
- 5
- 43
- 49
3
votes
1 answer
How to access JavaScript execution trace at runtime in Firefox?
I want to know how to access JavaScript execution trace at runtime. I saw Firebug can do something like this:
Refer to the image above, all the line numbers executed are highlighted in green. They are achieved at runtime. I guess there must be some…

Fshly
- 121
- 7
3
votes
2 answers
Scope of functions vs. code order in Javascript objects
Consider this HTML:
Click me
I would like to write an object with a click handler for each p, but run into the problem that my click handler function could not be found. This code does not work: (function(){ var self = this; …
Jasper de Vries
- 19,370
- 6
- 64
- 102
2
votes
1 answer
Threading in Spidermonkey
I am trying to enable a threaded debug dump in SpiderMonkey, by
editing the jsinterp.cpp file. Basically, the things I am trying to do
are as follows:
Catch a JSScript before the main loop of Interpret() begins.
Open a separate thread.
In that…

Anton
- 153
- 2
- 12
2
votes
1 answer
iOS webapp performance safari vs home screen start
I read an article recently which states that web apps on iOS launched from the home screen running in full screen mode have slower performance than webapps running inside safari.
Then I found a followup article to it which seems to sugguest that the…

spanner
- 21
- 3
2
votes
4 answers
How can my HTML file pass JavaScript results back to a Python script that calls it?
I have a python script and this python script shall call an html-file (i.e. a web page) stored locally on the computer. The html-file does some calculations (jquery,javascript and so on) and should pass the result back to the python script.
I don't…

manton
- 541
- 1
- 6
- 26
2
votes
1 answer
Measuring the Performance with the Hermes Engine
I am trying to profiling in React Native and using hermes engine. I want measure the time in between a function call.
In Js We can use console.time or performace.now but when I am using those fucntion with hermes engine I am getting "Undefined is…

rahul goyal
- 125
- 2
- 8