Commit Graph

241 Commits

Author SHA1 Message Date
mccabe%netscape.com
8ae7434b2b Towards running w/o crashing on alpha linux; add -mieee flag to ask
the compiler to puhleeze let us used denormalized floating point
values, as required by the ECMA spec.  Thanks to various contributors,
including Torsten R�ger <torsten@ponton-hamburg.de>, for working on
numeric issues.  Fix courtesy wtc.
1998-08-12 22:09:21 +00:00
mccabe%netscape.com
acf486a530 modified #if from __alpha to __osf__, because Alpha/Linux also runs on
an alpha processor, and we really want to know osf instead.  Courtesy
wtc.
1998-08-12 19:45:04 +00:00
danm%netscape.com
492873494d (optionally) include GlowCode lib. a:warren,fur 1998-08-06 18:52:34 +00:00
sudu%netscape.com
91c3f3ae8b Fix to build js classes when NSJVM=1. 1998-08-06 01:01:42 +00:00
beard%netscape.com
7fa2321de7 Version check breaks HTML dialogs. 1998-08-05 05:25:12 +00:00
warren%netscape.com
668cddb22e Changes to build with MOZ_OJI, and optionally build NSJVM. Changes to regenerate jar files. Changed version number to 50. 1998-08-05 00:36:13 +00:00
warren%netscape.com
691f369418 Fixed crashes in reporting errors on failure to initialize. 1998-08-04 21:37:16 +00:00
bjorn%netscape.com
8594e662ce Additional xpcom support for JS. Currently not in use by anyone. See MyScriptable.{h,cpp}
for an example of how to use this interface.
1998-08-04 20:34:20 +00:00
shaver%netscape.com
eb1610d51c added JSVERSION_1_4, removed prconv.sed NULs 1998-08-01 19:52:50 +00:00
shaver%netscape.com
9a3213a374 added JSVersion JSVERSION_1_4 1998-08-01 19:43:23 +00:00
warren%netscape.com
67d6f5be34 removed jsj for MOZ_JAVA 1998-08-01 00:03:31 +00:00
warren%netscape.com
d76d5017c2 Removed build of java classes. 1998-07-31 21:54:16 +00:00
warren%netscape.com
4383f3be0c Fixed _jni dir problem 1998-07-31 21:22:43 +00:00
warren%netscape.com
2299c5f98e Removed unzip step. 1998-07-31 21:12:32 +00:00
warren%netscape.com
c9bd5d8074 Landing changes in the OJI_19980727_BRANCH since the OJI_19980727_TIP_MERGE tag. 1998-07-31 20:19:50 +00:00
mccabe%netscape.com
a5b758e573 Another attempt to remove trailing nul characters added courtesy CVS. 1998-07-31 01:45:05 +00:00
mccabe%netscape.com
0ed94e2af6 Propagating numerous fixes from js/ref
and development branches, including but
not limited to:

- Preliminary exception handling per
ECMA proposal; try, multiple
catchblocks, and finally.  Catchblocks
are of the form catch (v) or
catch(v:<guard>), where guard is an
optional boolean expression that is
evaluated to determine whether the
exception is to be caught by that block.

- ECMA-proposed 'in' operator; "'foo' in
o" or "4 in o" asks if o has property
foo or element 4.

- Added a new set of defines in
jsconfig.h for js 1.4
features-in-progress.  (in, instanceof,
exception handling.)  Default build
version is now 1.4.  Fixed a few
conditional features that had become
broken.

- Progress towards porting to FreeBSD
and Alpha; casts of NaN and friends to
int are a little more localized.  Not
there yet...

- New config files to compile on more
OSes; various fixes to improve
portability.
1998-07-31 00:07:22 +00:00
mccabe%netscape.com
7596bde975 Propagating work and bug fixes from
development branch:

- Preliminary exception handling per
ECMA proposal; try, multiple
catchblocks, and finally.  Catchblocks
are of the form catch (v) or
catch(v:<guard>), where guard is an
optional boolean expression that is
evaluated to determine whether the
exception is to be caught by that block.

- ECMA-proposed 'in' operator; "'foo' in
o" or "4 in o" asks if o has property
foo or element 4.

- Added a new set of defines in
jsconfig.h for js 1.4
features-in-progress.  (in, instanceof,
exception handling.)  Default build
version is now 1.4.  Fixed a few
conditional features that had become
broken.

- Progress towards porting to FreeBSD
and Alpha; casts of NaN and friends to
int are a little more localized.  Not
there yet...

- New config files to compile on more
OSes; various fixes to improve
portability.
1998-07-30 23:46:29 +00:00
mccabe%netscape.com
f0d7459661 Added NPL. 1998-07-30 23:44:39 +00:00
warren%netscape.com
13b18ece68 Committed from OJI_19980618_TIP_MERGE1. 1998-07-28 02:07:25 +00:00
mccabe%netscape.com
e1c6f3374e typedef of int64 for osf now avoids long long - because long long is a
compiler extension, and we want to be able to turn off compiler
extensions for osf.  And longs are long long there anyway.

