|
Get a variable in the scope chain
|
| |
Hello. I am trying to access a variable value in the current scope chain: function foo() { var myVar = 123; function bar() { Print( EvalVarByName('myVar') ); }; bar(); ...foo(); EvalVarByName native function is define as: ... JSStackFrame *fp = JS_GetScriptedCaller(cx, NULL); JSBool found;... more »
|
|
How to build JS 1.8.0 using MSVC 6.0 (win32)
|
| |
Hi, How can we build Spidermonkey JS 1.8.0 in Windows (32-bit) using Microsoft Visual C++ 6.0 compiler (even using the command line build methods)? I tried to follow the same approach as that for JS 1.5, but came across multiple issues: Issue1: js.mak not available. I tried to use the js.mak provided at [link]... more »
|
|
Lock contention and performance problems
|
| |
I am also running into lock contention performance problems mentioned in this thread <[link] engine/browse_thread/thread/d7 0153f89d8d0736/f259b8abdd76764 2? lnk=gst&q=mutex#f259b8abdd7676 42>. Instantiating interpretor per thread seems to work great and I am running with JS_THREADSAFE option.... more »
|
|
JS 1.5 - 64 bit - two direct queries
|
| |
Hi, Couple of direct questions related to 64-bit support in JS1.5. Kindly provide some clarifications: a) Has anyone ported Spidermonkey JS 1.5 for embedding in 64-bit environments (x86_64 or ia64)? If yes, is the modified source or build files available for reference or usage? b) As my colleague Puneet reported in an earlier mail thread, JS 1.5 code... more »
|
|
64 bit porting of JS
|
| |
Hi, I am using JS 1.5 RC 6 codebase released in 2005. In recent discussions, I got that Spidermonkey supports 64 bit platform ( [link]). Even though I didn't get any specific document talking about support of 64 bit platform architecture.... more »
|
|
XPC.mfasl
|
| |
Hi, the file XPC.mfasl is part of the user profile. Who is responsible for invalidating this file i.e. after updating a *.jsm file? Changes to the JavaScript module in a *.jsm file are not populated to the application until the file XPC.mfasl has been deleted. Is there an API to tell XulRunner to invalidate this file for all users on next application... more »
|
|
js 1.8.1 gc doesn't automatically run
|
| |
Hi everyone, I've been playing with the latest 1.8.1 source, and it appears that something is wrong with the garbage collection threshold specified in JS_NewRuntime(). Here's some quick example code: for ( var i = 0 ; i < 1000 ; i++ ) { print(i); //gc(); obj = new Array(); for ( var j = 0 ; j < 100000 ; j++ )... more »
|
|
Deprecating JSCLASS_SHARE_ALL_PROPERTIES?
|
| |
Bug 527805 <[link]> indicates that classes with the JSCLASS_SHARE_ALL_PROPERTIES flag are seriously broken with the JIT enabled. It has been busted for quite some time. Brendan suggests just deleting the feature. Mozilla isn't using it. Does anyone need it?... more »
|
|
|