Commit Graph

23928 Commits

Author SHA1 Message Date
brendan@mozilla.org
41c11a7c83 Fix decompiler to search function clone prototypes for args and vars (20160, r=rginda@netscape.com). 1999-11-28 09:46:33 +00:00
warren@netscape.com
a03f1a7799 Eliminated the libs build pass. 1999-11-28 03:05:01 +00:00
brendan@mozilla.org
bffd2d66ef Eliminate Closure per ECMA ed. 3, fix brutal sharing of lambdas (20076, r=rogerl,shaver). 1999-11-25 03:25:30 +00:00
shaver@netscape.com
dd3529814d - report function name, if any, when warning about mismatched return
- change catchguard syntax to avoid ECMA conflict
- light XDR cleanup
1999-11-24 03:36:25 +00:00
rginda@netscape.com
476a930cd1 * Makefile
Add target for windows systems.
* runtests2.pl
  Add xpcshell option, no longer requires \n at end of list file.
* ecma/ExecutionContexts/10.1.3.js
  Reformatted.
1999-11-23 22:35:35 +00:00
jband@netscape.com
6883202b38 fixup the exported api declarations to use JS_PUBLIC_API in a consistent fashion r=mccabe 1999-11-23 01:02:28 +00:00
rginda@netscape.com
6bd5c21e23 Return exitcode 3 on runtime errors, and 4 on 'file not found's; added to js and xpc shell,
r=jband
1999-11-22 23:28:58 +00:00
jband@netscape.com
e2276d9457 removing the .cvsignore file in an abandoned directory so that using -P with cvs will trim the thing out of a tree 1999-11-22 05:46:56 +00:00
cls@seawood.org
6d24738539 When cross-compiling, we want to use the header generated from NSPR defines. 1999-11-21 16:06:53 +00:00
duncan@be.com
44005f2cb9 Make locale work under BeOS (added XP_BEOS next to XP_UNIX). r=nhotta
Make JS timing work under BeOS (added XP_BEOS next to XP_UNIX). r=mcafee
Make nsSigHandlers.cpp build under BeOS (strsignal returns const char *). r=mcafee
1999-11-20 10:53:34 +00:00
rginda@netscape.com
504b5abaa1 tweaked html output, added test duration time. 1999-11-20 07:50:43 +00:00
rginda@netscape.com
bb0d3e4f50 Added javapath, and confail options. Made some trace output come out by default so it isn't so eerily quiet in quiet mode. 1999-11-20 05:22:20 +00:00
waldemar@netscape.com
df02c0ba49 Fixed MCL incompatibility 1999-11-20 04:34:42 +00:00
jband@netscape.com
f5f5dc62d5 r=fur Conform to the recently changed semantics of nsHashtableEnumerator::IsDone to fix the infinite loop that started happening in the Components.[interfaces,classes,classesByID] enumerators 1999-11-20 04:21:58 +00:00
waldemar@netscape.com
9ce1555b74 Added Allegro reference 1999-11-20 02:18:26 +00:00
waldemar@netscape.com
d8a7ec5417 Updated to work under Allegro Common Lisp 1999-11-20 02:16:56 +00:00
rginda@netscape.com
14c1f9e0fc s/FAILED!/{return a failure}/ in testcase description to keep from fooling the test driver. 1999-11-20 01:43:44 +00:00
rginda@netscape.com
3f61caba87 Correct exit codes on win32, echo output file regardles of -t 1999-11-20 00:28:06 +00:00
rginda@netscape.com
93dd32f75c Add bugnumber to reports, bugzilla url option, and expect exit code 3 for negative tests. 1999-11-19 21:54:46 +00:00
rginda@netscape.com
ee84720b90 s/perl5/perl/ 1999-11-19 01:18:33 +00:00
rginda@netscape.com
5275b7a49d Added most.tests, most of the tests, minus liveconnect and some date/array tests that take a long time. 1999-11-19 00:57:18 +00:00
rginda@netscape.com
9460b2bc02 HTML output is in, script generally useful. Not tested on win32 or mac yet. 1999-11-19 00:56:17 +00:00
brendan@mozilla.org
b2fd3a2767 - Add JS_HAS_FUN_EXPR_STMT jsconfig.h macro and use it to ifdef a special case explicitly specified by ECMA ed. 3 to be an error: a function expression that's a statement (not at top-level). This allows one to wrap functions in if and else statements and conditionally define them.
(More work is needed to conform to ECMA ed. 3 by removing Closure objects; also we want more efficient closure calling, soon.)

- Move mislocated call to js_FoldConstants from jsemit.c's js_EmitTree, the TOK_FUNCTION case, back to jsparse.c.  This avoids redundant fold-walks over non-top-level functions.  Folding should be done at tree-gen time, not at code-gen time.

- Eliminate dead code in if-else and ?: when folding constants.

- Release tempPool arena space before early return on error in js_FoldConstants, just to be nice (all arena space gets released eventually, when the compiler finishes).
1999-11-18 20:19:56 +00:00
shaver@netscape.com
cab84ed139 Fix some MLK and FMR badness.
Use nsCOMPtr to manage services (thank you dp, thank you).
Only push context on stack when actually executing JS via JSAPI.
Use nsXPIDLCString to simplify memory management (thank you waterson,
thank you).
Use generic module stuff.
r=fur,jband
1999-11-18 15:39:28 +00:00
jband@netscape.com
5c71fcedfd remove invalid assertion 1999-11-18 04:30:54 +00:00
rginda@netscape.com
38dc088d26 Added ^c handler, beginnings of html output. 1999-11-18 04:14:00 +00:00
rginda@netscape.com
680a45fe92 * menuhead.html
make all targets "other_window" to reduce number of open windows.
* mklistpage.pl
  make all targets "other_window" to reduce number of open windows.