Propagated from nspr, courtesy wtc.
1998-07-24 23:12:09 +00:00
bjorn%netscape.com
a0387a053f Restoring tree to previous version. Should not affect the build. The previous
checkin had no impact on the build either, but I'll wait with these changes until
the tree is open again. Sorry for the inconvenience.
1998-07-23 22:25:16 +00:00
bjorn%netscape.com
e0fe36440e New version of jsIScriptable.h (clobbers the old one). New files added for
testing (MyScriptable) and embedding support (JSWrapper,jsIScriptable,main).
1998-07-23 20:46:28 +00:00
warren%netscape.com
f52ab79efa Added generated files for when we're not building java anymore. 1998-07-21 05:42:12 +00:00
mccabe%netscape.com
10de6cce72 added some more #if JS_HAS_SHARP_VARS checks so towards compiliation
under version 120 in jsconfig.h.  Other fixes needed, though...
1998-07-17 21:18:41 +00:00
mccabe%netscape.com
c9b0c7d348 Fixed #ifdef to #if for various features defined in jsconfig.h -
JS_HAS_IN_OPERATOR, and JS_HAS_INITIALIZERS.
1998-07-17 20:46:12 +00:00
mccabe%netscape.com
2f3902fe81 Fixed interpretation of JSOP_IN to match our ECMA proposal - throw a
runtime error if the RHS is not an object.
1998-07-17 19:10:46 +00:00
mccabe%netscape.com
2082db86d6 Modified grammar for for/in and the in operator to exclude parsing the
'in' keyword as an operator in the init clause of for loops; this
disambiguates for/in loop parsing.  (Previously, there was some
treenode examination magic going on.)  Per recent ECMA submission.
1998-07-17 02:56:04 +00:00
shaver
e8ab388331 more jsI?Context stuff, some Scriptable hackery 1998-07-15 16:59:47 +00:00
mccabe
51247013fe Added configuration section for js 1.4, with in/instanceof/exceptions turned
on.  (Default configuration is still 1.3.)
1998-07-15 03:00:24 +00:00
shaver
4fe59b0a91 support int JSVALs in XDRValue (duh) 1998-07-13 16:12:41 +00:00
danm
adae25132e optionally include GlowCode. bug 299200 a:don. 1998-07-13 00:22:53 +00:00
ramiro
7efc47ac4a Fix broken '#if defined' and no new line at end of makefile. 1998-07-11 12:45:01 +00:00
mccabe
748a690fa2 Added newline in 2nd comment to make the LXR indexer slightly happier.
Thanks to Dawn Endico <dawn@cannibal.mi.org> for LXR hacking.
1998-07-10 02:13:17 +00:00
danm
30f8c8b987 glowcode. bug 299200 a:don. 1998-07-09 16:33:15 +00:00
shaver
e9ce00cce2 start at jsContext and jsRuntime implementations, enough to run trivial script 1998-07-08 16:53:49 +00:00
mccabe
0d458b9d77 Changed the definition of JSDOUBLE_IS_INT(d, i) to delay a (jsint)d
cast until after the double in question has been determined to be
finite, not NaN, etc.  This may make the code a little more XP for
platforms like BSD and Alpha Linux that don't like casting strange
values to int.  Thanks go to Uncle George <gatgul@voicenet.com> and
hankin <hankin@consultco.com> for their porting work.
1998-07-08 07:56:43 +00:00
mccabe
284d1c6f30 Made the assign hack conditional on JSVERSION_IS_ECMA. 1998-07-07 23:59:45 +00:00
shaver
be9d53fcab tentative and likely useless script verifier for XDR (-DJS_XDR_SCRIPT_VERIFIER) 1998-07-04 19:45:46 +00:00
fur
1c64bf7ca6 These files were moved to js/ref/liveconnect/macbuild/JavaSession. 1998-07-03 19:00:59 +00:00
fur
6d818b7095 + Fixed heap corruption caused by free'ing of an uninitialized pointer.
+ Changed the way JS wrapper functions for Java instance methods are constructed.

  Previously, these were computed the first time that an instance method was
  accessed for a particular JavaObject and cached in the native, private portion
  of that JavaObject.  However, the required call to JS_AddRoot() causes an root
  to appear as a link in a cyclical graph, leading to uncollectible objects, i.e.
  the JavaObject has a root pointer to the function object and the function has
  a parent that points back to the JavaObject.  Now, we compute the functions
  at the time a class is reflected and use JS_CloneFunctionObject() each time
  a JS wrapper function is needed, which is slower, but avoids this GC problem.
1998-07-03 15:50:16 +00:00
fur
00108b9f51 Tweaked comment. 1998-07-03 02:43:34 +00:00
fur
f3814769e7 Fix Win32 warnings that were introduced as a result of curing Mac warnings. 1998-07-03 02:42:16 +00:00
fur
4a2e6cfaaf Got rid of debug printf(). 1998-07-03 02:41:31 +00:00
fur
330b4a6f8e Added Compatibility discussion.
Tweaked Mac build instructions.
1998-07-03 02:40:48 +00:00
fur
0d6b7f4c5f Fixed incorect argument type in jlong_to_jdouble() which was causing Java long values to get mangled. 1998-07-03 00:00:15 +00:00
fur
7e5dbbafb6 Use Types.h instead of more modern MacTypes.h so that we can build with CodeWarrior 2 on the Mac. 1998-07-02 04:11:53 +00:00
montulli
baa6d6585c merge montulli1 branch with tip 1998-07-02 02:39:54 +00:00
shaver
4687e1488a forgot the NPL 1998-07-01 19:59:06 +00:00
beard
14d7539139 Fixed unintended assignment warning in lookup_member_by_id. 1998-07-01 18:58:29 +00:00