JS_THREADSAFE assert triggered in FF 3.6
Running Chromebug on my FF 3.6 debug build I fail on this assert:
105 #if defined(JS_THREADSAFE)
106 #define CHECK_REQUEST(cx) \
107 JS_ASSERT((cx)->requestDepth || (cx)->thread ==
(cx)->runtime->gcThread)
108 #else
109 #define CHECK_REQUEST(cx) ((void)0)
110 #endif
The assert failure exits (!).
Is there a way to say "yea sure whatever, just try your best"? The exact
same run on distributed FF 3.6 run with no crash.
jjb
|
3/8/2010 1:57:43 AM
|
7
|
johnjbarton <johnjbar...@johnjbarton.com>
|
|
Liveconnect and spidermonkey 1.8
Hi,
I've download js-1.8.0-rc1, and built js engine and liveconnect on
Windows.
I do not have problem to run JS_ExecuteScript a simple JS script such
as
'var i=1;' . But if I try a Java code like ' x=new
java.lang.String(\"test\")'. and seems I could create JVM via JNI
without problem
but the JS_ExecuteScript always returned me 0. Any idea ?
Regards,
|
3/3/2010 2:56:48 PM
|
3
|
nap_z <zz...@myway.com>
|
Function parameters
hi guys,
i am using spider monkey 1.8 to parse javascript source and print the tree.
The problem is that i cannot print funtion parameters.
For example
function product(a,b){return a*b};
parameters a and b are not printed.
The code is
//////////////////////////////
function = (JSFunction *) JS_GetPrivate(context,
(*root->pn_u.func.funpob).object);
printf("Function: %s (",
JS_GetFunctionName(function));
// Arguments
object = JS_GetFunctionObject(function);
JSScopeProperty* sp =
|
3/3/2010 1:50:11 PM
|
1
|
antoine <antonis...@gmail.com>
|
Threads and GC API changes
Igor Bukanov and I are working on some significant changes to
SpiderMonkey's threading model and garbage collector. These changes
will affect embeddings that are sharing objects among threads.
Details and rationale here:
https://wiki.mozilla.org/JSThreadsAndGC
I'm announcing this in advance of having the new proposed API in
hand. You can expect a rough proposal later this week. Questions and
comments are welcome, as always.
-j
|
3/2/2010 12:34:05 AM
|
14
|
Jason Orendorff <jorendo...@mozilla.com>
|
closure access to unused variables in closed-over scopes
A firebug user is complaining that Firebug fails in a case like:
var www = 'asdasd'; // Can't access 'www' on breakpoint
this.closure = function()
{
rrr = 5; // <<< breakpoint here
}
http://code.google.com/p/fbug/issues/detail?id=2871
I assume that any objects not referenced by the function in a closure
are not 'bound' into the enclosing scope, so there is no bug here.
Firebug is just issuing eval('www') in the frame of the function, not
much we can get wrong...
jjb
|
2/28/2010 5:00:29 AM
|
6
|
johnjbarton <johnjbar...@johnjbarton.com>
|
one Runtime per Thread isolation
Dear All,
we are developing an application in which every thread has a distinct
JS_Runtime & Context, and we are wondering if it is possible to avoid to
compile it with JS_THREADSAFE. Unfortunately from
https://developer.mozilla.org/en/SpiderMonkey/JSAPI_Reference/JS_THREADSAFE it
seems that some data is shared between runtimes.
Any suggestions for finding spots to be patched for obtaining such behavior?
(eg. jsdtoa.c)
Thanks in advance
Best Regards,
Emanuele Ruffaldi
|
2/26/2010 11:15:33 PM
|
0
|
Emanuele Ruffaldi <emanuele.ruffa...@gmail.com>
|
Proxies and security wrappers
Sorry this is so long. I have to run immediately to catch a train.
There's actually a lot more to say, so please let's discuss...
Andreas has been working on an implementation of Mark Miller et al's
Proxy proposal, adding the GC support, and so on - which is all good
stuff. We're going to explore using Proxy to implement our security
wrappers, which is an awesome idea-- but I have misgivings I want to
voice now.
1. I think it'll be much easier to write correct security wrappers in
C++ than in JS. The main difference is that C++ code doesn't call JS
functions implicitly. The
|
2/26/2010 7:10:52 PM
|
6
|
Jason Orendorff <jorendo...@mozilla.com>
|
jsapi get slot from jsval
Hi,
The jsapi.c JS_CallFunctionValue subject, I would like to know the
parameters fval, which slot number of the called function in the given
context, and object.
If it is possible.
Thank you, Peter
|
2/24/2010 11:56:54 AM
|
1
|
"DrMcKay (Peter Veres)" <moltes...@gmail.com>
|
function return type
Hi.
Is it possible to know JavaScript function return type, function
parameters types, variable type using SpiderMonkey?
Example:
function doSomething (Date)
{
try
{
var Res = check(Date);
switch (Res)
{
case 1 :
return (true);
break;
case 0:
return (false);
break;
case -1:
return
|
2/22/2010 2:18:17 PM
|
1
|
Alexander Zezulinsky <palgol...@gmail.com>
|
jsapi dump
Hi,
I want to modify a little bit the jsapi. In the JS_CallFunctionValue
method i want to dump all vars which are set in the global object. But
now i can dump only the properties. When i try to get the parent /
prototype objects it returns 0 as enumArr->length. How can i dump the
defined vars with values in the current context or in the global?
(I use JS_THREADSAFE)
Sorry for my english.
Thank you,
Peter
|
2/19/2010 12:55:48 PM
|
0
|
"DrMcKay (Peter Veres)" <moltes...@gmail.com>
|
Finding array access bounds in SpiderMonkey
Hi,
I was wondering if there's any way in SpiderMonkey to figure out the
range of accessed elements in an array. (e.g. during parsing or compilation)
For example in the following JS code:
for (i = 0; i< 100; i++) {
myarray[i] = i;
}
Can I somehow in the parser or compiler detect that elements 0 to 100 in
myarray are touched?
Thanks,
Mojtaba
|
2/19/2010 12:24:08 AM
|
0
|
none <""mehrara\"@(none)">
|
jsreftests now on mozilla 1.9.2
You can now run the jsreftests on 1.9.2 the same way you can on 1.9.3
and tracemonkey. I'll work towards getting them on the tinderbox as soon
as I can.
|
2/18/2010 7:58:16 PM
|
0
|
Bob Clary <bclary+n...@bclary.com>
|
thiago silva has invited you to join Friendster
You're invited to join thiago silva's network of friends.
By joining Friendster, you can reconnect with old
friends, meet new friends, start a blog, build a custom
profile, keep track of birthdays, and so
much more!
You can even stay in touch if you move away, switch
email addresses, or lose your mobile phone.
Click below to join thiago's network.
http://www.friendster.com/join.php?inviteref=119553532&invite=vudHYajyOKw87biVGIPQxWcbFQSqmphw5A_2X_uctpJ65MNjwo5ijkFUD9z-GN39&lang=en-US
*****************************************************************
If you do not wis
|
2/11/2010 5:46:53 PM
|
0
|
thiago silva<tsilva....@gmail.com>
|
JS_HAS_FILE_OBJECT support removed in TraceMonkey repository
Given current priorities for most of the TraceMonkey team (making JS fast, feature-ful wrt ES5 and future revisions, etc.) the ancient, opt-in file support code is not being maintained, improved, meaningfully bugfixed, etc. It's therefore been removed from the repository to reflect the reality that we are busy frying other fish and don't have time for it. It's still in history if you really need it -- but you should really consider one of the other, actually-maintained solutions out there instead if at all possible.
Jeff
|
2/11/2010 12:41:15 AM
|
0
|
Jeff Walden <jwalden+...@mit.edu>
|
Proposed changes to JS_THREADSAFE rules
This post is about changing the rules about sharing objects in
JS_THREADSAFE builds of SpiderMonkey. Feedback is desired, especially
from brendan, igor, gwagner, and anyone else interested in taking some
of the work.
As it stands, in a build with JS_THREADSAFE, JSObjects can theoretically
be shared across threads and accessed from any thread. Any locking
necessary to avoid crashes supposedly happens internal to the JSAPI. But
there are bugs:
- Dense arrays are not thread-safe (bug 419537).
- Generators, iterators, and E4X objects are not thread-safe
(bug 349263).
|
2/8/2010 8:19:16 PM
|
2
|
Jason Orendorff <jorendo...@mozilla.com>
|
avmplus - instance init method
I'm debugging some AS3 code created in flash. When I run the swf file
in avmplus shell it runs the global initialization code (created by
the flash editor), and when it creates the MainTimeline (MovieClip
class) it calls the class's init method but it doesn't call the
instance's init method. I had to add the MovieClip class into
toplevel with the following class difinition:
package flash.display
{
[native(cls="MovieClipClass", instance="MovieClipObject",
methods="auto")]
public dynamic class MovieClip extends Object
{
// addFrameScript
public native function ad
|
2/6/2010 12:49:59 AM
|
0
|
cwarner100 <cwarner...@gmail.com>
|
using /source/js/src/md5.js in /source/toolkit/components/passwordmgr/src/storage-mozStorage.js ?
Dear beloved newsgroup :-)
Maybe you can help me. I don't know exactly who in xpcom interpretes the
javascript xpcom components before registering them (does spidermonkey
do that, too?), but there's my problem:
I need to be able to do hashes in passwordmanager's
storage-mozStorage.js. I'm looking for the simplest way to use code from
somewhere else, like a "library". (If possible, I don't want to call
another xpcom component to do the hashes for me - but if I need to,
which one would you use? It doesn't matter which algorithm, could also
be SHA-something or other...).
I
|
2/4/2010 4:49:54 PM
|
0
|
Marc Kaeser <marc.kae...@gmail.com>
|
tail call optimization implemented in Javascript
Hello,
I experimented recently with tail call
http://glathoud.easypagez.com/publications/tailopt-js/tailopt-js.xhtml
optimization on Firefox 3.6. This is working
http://glathoud.easypagez.com/publications/tailopt-js/tailopt-js.xhtml#gcdconcise
very well , *except* in a tree traversal code, where recursive runs faster
als tail recursive, itself much faster as tail optimized (respectively
"treeforeach_rec", "treeforeach_tail" and "treeforeach_tailopt" in the
http://glathoud.easypagez.com/publications/tailopt-js/tailopt-js.xhtml#crossbrowser
results ).
I was expecting exactly
|
2/2/2010 1:24:03 PM
|
0
|
"G. Lathoud" <glath...@yahoo.fr>
|
AST Dump
Hi, all,
I am trying to add a new functionality in spiderMonkey, to dump the
Abstract Syntax Tree of a javaScript program in dot format. This is
something like clang does, in LLVM, for instance, and it helps
debugging. I have a tree here: http://dcc.ufmg.br/~rsol/docs/ast.pdf,
that my procedure has produced to this js
http://dcc.ufmg.br/~rsol/docs/t4.js.
The whole procedure is almost done. But I am missing two things:
1 - What is the best way to integrate this feature? Using a new
argument in the command line or creating a new environment variable?
Should the name of the dot f
|
1/26/2010 6:28:21 PM
|
0
|
Rodrigo Sol <rodrigo...@gmail.com>
|
remove JS_PushArguments[VA] ?
It sounds like JS_PushArguments[VA] should have been part of the friend
API since it uses js_AllocStack which allows callers to build an
argument array for js_Invoke. Talking to Brendan, this function was
initially used in xpconnect, but it doesn't seem to be used anymore in
lieu of calling js_AllocStack directly. MXR shows only one use, in
xpinstall, which seems simple to convert.
JS_PushArguments's use of js_AllocStack interferes with changes to
interpreter stack layout changes (bug 540706) underway, so I would like
to remove both JS_PushArguments and JS_PushArgumentsVA.
|
1/21/2010 2:43:58 AM
|
0
|
Luke Wagner <...@mozilla.com>
|
Interpretor parking in JS
Hey folks, does spidermonkey provide a way to suspend/resume execution
of scripts? NOTE: while JS_SuspendRequest or JS_YieldRequest does
allow GC to be unlocked it is not what I am looking for. I am running
JS in an embedded system (non threaded mode) where I will have to make
multiple networking and other potentially long lived requests in a
single interpretor.
Lets say I am executing the script shown below and my_custom_request
is a *native call* implemented in C that carries out a networking
request. The native that would normally block for the IO completion
and instead of blo
|
1/18/2010 7:17:18 PM
|
1
|
gurkhali <fin.p...@gmail.com>
|
enabling E4X support for the embedding host of spidermonkey
I like to know how e4x is exposed to embedding host ? When a E4X
object reaches to host from the script then how can host can know that
this is a E4X object ? What type of operations can be performed by
embedding host on the E4X object received ?
|
1/18/2010 12:58:54 PM
|
0
|
sandeep <sandeep.d...@gmail.com>
|
Regular Expressions -- use NFAs when not using backreferences for better performance?
Hi there,
I've recently been reading through http://swtch.com/~rsc/regexp/regexp1.html,
which describes a different approach to evaluating regular
expressions. Have a read, but the upshot of the article is that there
exists an alternative method of evaluating regexes (using non-
deterministic finite automata, or NFAs) that provides O(n^2)
performance, as opposed to the Perl algorithm's O(2^n). The only
caveat is that using NFAs, it's not possible to use backreferences.
Is it perhaps worthwhile investigating using NFAs when presented with
'simple' regexes to improve performance? Lo
|
1/11/2010 12:36:35 AM
|
9
|
Barryvan <bvanoudtsho...@gmail.com>
|
Issue with JS_NewArrayObject and prototype
Hi,
Im using Spidermonkey 1.8.1 (Mac OSX 10.6)
Here is the problem :
Im building an array with the following :
obj = JS_NewArrayObject(cx, 0, NULL);
[Adding some element to the array]
Then, I call a JS function passing this array as param :
params[0] = OBJECT_TO_JSVAL(obj);
JS_CallFunctionValue(cx, JS_GetGlobalObject(cx), func, 1, params, &rval);
My function looks like something like that :
Array.prototype.foo = 'a';
function(params){
log(params.foo);
log((params.constructor == Array)); // true
log([].foo);
}
"params" can't resolve "
|
1/7/2010 9:58:37 PM
|
0
|
Anthony Catel <a.ca...@weelya.com>
|
Serializing the global object
Hi
I am experimenting with serializing the global object via XDR.
I came across the function js_XDRBlockObject in jsobj.cpp and was
wondering what this function does.
Can it be used to serialize an arbitrary Javascript object or do I
have to write my own code for that?
Thank you
|
1/7/2010 9:39:42 PM
|
1
|
mme <markus.ec...@gmail.com>
|
Finding function calls in javascript source.
I want to add a "dynamic call stack" feature to Firebug. Of course
"dynamic" and "call stack" are redundant, but Firebug's current call
stack representation is "lexical" and most developers expect it to be
lexical.
To implement a dynamic call stack I need the expression that selected
the function called. For example consider:
function foo_NFE() {
return baz_NFE(); // how should we label this call?
}
var bar_NFE = function bar_NFE(){
debugger;
};
var baz_NFE = bar_NFE;
bar_NFE = "die";
In the static case, the call stack at debugger will have
bar_NFE()
|
12/31/2009 9:38:04 PM
|
4
|
"John J. Barton" <johnjbar...@johnjbarton.com>
|
out of memory error from spidermonkey 1.7 ( not seen on 1.5 )
I am seeing an issue with 1.7 where it is giving out of memory error.
Spidermonkey 1.5 works fine. We have this script,
for( i = 1; i < 126000; i ++ )
{
myExposedMethod("myclass.name = " + myclass.name );
}
where myExposedMethod is a C function exposed to the script by
embedding host. Similarly myclass is also an class exposed by
embeddnig host. myclass.name is a string which remains rooted
( JS_AddRoot ). I even made myExposedMethod to just do nothing and
return JS_TRUE, still I am seeing the issue. On spidermonkey 1.5, this
works fine even with loop count increased to 10
|
12/23/2009 7:37:47 AM
|
2
|
sandeep <sandeep.d...@gmail.com>
|
problem with addeventlistener in thunderbird
hi
i'm using the function
<script >
window.addEventListener("unload", autoExportOnClose, false);
</script>
in my xul overlay for thunderbird to start my automatic export from
lightning.
but it doesn't work with failure...
Fehler: [Exception... "'[JavaScript Error: "autoExportPrefs is not
defined" {file: "chrome://autoexport/content/autoExport.js" line:
116}]' when calling method:
[calIOperationListener::onOperationComplete]" nsresult: "0x80570021
(NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)" location: "JS frame ::
file:///D:/11%20AppData/Thunderbird/Steffen/extension
|
12/18/2009 11:29:01 AM
|
0
|
Steff81 <steffen.roet...@googlemail.com>
|
Is spider monkey 1.8 is released.
Hi,
We would like to upgrade JS Engine version from 1.6 to 1.8 as one of
the bugfix which we are waiting for is provided in 1.8 But when I
visited the spider-monkey site (https://developer.mozilla.org/En/
SpiderMonkey/1.8), it still shows coming soon. The site was last
updated in March 2009.
Can anyone please tell me whether its released or when the release 1.8
would be
available. The site mentions that its candidate release.
Thanks and With Warm Regards,
-RV
|
12/16/2009 7:13:55 AM
|
1
|
RV <rahul.va...@gmail.com>
|
Custom object/class conversion/serialization to a string object
I have a custom object/class that has private data and I am trying to
add logic to convert it to a string type or you might also call it
serialization to string. Looks like the suggested way is to use
JSGetObjectOps and use the defaultValue to convert to the appropriate
type. However the documentation suggests that this is a internal
feature.
Am I making this more difficult that it is? Is there an easier way to
do this? I already implemented the convert function (JS_ConvertStub)
but looks like that is not being called by object.toString() or when I
do a JSON.stringify.
Thanks,
B
|
12/9/2009 6:35:29 PM
|
2
|
gurkhali <fin.p...@gmail.com>
|
Authority of plugins
ActionScript provides the ExternalInterface class, which allows a
Flash developer to expose a subset of the methods in his program to
JavaScript code. This limits the authority of the JavaScript code to
affect the internal state of the Flash app, which is appropriate; it's
rather like a firewall.
The web page, on the other hand, has only a very crude way of limiting
the authority of the Flash app to affect the internal state of the
browser: all or nothing, as specified in the allowScriptAccess or
allowNetworking parameters. JavaScript rewriting projects like
Facebook's FBJS, Googl
|
12/1/2009 1:06:51 AM
|
0
|
metaweta <metaw...@gmail.com>
|
extension access check problem
Hi:
We found that all the extensions in firefox work in the same
jscontext and no same origin check is done for accesses to objects in
that context. The SameOriginCheck only happen when access occurs
between two different contexts, right?
If it is the case, what can we do if we want to add extra check whenever
we access one object from one extension to another? What would be the
proper functions we can look at? Looking forward to your reply.
|
11/27/2009 8:52:12 AM
|
0
|
xiaolei <wenjie011...@gmail.com>
|
Removing JS_strtod and JS_dtostr
I'm fixing bug 509857 ("get rid of LOCK_DTOA"). This avoids entering
and leaving a lock in some cases where we convert a string to a number
or vice versa.
However, with my changes it's no longer convenient to implement
JS_strtod and JS_dtostr.
Note that these functions have never been in jsapi.h. I'm not sure why
they are named with the uppercase JS_ prefix.
Is anyone using these? Speak up!
-j
|
11/25/2009 12:54:48 AM
|
0
|
Jason Orendorff <jorendo...@mozilla.com>
|
Omega Seamaster 300m 2263.80
Omega Seamaster 300m 2263.80
http://www.watchestrade.net/Omega-Seamaster.html
http://www.watchestrade.net/Omega-Watches.html
http://www.watchestrade.net/Omega-Seamaster-300m-2263.80.html
http://www.watchestrade.net/
<br />Availability: In Stock Omega Seamaster 300m 2263.80
Stainless steel case and bracelet, textured electric blue dial,
unidirectional rotating bezel, helium escape valve at 10:00, screw-
down crown and case back, precision Swiss Quartz movement, and date
calendar. Face: 36.25 mm diameter.Omega Midsize Watch Omega Seamaster
Professional - 2263.80 / 226
|
11/24/2009 1:37:04 AM
|
0
|
watches replica <omegawatche...@gmail.com>
|
Blancpain Villeret Mens Watch 4082-3642-55B
Blancpain Villeret Mens Watch 4082-3642-55B
http://www.watchestrade.net/Blancpain-Villeret.html
http://www.watchestrade.net/Blancpain-Watches.html
http://www.watchestrade.net/Blancpain-Villeret-Mens-Watch-4082-3642-55B.html
http://www.watchestrade.net/
<br />Blancpains self-winding chronographs are among the
smallest and the slimmest chronograph movements in the world owing to
a totally new construction concept: The coupling-clutch wheel also
functions as a brake; no additional coupling wheel or blocker is
required. And only one finger drives the minute and hour coun
|
11/24/2009 1:36:51 AM
|
0
|
watches replica <omegawatche...@gmail.com>
|
Movado Bareleto Diamond & Blue Topaz Bangle Ladies Watch 0605475
Movado Bareleto Diamond & Blue Topaz Bangle Ladies Watch 0605475
http://www.watchestrade.net/Movado-Bareleto.html
http://www.watchestrade.net/Movado-Watches.html
http://www.watchestrade.net/Movado-Bareleto-Diamond-Blue-Topaz-Bangle-Ladies-Watch-0605475.html
http://www.watchestrade.net/
<br />High-polished stainless steel case and hinged bangle
bracelet. Mirrored Museum dial. Bezel and bracelet set with diamonds.
Bangle ends set with blue topaz. Spring-loaded hinge for ease and
comfort. Swiss quartz movement. Water resistant at 30 meters (100
feet). Movado Bareleto Di
|
11/24/2009 1:36:45 AM
|
0
|
watches replica <omegawatche...@gmail.com>
|
Tag Heuer Link Blue Mother-of-Pearl Ladies Watch WJF131D.BA0572
Tag Heuer Link Blue Mother-of-Pearl Ladies Watch WJF131D.BA0572
http://www.watchestrade.net/TAG-Heuer-Link.html
http://www.watchestrade.net/TAG-Heuer-Watches.html
http://www.watchestrade.net/Tag-Heuer-Link-Blue-Mother-of-Pearl-Ladies-Watch-WJF131D.BA0572.html
http://www.watchestrade.net/
<br />Stainless steel case and bracelet. Blue mother-of-pearl
dial with 11 Top Wesselton (VVS) diamond hour markers. Screw-in steel
crown. Double safety clasp with folding buckle. Curved scratch
resistant sapphire crystal. Quartz movement. Water resistant at 200
meters (660 feet). Ta
|
11/24/2009 1:36:21 AM
|
0
|
watches replica <omegawatche...@gmail.com>
|
Seiko Coutura Diamond Gold-tone Steel Ladies Watch SXGN28
Seiko Coutura Diamond Gold-tone Steel Ladies Watch SXGN28
http://www.watchestrade.net/Seiko-Coutura.html
http://www.watchestrade.net/Seiko-Watches.html
http://www.watchestrade.net/Seiko-Coutura-Diamond-Gold-tone-Steel-Ladies-Watch-SXGN28.html
http://www.watchestrade.net/
<br />Gold-tone stainless steel case and bracelet. Black
dial. Diamond bezel. Scratch resistant sapphire crystal. Push button
deployment clasp. Cabochon crown. Quartz movement. Water resistant at
30 meters (100 feet).
|
11/24/2009 1:35:51 AM
|
1
|
watches replica <omegawatche...@gmail.com>
|
Audemars Piguet Jules Audemars Equation of Time Mens Watch 26003BC.OO.D002CR.01
Audemars Piguet Jules Audemars Equation of Time Mens Watch
26003BC.OO.D002CR.01
http://www.watchestrade.net/Audemars-Piguet-Jules-Audemars.html
http://www.watchestrade.net/Audemars-Piguet-Watches.html
http://www.watchestrade.net/Audemars-Piguet-Jules-Audemars-Equation-of-Time-Mens-Watch-26003BC.OO.D002CR.01.html
http://www.watchestrade.net/
<br /> <br> Jules Audemars and Edward Piguet were both in
their early twenties when they founded Audemars Piguet in 1875. In
1972 AP launched a line of mechanical watches with hexagonal screws
that fastened a porthole-like bezel.
|
11/24/2009 1:35:43 AM
|
0
|
watches replica <omegawatche...@gmail.com>
|
Girard Perregaux Richeville Diamond 18kt White Gold Brown Leather Ladies Watch 26500-0-53-72M7
Girard Perregaux Richeville Diamond 18kt White Gold Brown Leather
Ladies Watch 26500-0-53-72M7
http://www.watchestrade.net/Girard-Perregaux-Richeville.html
http://www.watchestrade.net/Girard-Perregaux-Watches.html
http://www.watchestrade.net/Girard-Perregaux-Richeville-Diamond-18kt-White-Gold-Brown-Leather-Ladies-Watch-26500-0-53-72M7.html
http://www.watchestrade.net/
<br />Availability: Contact Us For Availability Need
Assistance? Call us at 866-581-JOMAGirard Perregaux Richeville Diamond
18kt White Gold Brown Leather Ladies Watch 26500-0-53-72M7 18kt White
Gold Cas
|
11/24/2009 1:35:30 AM
|
0
|
watches replica <omegawatche...@gmail.com>
|
New harness for shell JSTests
I just landed to the tracemonkey repo a new harness for running the
shell JSTests that we've been working on for a while. My primary goal
was to make the tests run faster on multiple cores and to be easier to
run day-to-day for devs, but it also supports Tinderbox-style reporting
and a bunch of other new features.
The basic usage is:
# in directory js/src/tests
python jstests.py PATH_TO_JS
This will run with a progress bar and report results in a compact way.
The 3 numbers on the left are mochitest-style "passed/failed/known
fails". There is no need to do a base
|
11/23/2009 9:13:58 PM
|
6
|
David Mandelin <dmande...@mozilla.com>
|
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;
JSObject *scope = JS_GetFrameScopeChain(cx, fp);
for ( ; scope; scope = JS_GetParent(cx, scope) ) {
JS_HasProperty(cx, scope, name, &found);
if ( found )
return JS_GetProperty(cx, scope, name, rval);
}
....
(src: http://code.google.com/p/jslibs/source/browse/
|
11/18/2009 3:24:48 PM
|
7
|
"franck.fr" <sou...@gmail.com>
|
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 http://blog.endflow.net/?p=55
<http://blog.endflow.net/?p=55&lang=en> &lang=en
Issue2: jsparse.c compilation issues related to static asserts:
jsparse.c(93) : error C2057 : expected constant expression
jsparse.c(93) : error C2466 : cannot allocate an
|
11/18/2009 2:59:16 PM
|
0
|
Rajesh N <raje...@huawei.com>
|
where System Principal is assign to script Principal
Hi,
Does anyone know, in which function [System Principal] value is set to
firefox native JavaScripts/CSS (including extension )
regards,
Kailas
|
11/18/2009 6:25:08 AM
|
1
|
PATIL Kailas <pati...@comp.nus.edu.sg>
|
Lock contention and performance problems
I am also running into lock contention performance problems mentioned
in this thread <http://groups.google.com/group/mozilla.dev.tech.js-
engine/browse_thread/thread/d70153f89d8d0736/f259b8abdd767642?
lnk=gst&q=mutex#f259b8abdd767642>. Instantiating interpretor per
thread seems to work great and I am running with JS_THREADSAFE option.
The only catch now seem to be that each of the runtime is creating a
back ground thread.
I have some pretty strict requirements on the ability to create
threads per-core and was wondering if there was any way to prevent the
back ground thread (if at al
|
11/18/2009 12:57:45 AM
|
5
|
gurkhali <fin.p...@gmail.com>
|
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
has many occurrences of pointer<->int32 typecasts and assignments. Wouldn't
such code create issues in 64-bit environments? For example, jsarray.c:
jsarray.c:343: warning: cast from pointer to integer of different
|
11/16/2009 1:43:47 PM
|
0
|
Rajesh N <raje...@huawei.com>
|
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 (
http://groups.google.com/group/mozilla.dev.tech.js-engine/browse_thread/thread/d108545385160c52).
Even though I didn't get any specific document talking about support
of 64 bit platform architecture.
Now, I have tried compiling same code base over x86_64
architecture. Though, I am able to build it but with lot of
compilation warnings questioning its successful execution over a 64
bit platform. I am listing some of these warnings, which are specific
t
|
11/16/2009 4:05:23 AM
|
1
|
punsa <engg.puneetsha...@gmail.com>
|
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
start? Deleting it via nsILocalFile might work for the current user, but
should fail for the file in other users profile for security reasons. So
I want to know whether there is an API to invalidate the file globally
to invoke X
|
11/14/2009 5:04:59 PM
|
1
|
=?UTF-8?B?R2VvcmcgTWFhw58=?= <ge...@bioshop.de>
|
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++ )
obj[j] = "1234567890";
}
I'm using the latest source updated today (11/12/09) compiled in Linux, and
executed with the js shell. If I let this run to completion with 1.8.1 it
consumes around 1GB of memory, and the js sh
|
11/12/2009 9:02:10 PM
|
0
|
Cal Heldenbrand <...@fbsdata.com>
|
browser jsreftests now running on mozilla-central
you now have opt and debug coverage of browser jsreftests on
mozilla-central.
remember you only have debug coverage on tracemonkey.
|
11/12/2009 8:03:59 PM
|
1
|
Bob Clary <bclary+n...@bclary.com>
|
Deprecating JSCLASS_SHARE_ALL_PROPERTIES?
Bug 527805 <https://bugzilla.mozilla.org/show_bug.cgi?id=527805>
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?
-j
|
11/11/2009 10:59:15 PM
|
4
|
Jason Orendorff <jorendo...@mozilla.com>
|
Issue with embedding
Hello,
I am trying to embed spidermonkey for the first time, and I have made
some efforts to start doing the examples from the README.html and the
Thus far the examples haven't been helpful in understanding the system
but when I go to compile I get:
[root@localhost spidertest]# gcc spider.c
/tmp/cc2UWcOn.o: In function `main':
spider.c:(.text+0x15): undefined reference to `JS_Init'
spider.c:(.text+0x2f): undefined reference to `fail'
spider.c:(.text+0x3d): undefined reference to `JS_NewContext'
spider.c:(.text+0x57): undefined reference to `fail'
collect2: ld returned 1 exit s
|
11/11/2009 9:41:27 PM
|
0
|
Mark Lapointe <m...@revynet.org>
|
tracemonkey tests
Hello!
Tracemonkey has tests directory in it's distribution, and special perl
script jsDriver.pl that perform testing. However, some tests fail, and
it is normal - that tells us wiki (some tests are obsolete, etc.). Is
there any way to run subset of tests that always must pass (even in
case of active development), just to verify that current verdion of
tracemonkey is working correctly?
I using tracemonkey from hg.mozilla.org/tracemonkey .
|
11/10/2009 6:09:21 PM
|
1
|
itroot <ivan.tolstoshe...@gmail.com>
|
Valgrind-style tool for Windows
Hi,
I just learnt of a new, free, Valgrind-style memory checking tool
which works on (32-bit) Windows and Linux:
http://dynamorio.org/drmemory.html
I haven't tried it but it might be useful.
Nick
|
11/10/2009 4:35:23 AM
|
0
|
Nicholas Nethercote <n.netherc...@gmail.com>
|
Mozilla memory usage
**Please let me know if I need to post to a different group.**
Hi
Our product is built on top of Mozilla Firefox 3.0. We use it
differently from a regular user since ours is an automated solution
and in a given time span it issues lot more requests.
One of the problems we are facing is that Mozilla is using lot of
memory, if it is run for a long time. In some cases, long time can be
few hours and in other cases it is more than 18 hours. What I noticed
was that mozilla is holding on to lot of memory. VM size is getting
more than 1GB and eventually it is crashing.
Then I did so
|
11/9/2009 5:40:23 PM
|
2
|
srinivas <ssnook...@gmail.com>
|
question about creating function objects
In ECMA-262 specification page 72, section 13.2 Creating Function
Objects, it says
Given an optional parameter list specified by FormalParameterList, a
body specified by FunctionBody, and a scope chain specified by Scope,
a Function object is constructed as follows:
1. If there already exists an object E that was created by an earlier
call to this section's algorithm, and if
that call to this section's algorithm was given a FunctionBody that is
equated to the FunctionBody
given now, then go to step 13. (If there is more than one object E
satisfying these criteria, choose one
at th
|
11/5/2009 11:25:09 PM
|
2
|
Yan Huang <y...@virginia.edu>
|
Treehydra as JS test suite
Taras says JS development has been regularly busting Treehydra lately. A
recent example would be
https://bugzilla.mozilla.org/show_bug.cgi?id=526299
Taras suggested adding Treehydra's unit tests to our regular JS testing.
What do JS devs think of that? Currently, it would require building
Treehydra (including building a patched gcc) and then running 'make
check' in Treehydra.
--
Dave
|
11/5/2009 1:53:56 AM
|
2
|
David Mandelin <dmande...@mozilla.com>
|
get replayable trace from JavaScript execution
Is there a way to collect replayable traces from running JS programs?
By replayable, I mean the trace should capture enough information for
reproducing the same computation, although it might require developing
additional tools to "replay" the computation.
Obviously, my next closely related question is, what is the most
convenient way to develop such a replay tool?
Any suggestions and ideas are very welcome! I appreciate it.
Thanks,
Yan
|
11/4/2009 7:28:37 PM
|
4
|
Yan Huang <y...@virginia.edu>
|
how to define my own error.errCode and error.errMsg?
hi, guys,
i am not sure how to throw the exception so that in js code i can
using print(error.errCode + error.errMsg).
here is the example:
//c++ code
void my_own_func( )
{
try {
// some c++ code here
}catch(exception&error)
{
// ------what to do here???? using JS_ReportErrorNumber ?i have
tested it but not run well.
}
}
// filename: test.js
try{
// some js code;
}
catch(error)
{
print(error.errCode + error.errMsg); //how can make this run well???=
?
}
thx
=A3=BA=A3=A9
--=20
best regards
|
11/4/2009 7:55:01 AM
|
0
|
Aiscanf <aisc...@gmail.com>
|
Threading and sharing of global objects.
After a bit of reading of the docs and on the Mozilla site I had
couple of question with regards to threading and sharing of global
variables. I have execution model with multiple threads (each with its
own context) running precompiled scripts in a non web environment. I
am trying to build a security sandbox where local variables are
'private' to each of the requests/sessions but they have read/write
access to global variables.
Every thing appears to be working great so far but I am a bit unsure
on the atomicity of global variable modifications.
All of my JS_ calls are enclosed in
|
11/3/2009 12:25:11 AM
|
1
|
gurkhali <fin.p...@gmail.com>
|
Reg 64-bit architecture support for Spidermonkey 1.5 and NSPR 4.4.1 components
Hi,
I would like to get some information regarding 64-bit platform architecture
support for Spidermonkey and NSPR components.
For a server application, we are using Spidermonkey JS Engine 1.5 version
and NSPR 4.4.1 version components.
Till now we have been using 32-bit libraries of these components in
different UNIX-based platforms.
We are evaluating technical aspects of migrating the application to 64-bit
platforms (including x86_64 and IA64 models). Towards this, I have a few
queries which I am listing down below:
a) Are Spidermonkey 1.5 and NSPR
|
11/2/2009 12:56:40 PM
|
13
|
Rajesh N <raje...@huawei.com>
|
What really happens when you do javascript "alert()" in Firefox (or in other browsers)?
Hi all,
I have some question on the behavior of javascript function alert() in
the firefox browser. I don't if I am posting to the right forum.
Please tell me if I should post it anywhere else.
So here is the problem:
Everyone is talking about that there is only a single thread for
interpreting the javascript code for each page. That means you should
not be able to create interleaving behavior, for example for two piece
of code attached to two different event handler.
However, you can some how create interleaving behavior by "alert()",
here is the example: Suppose we defined
|
11/2/2009 11:05:57 AM
|
4
|
Zhengqin <zhengqin...@gmail.com>
|
Nanojit merge complete: FLAG DAY
Hi,
Please read this email in full if you work on nanojit. You're likely to
lose work in the near future if you do not.
Today is our "nanojit merge completion" flag day. The merge is done; we
finished at 7pm pacific tonight, revision 9df70d3d88ea in
nanojit-central. This corresponds to the following two revisions in
tamarin and tracemonkey:
http://hg.mozilla.org/tamarin-redux/rev/6e89a44f87de
http://hg.mozilla.org/tracemonkey/rev/a658f130ad09
This means several things for anyone who works on tamarin or
tracemonkey, and has occasion to make changes to the nanojit
subdir
|
10/30/2009 2:16:10 AM
|
0
|
Graydon Hoare <gray...@mozilla.com>
|
jstests: licensing, templates, gTestfile, gczeal, test coverage
js tests licensing:
Hey all. In response to the increased overhead of the license headers in
the jstests, we are going to be releasing as many of the tests under the
public domain as we can get permission from the listed contributors to
do so.
Essentially, the license boiler plate will be replaced by:
/*
* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/licenses/publicdomain/
* Contributor:
*/
If you are listed as the sole contributor on a js test, please either
replace the license boiler plate with the above pd with your name added
|
10/29/2009 8:26:40 AM
|
0
|
Bob Clary <bclary+n...@bclary.com>
|
Use of 'bool' in SpiderMonkey code
If we're migrating towards bool/true/false over JSBool/JS_TRUE/JS_FALSE,
what's our policy towards SpiderMonkey headers #included into C code?
Should they continue to use JSBool? #include <stdbool.h>, even though
that introduces a definition for 'bool' into client code?
C99 has a _Bool built-in type, which allows new headers to use the type
without introducing definitions for 'bool' into old code, because _Bool
isn't defined in C++; defining it ourselves seems like asking for more
trouble.
My personal preference would be to simply #include <stdbool.h> in
jstypes.h if !defi
|
10/28/2009 7:51:47 PM
|
2
|
Jim Blandy <j...@mozilla.com>
|
Serverside non HTTP JS implementation
I am looking to add a serverside JS scripting for a non HTTP embedded
application. I have an environment where I know what scripts each of
the clients will use 'a priori'. In another words, I would like to
precompile these scripts and reuse them for multiple request. The
execution context on the other hand needs to be different for each of
the sessions (can consist of multiple requests). In this environment
each of the session have access to their private session data and
possibly (optionally) to a shared global data.
Is the context object in SM designed to be used this way?
Bhush
|
10/28/2009 5:11:36 PM
|
5
|
gurkhali <fin.p...@gmail.com>
|
how to disassemble JS for an entire program?
In the documentation of spidermonkey's JS shell, it says the following
about dissrc command:
dissrc([function])
Disassembles the JavaScript bytecode for the entire program, or for
the specified function, showing the source lines. This function only
works with programs loaded from files, either using the -f flag on
launching the shell, or by using the load() function.
But I am not very clear how can I use dissrc to disassemble the entire
program. The example given only demos how to disassemble a function
object. How could I achieve similar things on entire programs? Or is
this a m
|
10/28/2009 2:38:43 AM
|
0
|
Yan Huang <y...@virginia.edu>
|
from jsopcodes back to JavaScript
Is there a "decompile" function already existing in the current
spidermonkey's code base that translate a jsopcode program back to
JavaScript program? In other words, I am looking for a utility which
inverts the JS shell command dis().
Thanks,
Yan
|
10/27/2009 9:50:24 PM
|
6
|
Yan Huang <y...@virginia.edu>
|
Gecko object key interpretation specific: a bug or a feature?
Having a statement such as:
var obj = {
foo: 'bar',
default: 'default_value'
}
Firefox 3.5.3 creates obj with properties foo and default.
IE reports syntax error "Expected identifier, string or number", same
or similar syntax error occurs on Safari, Chrome and Opera. By placing
default into quotes we are making the code valid for all browsers in
question:
var obj = {
foo: 'bar',
'default': 'default_value'
}
My question is if it is a Gecko bug, a convenience extension or the
proper implementation by ECMA with others being wrong on that?
|
10/24/2009 7:20:00 PM
|
3
|
VK <schools_r...@yahoo.com>
|
Adding a method to the date object
I'm currently attempting to add an extra method to the built in date
object that allows me to acess the time stamp counter on my machine.
As such, I've created a new method, which is initialized using JS_FN.
Unfortunately, it appears that writing to the vp argument in the
method with the value I wish to return causes a seg fault further down
the line.
This is the method I'm using:
static JSBool
date_getRDTSC(JSContext *cx, uintN argc, jsval *vp)
{
unsigned a, d;
asm("cpuid");
asm volatile("rdtsc" : "=a" (a), "=d" (d));
*vp = INT_TO_JSVAL(((ticks)a) | (((ticks)d) <<
|
10/23/2009 11:19:30 PM
|
8
|
Nicolas <nicolas....@gmail.com>
|
User property of a <form> element is not enumerable
If I create a <form> element and set a new property on it, it's not
visible when enumerating properties.
As far as I know it's because <form> elements implement an enumerate
hook to access form fields.
Is there a way how this hook can be bypassed to get user defined
properties? (I am a Firefox extension - Firebug)
Example:
var form= document.createElement('form');
form.myProp = {ID:'test', Value:'someValue'};
// Following cycle doesn't see the "myProp" property
for (var p in form) {
// ...
}
Thanks!
Honza
|
10/23/2009 3:44:29 PM
|
2
|
"Honza (Jan Odvarko)" <odva...@gmail.com>
|
Gesture events in Firefox 3.5
Hi !
I came accros this page about Gesture events on
developper.mozilla.org : https://developer.mozilla.org/En/DOM/Mouse_gesture_events.
This sounded cool to implement with a map interface so I decided to
give it a try. My first step was to find how I could register to the
events, so I tried :
function onSwipe(event){ alert("Swipe"); }
window.addEventListener("MozSwipeGesture",onSwipe,true);
But despite all my efforts, I cannot manage to get my little alert.
I'm using FF3.5 on Mac OS X on a Mac Book Pro supporting multitouch.
If anybody has a clue on why this doesn't work, it
|
10/22/2009 9:24:47 PM
|
1
|
Romaric Pascal <romaric.pas...@gmail.com>
|
SpiderMonkey 1.8.1 now throwing TypeError when setting a property that has only a getter
Hi all,
According to https://bugzilla.mozilla.org/show_bug.cgi?id=478047,
newer versions of SpiderMonkey now throw a TypeError: setting a
property that has only a getter instead of silently ignoring the
assignment as before.
var o = { get p() { return "a"; } };
o.p = "b";
>>TypeError: setting a property that has only a getter
Although I understand the reasons behind the change, isn't Mozilla
worried about introducing a change that breaks backwards compatibility
with already existing JavaScript code? What's your take on this issue?
Thanks!
Pedro
|
10/21/2009 6:00:58 PM
|
3
|
Pedro <pedro.navarro.frag...@gmail.com>
|
array.forEach, strange bug
Hi,
Im trying to iterate over an array that I built like the following :
C :
cobj = JS_NewArrayObject(cx, 0, NULL);
// iterate over things
jval = OBJECT_TO_JSVAL(item);
if (JS_GetArrayLength(cx, cobj, &rval)) {
JS_SetElement(cx, cobj, rval, &jval);
}
// end
JS :
x.forEach(function(el) {
// nothing
});
Result :
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
js_Inter
|
10/20/2009 9:09:07 PM
|
5
|
Anthony Catel <a.ca...@weelya.com>
|
Custom JSMarkOp callback not triggered in GC
Hi All,
I have added a custom object to SpiderMonkey and am testing it with
the browser integrated. Everything works fine except the Garbage
Collector. My custom object has several JSObject* as its private data
members. I have also declared the JSClass flags as
JSCLASS_MARK_IS_TRACE and defined the JSMarkOp callback as
JS_CLASS_TRACE(custom_trace). In this custom_trace, i walk over all
the private JSObject* and invoke JS_CallTracer after checking their
traceability.
The strange problem is that this custom_trace callback is never
triggered. My logs confirm that it is not invoked -
|
10/19/2009 2:53:32 PM
|
1
|
Mohan <mohan.dha...@gmail.com>
|
Interested in QA analyst or testing or analyst position
Hi
I am Alivelu Duvvuri and working in oeom as analyst. I have
knowledge of quality center and manual testing . I am also good in
microsoft project, excel, word, powerpoint, visio and access and
knowledge of programming languages like c. I already contacted
mozilla team. They told me to post here. If you have any
opportunities please let me know.
Thanks,
Alivelu. Duvvuri
952-583-5346
|
10/16/2009 5:57:44 PM
|
0
|
Alivelu <alivel...@gmail.com>
|
undefined symbol: __udivsi3 ?
Hi All :
I wang to compile js-1.8.0-rc1.tar.gz for at91sam9261 arm board with =
compiler cross-3.4.1.=20
this is my steps.
cd src
make -f Makefile.ref LD=3Darm-linux-ld CC=3Darm-linux-gcc =
CCC=3Darm-linux-g++
cp jscpucfg to my board and run , cp file jsautocfg.h to =
src/Linux_All_DBG.OBJ/
make -f Makefile.ref LD=3Darm-linux-ld CC=3Darm-linux-gcc =
CCC=3Darm-linux-g++
cp jskwgen to my board and run , cp file jsautokw.h to =
src/Linux_All_DBG.OBJ/
make -f Makefile.ref LD=3Darm-linux-ld CC=3Darm-linux-gcc =
CCC=3Darm-linux-g++
at last , it'
|
10/16/2009 7:49:35 AM
|
0
|
=?gb2312?B?wO666cHB?= <lihongli...@thtf.com.cn>
|
howto get variable's name in native code
hello,all
We have implement a custom javascript object in c++,with properties and
methods, and can use in script succesfully, for example:
var a= new custObj;
Our question is:
Can we get the variable's name , which is "a" in the code above,in our
native getter function?
Thanks
|
10/15/2009 9:37:16 PM
|
1
|
stdan <stdan...@yahoo.com>
|
detect useless return value
Hello,
I am trying to optimize some of my native functions. My aim is to know
in advance if the returned value will be used by the caller.
For example my JSClass Socket has a Write() method that send data
through a socket and returns the data that has not been sent
(overflow).
This feature exists but is rarely used, this is why I wondering if it
is possible to detect (by looking at the next opcode) if the creation
of the returned value is optional.
I noticed that the bytecode of functions whose the return value is not
used look like this:
00046: 13 callname "MyFct"
00049: 13
|
10/14/2009 10:45:06 AM
|
7
|
"franck.fr" <sou...@gmail.com>
|
application/javascript;version=1.8
On m.d.platform Boris suggests reposting here:
How can Firebug determine the language version used by a web page?
There seems to be no documentation of the mimetype for 'type' in script
tags on MDC:
https://developer.mozilla.org/En/HTML/Element/Script
The mime type "application/javascript" does not define version:
http://www.iana.org/assignments/media-types/application/
which points to:
http://www.rfc-editor.org/rfc/rfc4329.txt
jsdIScript has a very likely property:
http://www.oxymoronical.com/experiments/apidocs/interface/jsdIScript
--------
Last version set on this con
|
10/14/2009 4:21:55 AM
|
10
|
"John J. Barton" <johnjbar...@johnjbarton.com>
|
State of Tamarin
Hi,
i just wanted to ask: What is the state of tamarin? Will it be
integrated in future firefox js engines - or is it cancelled and will
only be used in flash player engines?
Kind Regards,
moonglum
|
10/13/2009 9:44:01 AM
|
5
|
Lucas <lucas.doh...@koeln.de>
|
JS_ConvertArguments issue
Hi,
http://pastebin.com/m6f2c74f0
Line 9 is printed. How can that be possible ? Even if json_obj is not an
object JS_ConvertArguments returns JS_TRUE and leaves json_obj unchanged.
Thanks
Anthony Catel
|
10/12/2009 3:11:08 PM
|
1
|
Anthony Catel <a.ca...@weelya.com>
|
MAC OSX 10.6 - Static linking issue
Hi,
Im linking spidermonkey (1.8.1) as static library against a dynamic
library :
gcc -std=c99 -D_GNU_SOURC -Wall -g -bundle -undefined suppress
-flat_namespace -o lib/libmod_spidermonkey.so libape-spidermonkey.c
-I../libs/js1.8/src/dist/include/ -L../libs/js1.8/src/ -ljs_static
-Xlinker -rpath
But when Im trying to load the generated library (with a dlopen), I get
this :
dyld: lazy symbol binding failed: Symbol not found: __Znwm
Referenced from:
/Users/para/dev/ape_1.0/APE_Server/modules/lib/libmod_spidermonkey.so
Expected in: flat namespace
I don't have any
|
10/11/2009 2:16:21 AM
|
3
|
Anthony Catel <a.ca...@weelya.com>
|
How mapping of JS objects methods with native function name is done
Hi,
I am new to Firefox.
I want to know how the JS engine after executing the Javascript make the
call to appropriate function. For example, if javascript code is
document.write "hello"
then how JS engine calls the function nsHTMLDocument::Write(const
nsAString& aText) in Firefox.
I want to know how or where the mapping of JS object method with
Firefox native function name is done, such as mapping of document.write
to nsHTMLDocument::Write.
regards,
Kailas
__________ Information from ESET NOD32 Antivirus, version of virus signature database 4489 (20091008) _________
|
10/8/2009 12:31:43 PM
|
0
|
kailas <pati...@comp.nus.edu.sg>
|
Upcoming nanojit-central, import logic and graph structure
Hi,
This is another super-long email about the nanojit merge. Sorry.
We're Approaching The End of the nanojit merge, in the sense that
there are no (or very few) cross-nanojit features remaining on
either fork of the nanojit-central synthetic history, and the
only substantial diffs are in the ARM backend, that several
contributors on both teams are now looking at.
In light of this, I've been making some preparations for a
"final" transition to working out of a single nanojit-central
branch, with a "reversed flow" of changes from nanojit-central
(NC) to tamarin-redux (TR) and tr
|
10/8/2009 12:37:53 AM
|
0
|
Graydon Hoare <gray...@mozilla.com>
|
fix the discrepancy between JS engines used by Firefox and Opera
Hi,
Following is a repost from the group Opera.general, since I don't
really know where is the best forum to post my question. Hope someone
can help me out. Many thanks!
I want to some JavaScript code in Opera that uses methods such as
Object.prototype.toSource, Function.prototype.toSource, ..., and
Array.prototype.toSource etc, which are specific to Firefox's
Spidermonkey implementation. Also, the Function.prototype.toString
method in Opera is also different from that in Firefox. Anyone has an
idea how to adapt my script code to make it behave the same as in
Spidermonkey?
In
|
10/7/2009 9:45:49 PM
|
0
|
George <y...@virginia.edu>
|
Debugging object identity test
There is a bug somewhere in jsd that causes the following code to fail:
For |frame| an instance of jsdIStackFrame:
---
var functionObject = frame.script.functionObject.getWrappedValue();
var frameThis = frame.thisValue.getWrappedValue();
for (var p in frameThis)
{
if (frameThis[p] === functionObject) // never true
....
}
---
I'd like to investigate to see I can find a hack-around. So I'd like to
look at the code for operator=== when these objects come in. Can anyone
give me a hint on which file to start looking?
Thanks,
jjb
|
10/7/2009 6:01:43 AM
|
4
|
"John J. Barton" <johnjbar...@johnjbarton.com>
|
string optimizations in spidermonkey
Hello!
I just released, that there are some internal types of strings in
spidermonkey (types of implementations). They are: growable string,
dependent string, immutable string. I do not want spidermonkey to
perform copying in string assignment. Does all types of strings
support this behavior? Or only immutable strings can be copied "by
reference", like objects?
Thanks.
|
10/6/2009 11:13:38 AM
|
4
|
itroot <ivan.tolstoshe...@gmail.com>
|
Tail Call Optimization coming to SpiderMonkey
Background:
http://en.wikipedia.org/wiki/Tail_call
http://en.wikipedia.org/wiki/Tail_recursion
Please see:
https://bugzilla.mozilla.org/show_bug.cgi?id=445363
In particular, the proposed insertion of some kind of ellipsis in the
Error object's stack property value, to indicate that a tail call
reused a frame, overwriting its record of the caller with the callee's
activation information, see this comment:
https://bugzilla.mozilla.org/show_bug.cgi?id=445363#c31
I hope to get Proper Tail Calls included as part of the guaranteed
semantics of ECMAScript some day, but we can't
|
10/6/2009 12:13:09 AM
|
3
|
Brendan Eich <bren...@mozilla.org>
|
JS_EvaluateUCScript 'recursion'
Hi,
I am using JS_EvaluateUCScript to evaluate a js file. I also have an
'include' function, that gets a new file and evaluates that, also
using JS_EvaluateUCScript. So, if the file I'm evaluating includes
another, then I am calling JS_EvaluateUCScript from a native function,
from the first JS_EvaluateUCScript. When I throw an exception in the
second script, I get a debug assert in line 3778 of jsops.cpp. The
assert is 'JS_ASSERT(!cx->throwing);'. This is using version 1.8.0.
I've built it myself as a static library, but the source is
unmodified.
Is this 'recursive' calling of E
|
10/5/2009 5:56:18 PM
|
4
|
Stephen Clibbery <sdclibb...@googlemail.com>
|
SpiderMonkey 1.8.1 release
Hi,
I'd like to get some clarification what is the version of SpiderMonkey
(TraceMonkey) shipped with Firefox 3.5.3? According to the string
returned by JSAPI it is "JavaScript-C 1.8.0 pre-release 1 2007-10-03".
Is it correct? Can anyone tell me when 1.8.1 release will come out? In
case it exists how can I take it?
Best regards,
alerma
|
10/5/2009 9:23:08 AM
|
0
|
alerma <alerma....@gmail.com>
|
preferred dev environment for hacking SpiderMonkey??
Hello All,
Can anyone recommend their favourite environment for working with
SpiderMonkey? Besides a magnetized needle and a steady hand. I've
mostly used Visual Studio for C++ development. I now have a macbook
running Snow Leopard. Any suggestions would be greatly appreciated.
Thanks!
Jorge
|
10/4/2009 2:04:45 AM
|
0
|
Jorge <boxe...@gmail.com>
|
var, window, and object.watch()
I asked this over in .platform and Boris suggested that folks reading
here may know more about the .watch() issue.
For Firebug 1.5 we are adding break on DOM object property change (along
with break on HTML, XHR, and Error). But one important case fails:
properties declared with 'var' at window level. Is there something
different about a property declared with var vs one just attached to the
window?
This code:
--------
function dumpIt(prop, oldval, newval)
{
window.dump("changed: "+prop+" from "+oldval+" to "+newval+"\n");
return newval;
}
var avar = "avar";
|
10/2/2009 5:47:36 PM
|
18
|
"John J. Barton" <johnjbar...@johnjbarton.com>
|
how to use JS_SetOperationCallback
Hello,
I used old branch callback API (including i.e. JS_SetOperationLimit
function). Now I updated source codes and these functions are missing
- there is JS_SetOperationCallback function only.
What is now recommended way how to limit maximal operation count
executed by script?
Thank you!
|
10/2/2009 1:30:44 PM
|
1
|
Michal <augustyn.mic...@gmail.com>
|
Operator Overloading
Hi,
I'm embedding SpiderMonkey to script a 3D application. I would like to
expose my C++ 3D-math classes (Vector, Matrix etc) to javascript,
which is fine. However the nicest thing would be to allow the use of
operator syntax with these, so you do, eg, 'a+b' to add two 3D vectors
together (as opposed to 'a.add(b)' or 'add(a,b)' ). Can this be done
at all? If not from Javascript, then is there any way from the C end
of things? It will be _much_ simpler for users to use the standard
operator syntax, rather than have to worry about treating every
operation as a function call.
Thanks,
|
9/30/2009 3:51:45 PM
|
11
|
Stephen Clibbery <sdclibb...@googlemail.com>
|
1.8.1 performance
Hi,
I found this article :
http://hacks.mozilla.org/2009/07/tracemonkey-overview/ where there is a
little piece of code :
function addTo(a, n) {
for (var i = 0; i < n; ++i)
a = a + i;
return a;
}
var t0 = new Date();
var n = addTo(0, 10000000);
print(n);
print(new Date() - t0);
The result is :
Firefox 3.5.3 : 35ms
Spidermonkey standalone 1.8 (debug disabled, optimize enabled) : 783ms
Spidermonkey standalone 1.8.1 (debug disabled, optimize enabled) : 585ms
I was wondering : What's the main difference between Spidermonkey 1.8.1
and Firefox 3
|
9/30/2009 4:29:23 AM
|
0
|
Anthony Catel <a.ca...@weelya.com>
|
jsdIStackFrame.line changes?
When running on the FF 3.7 nightly build, Firebug 1.5a25 fails this test
case
https://getfirebug.com/tests/content/script/singleStepping/index.html
If you follow the instructions on the page using Firebug 1.5a25 and FF
3.5.3 you end up on line 14 at step 3.
If you follow the instructions on the page using Firebug 1.5a25 and FF
3.7 you end up on line 13 at step 3.
13 function clicker() {
14 dataDiv = document.getElementById("data");
15 dataDiv.innerHTML += fibonacci(iter++) + "<br/>";
16 }
It looks like the line table for 'clicker' is slightly different with
pc=0 b
|
9/28/2009 10:34:42 PM
|
4
|
John J Barton <johnjbar...@johnjbarton.com>
|
Rhino HttpServer
Hi
I'm trying to use Java's com.sun.net.httpserver package with Rhino and
I get the following error:
js: uncaught JavaScript runtime exception: TypeError: Cannot call
property create in object [JavaPackage
com.sun.net.httpserver.HttpServer]. It is not a function, it is
"object".
The code looks like this:
importPackage(com.sun.net.httpserver)
var server = com.sun.net.httpserver.HttpServer.create(new
java.net.InetSocketAddress("localhost","8080"), 0)
|
9/28/2009 4:24:54 PM
|
1
|
Tim <mrtiml...@gmail.com>
|
bug 469718 - JavaScript Browser jsreftests
https://bugzilla.mozilla.org/show_bug.cgi?id=469718 landed on
tracemonkey yesterday which enables the ability to run the JavaScript
tests in the browser using the reftest framework.
To run the tests, do
make -C $(OBJDIR) jstestbrowser
https://bugzilla.mozilla.org/show_bug.cgi?id=509629 tracks dmandelin's
new shell test framework which will use the same manifests.
One change you will see right away is the JavaScript tests have moved
from js/tests to js/src/tests. All new tests should be placed in
js/src/tests.
The other change is the existence of the reftest-style manif
|
9/27/2009 4:49:07 PM
|
2
|
Bob Clary <bclary+n...@bclary.com>
|
why ,when I call a custom object's function, spidermonkey visit the property
Hello, all
I have implement an custom object:BusiComp,which has some properties and
methods: as follows:
====code============
JSClass JsBusiCom::BusiCom_class={
"busiComp", JSCLASS_HAS_PRIVATE,
JS_PropertyStub, JS_PropertyStub,
JsBusiCom::JSGetProperty, JsBusiCom::JSSetProperty,
JS_EnumerateStub, JS_ResolveStub,
JS_ConvertStub, JsBusiCom::JSDestructor
};
JSFunctionSpec JsBusiCom::methods[]= {
{ "select", JsBusiCom::select, 1, 0, 0 },
{0,0,0,0,0}
};
JSPropertySpec JsBusiCom::props[] = {
{"condition", ID_COND, JSPROP_E
|
9/24/2009 8:49:40 PM
|
2
|
stdan <stdan...@yahoo.com>
|