2266 Commits

Author SHA1 Message Date
waldemar%netscape.com
c4a32c8de3 Added var, const, and for statements
git-svn-id: svn://10.0.0.236/trunk@70908 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-26 06:20:11 +00:00
shaver%mozilla.org
fcc7b519ef use NS_METHOD for register/unregister callback, for Win32
git-svn-id: svn://10.0.0.236/trunk@70906 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-26 05:55:00 +00:00
shaver%mozilla.org
1e010bc06d fix build bustage -- I'm an ass
git-svn-id: svn://10.0.0.236/trunk@70904 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-26 05:18:31 +00:00
shaver%mozilla.org
d247779da6 remove useless nsIModule paste (#22922), add debug() for JS components, use categories for component loaders, XPCONNECT_STANDALONE (#39875), r=dp,waterson a=brendan
git-svn-id: svn://10.0.0.236/trunk@70903 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-26 04:56:23 +00:00
mkaply%us.ibm.com
889f6b82b3 # 34106
r = leaf, a = brendan
Mistake was made with an earlier makefile checkin - removing double definition of EXTRA_DSO_OPTS


git-svn-id: svn://10.0.0.236/trunk@70837 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-25 14:25:04 +00:00
mccabe%netscape.com
5bb35c4665 Fix the fix to 40406, fixing bustage.
Don't destroy the per-thread safe JS context on cleanup if that context was provided through the setter.

r=waterson


git-svn-id: svn://10.0.0.236/trunk@70829 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-25 08:33:53 +00:00
mccabe%netscape.com
41a691e959 Fix for 40406. Add setter to XPConnect to set default JS context used to execute JS components when no appropriate context can be found.
The setter changes per-thread data - for the DOM/UI thread, this means that we can set the JS Context to one with DOM magic.  This magic allows some DOM JS <-> XPConnect JS conversions to succeed, and in particular allows creation of a DOM window from within a JS component.

Unblocks nsbeta2 work by Vishy and Pavlov.

r=mccabe,vishy.  a=brendan,sleestack.


git-svn-id: svn://10.0.0.236/trunk@70754 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-24 22:54:57 +00:00
nboyd%atg.com
a07cbfd43f Add rhino9 and rhinoms9.
git-svn-id: svn://10.0.0.236/trunk@70747 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-24 18:10:55 +00:00
waldemar%netscape.com
c942d3014f Fixed case/default indenting
git-svn-id: svn://10.0.0.236/trunk@70702 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-24 02:18:57 +00:00
rogerl%netscape.com
2cd8ea4b80 Codegen for statements. Blew off old statement API and most of the test
functions for now, sorry.


git-svn-id: svn://10.0.0.236/trunk@70700 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-24 02:11:39 +00:00
waldemar%netscape.com
e3f617396a Turned on statement parsing and printing
git-svn-id: svn://10.0.0.236/trunk@70698 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-24 01:51:32 +00:00
waldemar%netscape.com
8d0c030319 Added statement parsing
git-svn-id: svn://10.0.0.236/trunk@70697 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-24 01:51:20 +00:00
waldemar%netscape.com
98d196d511 Added using std::fmod declaration
git-svn-id: svn://10.0.0.236/trunk@70695 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-24 00:55:23 +00:00
waldemar%netscape.com
6e9fc922fc Fixed Mac warning
git-svn-id: svn://10.0.0.236/trunk@70694 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-24 00:54:56 +00:00
waldemar%netscape.com
33c4987b24 Fixed Mac warnings
git-svn-id: svn://10.0.0.236/trunk@70693 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-24 00:54:40 +00:00
waldemar%netscape.com
7d8705ed17 Fixed syntax errors: can't use qualified names in class definitions, and 'not' is a C++ reserved word
git-svn-id: svn://10.0.0.236/trunk@70692 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-24 00:54:28 +00:00
nboyd%atg.com
c21916a171 Remove unused constructor.
git-svn-id: svn://10.0.0.236/trunk@70679 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-23 21:03:50 +00:00
nboyd%atg.com
aad7a4b568 Fix up bug where direct calls were getting the parent scope when they shouldn't have,
resulting in a NullPointerException on the following code when run on the MS VM with -opt 9:

var testcases = getTestCases();

function getTestCases() {
    return new Boolean(new MyObject(true));
}

function MyObject( value ) {
    this.value = value;
    this.valueOf = new Function( "return this.value" );
    return this;
}


git-svn-id: svn://10.0.0.236/trunk@70678 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-23 20:59:13 +00:00
rginda%netscape.com
b28e710433 apparently windows is too
git-svn-id: svn://10.0.0.236/trunk@70639 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-23 00:15:06 +00:00
rginda%netscape.com
2b30f01c65 linux is so picky
git-svn-id: svn://10.0.0.236/trunk@70638 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-23 00:13:48 +00:00
rogerl%netscape.com
227af01979 COMPARE_GT etc are gone.
git-svn-id: svn://10.0.0.236/trunk@70636 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-23 00:09:44 +00:00
rogerl%netscape.com
51985251d3 Fall out from operator overloading.
git-svn-id: svn://10.0.0.236/trunk@70635 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-23 00:09:02 +00:00
rogerl%netscape.com
5bd38c3d54 Added operator overloading support
git-svn-id: svn://10.0.0.236/trunk@70634 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-23 00:08:29 +00:00
rogerl%netscape.com
4455542ec0 Fix bug #39309 - parameters must be AnyType, also vars used before def.
git-svn-id: svn://10.0.0.236/trunk@70633 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-23 00:06:24 +00:00
rginda%netscape.com
e13ae8edbb quieting linux warnings and fixing build bustage
git-svn-id: svn://10.0.0.236/trunk@70608 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-22 21:05:35 +00:00
nboyd%atg.com
7c5d5251df Fix formatting.
git-svn-id: svn://10.0.0.236/trunk@70581 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-22 03:03:37 +00:00
nboyd%atg.com
f59a9801e7 Fix 38590.
git-svn-id: svn://10.0.0.236/trunk@70579 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-22 00:10:10 +00:00
cls%seawood.org
15dc838b5c More OS/2 changes. Batches 19 & 20 of Bug #34106 r=pavlov
git-svn-id: svn://10.0.0.236/trunk@70578 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-21 13:32:11 +00:00
brendan%mozilla.org
31c65537d7 Fix remove-while-enumerating, beef up metering and add JS_DHashTableDumpMeter (these files are not part of the client build).
git-svn-id: svn://10.0.0.236/trunk@70556 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-20 18:42:22 +00:00
brendan%mozilla.org
05c10bfd95 Fix old stddev calc bug (#ifdef'd code, not part of build).
git-svn-id: svn://10.0.0.236/trunk@70555 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-20 18:41:13 +00:00
cls%seawood.org
b96eac527f Finishing off the standalone modules framework.
List js/src/liveconnect & js/src/xpconnect in toplevel Makefile.in to allow js to be built using the standalone framework.
Use the <module>_STANDALONE defines anytime BUILD_MODULES != all.
r=slamm


git-svn-id: svn://10.0.0.236/trunk@70541 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-20 02:45:59 +00:00
brendan%mozilla.org
0e46bbe12e Use int for shift type consistently; optimize primary hash match (NOT PART OF BUILD).
git-svn-id: svn://10.0.0.236/trunk@70512 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-19 18:26:37 +00:00
rogerl%netscape.com
593d1fc0e3 Playing with operator overloading & Type types.
git-svn-id: svn://10.0.0.236/trunk@70511 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-19 17:41:10 +00:00
beard%netscape.com
e92366c650 fix const cast away linux breakage
git-svn-id: svn://10.0.0.236/trunk@70506 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-19 05:38:29 +00:00
brendan%mozilla.org
8b3c020392 Don't clear memory gratuitously (after create-error; after destroy).
git-svn-id: svn://10.0.0.236/trunk@70504 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-19 05:10:58 +00:00
brendan%mozilla.org
3da210df16 Don't destroy what hasn't been created (NOT PART OF BUILD).
git-svn-id: svn://10.0.0.236/trunk@70502 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-19 03:49:32 +00:00
brendan%mozilla.org
7aaffc5637 Experimental double-hashing code, hope to donate to nsprpub/lib/ds (NOT PART OF BUILD).
git-svn-id: svn://10.0.0.236/trunk@70499 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-19 02:51:20 +00:00
mccabe%netscape.com
b9f25e178d Patch xpcshell.cpp to not try to call JS_malloc with 0 bytes.
Patch courtesy Mark G. Adams <madams@livepage.com>

r=mccabe

This code is part of xpcshell, and doesn't go into the mozilla product.  Prior to this fix, xpcshell crashed on startup.


git-svn-id: svn://10.0.0.236/trunk@70493 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-19 00:34:46 +00:00
rogerl%netscape.com
1a9d746c54 Bunch o' expression ops.
git-svn-id: svn://10.0.0.236/trunk@70416 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-18 00:04:15 +00:00
rogerl%netscape.com
d62fe47db9 Moved genExpr to ICodeGenerator - added most expression ops.
git-svn-id: svn://10.0.0.236/trunk@70415 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-18 00:03:23 +00:00
rogerl%netscape.com
71f1389f62 Moved genExpr to ICodeGenerator
git-svn-id: svn://10.0.0.236/trunk@70414 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-18 00:01:33 +00:00
beard%netscape.com
635cc77cd0 added on run handler
git-svn-id: svn://10.0.0.236/trunk@70403 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-17 20:02:17 +00:00
beard%netscape.com
7ac3904158 Removing obsolete project file. This is supplanted by js.mcp.xml.
git-svn-id: svn://10.0.0.236/trunk@70402 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-17 20:01:08 +00:00
cls%seawood.org
87c20e0328 Mass replace of -lmozjs with $(MOZ_JS_LIBS) needed for OS/2 and consistency.
git-svn-id: svn://10.0.0.236/trunk@70360 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-17 06:45:45 +00:00
brendan%mozilla.org
ab0195b1ab Include jsstddef.h first in all js*.c files (r=tlundeen@webcrossing.com).
git-svn-id: svn://10.0.0.236/trunk@70342 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-17 06:24:45 +00:00
brendan%mozilla.org
d42ca5af73 JS_DestroyRuntime nukes all contexts; add JS_G/SetRuntimePrivate (r=tlundeen@webcrossing.com).
git-svn-id: svn://10.0.0.236/trunk@70340 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-17 06:23:03 +00:00
pavlov%netscape.com
a0feb91521 changes all usages of NS_NewTimer to CreateInstance
git-svn-id: svn://10.0.0.236/trunk@70249 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-17 02:49:35 +00:00
sfraser%netscape.com
7ae6aff2d5 Fix to only broadcast to the autoreg observer if we are really registering.
git-svn-id: svn://10.0.0.236/trunk@70236 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-17 01:54:18 +00:00
mkaply%us.ibm.com
255a7c5844 # 37239
r= rogerl
OS/2 bring up continues - fix for floating point trap


git-svn-id: svn://10.0.0.236/trunk@70137 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-16 22:51:12 +00:00
beard%netscape.com
ed1ce1402f ensuring both arguments to max are the same type
git-svn-id: svn://10.0.0.236/trunk@70125 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-16 22:23:15 +00:00