* runtests2.pl
  more hacking, still not done.
1999-11-17 22:33:05 +00:00
rginda@netscape.com
46f5254187 Initial checkin of "import test list" dialog. 1999-11-17 22:31:07 +00:00
rogerl@netscape.com
21df53797d Changes for JS1.5 build under AIX4.3.
(Not a part of SeaMonkey builds)
1999-11-17 18:34:04 +00:00
brendan@mozilla.org
a190f4f3a4 Unregress top-level lambda expressions not in with statements to avoid full closure overhead. 1999-11-17 07:41:12 +00:00
brendan@mozilla.org
3be9d1e174 Whitespace, comment, and bracing diffs. 1999-11-17 04:32:37 +00:00
brendan@mozilla.org
51625a5e21 Brutal sharing followup (15146, r=shaver@mozilla.org)
- jsinterp.c changes: 
__- JSOP_CLOSURE comment fixes.
____(NB: ECMA ed 3 seems to require that we abolish the Closure object altogether, replacing it with a new Function object where we used to make a new closure.  That says we should use JS_CloneFunctionObject or an internal form (js_).) 
__- Use obj rather than the same-valued fp->scopeChain as fourth argument to js_ConstructObject. 
__- JSOP_DEFFUN change to auto-clone when running a script in a different scope from the one the compiler used for static function scope linkage. 
__- Remove bogus assertion from JSOP_DEFVAR/CONST: case.

- jsparse.c/.h changes:
__- Restored outerFun test to FunctionDef in jsparse.c, so that we make a closure if (outerFun || lambda || !funAtom) -- i.e., if we're compiling
____- A function statement within an active function via eval;
____- We're compiling a function expression statement (not at apparent-to-compiler top-level; part of some kind of compound statement, e.g. if or with);
____- Or the function, even at top statement level and not in another function, has no name. 
__- Don't predefine local variables at compile time if they're in with statement
__- Enforce const at compile time for local consts

- Minor jsemit.[ch] cleanup.
1999-11-17 04:13:05 +00:00
rginda@netscape.com
e4f60225f5 Initial add of new (universal) perl test driver, and test case selection tool. 1999-11-17 02:05:29 +00:00
rogerl@netscape.com
7c1df92932 Added changes at Jane's request.
(Not a prt of SeaMonkey build)
1999-11-17 00:05:45 +00:00
rogerl@netscape.com
141019de3f Added new defs at Jane's request.
(Not a prt of SeaMonkey build)
1999-11-17 00:04:49 +00:00
rogerl@netscape.com
c0f76ca123 r=norris.
Fix overrun by back-reference digit sequence parsing.
1999-11-16 23:54:18 +00:00
rogerl@netscape.com
1cb3602361 r=norris
Fix for toString under 1.2 - calls toSource which provides extra '{}' that
doesn't match previous behaviour.
1999-11-16 23:53:33 +00:00
rogerl@netscape.com
a8a79b8ad2 r=norris
Fixed handling of weird indices (NaN etc) for charCode and charCodeAt.
Bug #16984
1999-11-16 23:52:08 +00:00
rogerl@netscape.com
67ba0cbf58 r=norris.
Changes for ECMA compatible function.apply handling of missing or null args
Bug #16984
1999-11-16 23:51:02 +00:00
jdunn@netscape.com
7a2898a716 Fixing all unresolved symbols on unix. The bug has the diff's
r dp@netscape.com (ramiro helped me with it)
# 18688
1999-11-16 06:02:31 +00:00
brendan@mozilla.org
9dbed81215 Fix exception bytecodes to use script->main (18926, r=jband@netscape.com). 1999-11-16 02:15:22 +00:00
rogerl@netscape.com
e555935545 Backing out changes to script.exec scope access. r=norris 1999-11-15 22:54:06 +00:00
jband@netscape.com
c6f654521d r=norris. Fix for bug 18702. Adds code to track whether caller to xpconnect is native or JS. This allows xpconnect to decide to not call security manager to filter calls originating from native code 1999-11-15 22:11:21 +00:00
brendan@mozilla.org
6825a8d277 Disassembler uses ToSource, not ToString, where appropriate (DEBUG only change). 1999-11-15 21:11:59 +00:00
brendan@mozilla.org
642a3fb24b Fix 18684, bad combo of old-latent and new bugs (r=shaver@mozilla.org). 1999-11-12 20:41:04 +00:00
waldemar@netscape.com
136eb02b60 Changed external-link-base 1999-11-12 07:24:40 +00:00
waldemar@netscape.com
88e93a4932 Added language declarations, ?id syntax, ^^, ^^=, units. Updated list of future reserved words. Allowed definitions in compount statements. 1999-11-12 07:24:19 +00:00
waldemar@netscape.com
ee367245bb Updated list of keywords 1999-11-12 07:22:27 +00:00
brendan@mozilla.org
21422f582b XULDOMJS_19991106_BRANCH landing (15146, 18025, r=shaver@mozilla.org) 1999-11-12 06:03:40 +00:00
mccabe@netscape.com
35228a71f9 Fix most remaining warnings in js/src. Patch courtesy slamm.
r=mccabe.
1999-11-11 21:52:35 +00:00