Граф коммитов

236 Коммитов

Автор SHA1 Сообщение Дата
warren%netscape.com 93ccc7040b 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 7720555e35 Fixed crashes in reporting errors on failure to initialize. 1998-08-04 21:37:16 +00:00
bjorn%netscape.com 3f07b83d17 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 2690be0ced added JSVERSION_1_4, removed prconv.sed NULs 1998-08-01 19:52:50 +00:00
shaver%netscape.com a97c0e5ee9 added JSVersion JSVERSION_1_4 1998-08-01 19:43:23 +00:00
warren%netscape.com 2a36bb5ca9 removed jsj for MOZ_JAVA 1998-08-01 00:03:31 +00:00
warren%netscape.com 9bfdf95092 Removed build of java classes. 1998-07-31 21:54:16 +00:00
warren%netscape.com 94f09d2f58 Fixed _jni dir problem 1998-07-31 21:22:43 +00:00
warren%netscape.com 55c184c158 Removed unzip step. 1998-07-31 21:12:32 +00:00
warren%netscape.com 207bbebb65 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 0ce06a27df Another attempt to remove trailing nul characters added courtesy CVS. 1998-07-31 01:45:05 +00:00
mccabe%netscape.com 97db8e8a7c 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 d6b6b2000c 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 980224a89e Added NPL. 1998-07-30 23:44:39 +00:00
warren%netscape.com a0c375aaa0 Committed from OJI_19980618_TIP_MERGE1. 1998-07-28 02:07:25 +00:00
mccabe%netscape.com 999a28a323 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 d9a5c6f446 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 719cb64323 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 f3f8ff88a6 Added generated files for when we're not building java anymore. 1998-07-21 05:42:12 +00:00
mccabe%netscape.com 9bb08237dc 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 1b95117e0b 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 80154fca8a 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 9c24e20796 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 a9cc847e2b more jsI?Context stuff, some Scriptable hackery 1998-07-15 16:59:47 +00:00
mccabe 9b0d78bf05 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 fc9cae6d8f support int JSVALs in XDRValue (duh) 1998-07-13 16:12:41 +00:00
danm f2ba7ea301 optionally include GlowCode. bug 299200 a:don. 1998-07-13 00:22:53 +00:00
ramiro 8992e74cbe Fix broken '#if defined' and no new line at end of makefile. 1998-07-11 12:45:01 +00:00
mccabe 2bc52deb90 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 181ec43df6 glowcode. bug 299200 a:don. 1998-07-09 16:33:15 +00:00
shaver f49ed3305e start at jsContext and jsRuntime implementations, enough to run trivial script 1998-07-08 16:53:49 +00:00
mccabe 53b3ff3224 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 314d515509 Made the assign hack conditional on JSVERSION_IS_ECMA. 1998-07-07 23:59:45 +00:00
shaver e907c6a086 tentative and likely useless script verifier for XDR (-DJS_XDR_SCRIPT_VERIFIER) 1998-07-04 19:45:46 +00:00
fur e30c123261 These files were moved to js/ref/liveconnect/macbuild/JavaSession. 1998-07-03 19:00:59 +00:00
fur 47c9f09d1c + 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 fe28615c39 Tweaked comment. 1998-07-03 02:43:34 +00:00
fur 1ec2b0195b Fix Win32 warnings that were introduced as a result of curing Mac warnings. 1998-07-03 02:42:16 +00:00
fur d05cdfd43c Got rid of debug printf(). 1998-07-03 02:41:31 +00:00
fur 444c8ac8b5 Added Compatibility discussion.
Tweaked Mac build instructions.
1998-07-03 02:40:48 +00:00
fur c3e5f43f8a 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 1aabd69b34 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 9c9326fee5 merge montulli1 branch with tip 1998-07-02 02:39:54 +00:00
shaver 749a0b5238 forgot the NPL 1998-07-01 19:59:06 +00:00
beard 58f464c1a2 Fixed unintended assignment warning in lookup_member_by_id. 1998-07-01 18:58:29 +00:00
beard 9a3929928e Fixed unintended assignment warning in access_java_array_element. 1998-07-01 18:55:49 +00:00
beard 9aa7eabbba Added prototype for jsj_ConvertJavaStringToJSString. 1998-07-01 18:48:12 +00:00
beard 111a471158 enter_js now static, since it had no external prototype. 1998-07-01 18:47:26 +00:00
beard 447cc5f8c3 define_JavaPackage now static since it had no external prototype. 1998-07-01 18:46:23 +00:00
beard 530433d35c JavaObject_getObjectOps now static since it had no external prototype. 1998-07-01 18:45:32 +00:00