4934 Commits

Author SHA1 Message Date
warren%netscape.com
35941018bd Changes to build with MOZ_OJI, and optionally build NSJVM. Changes to regenerate jar files. Changed version number to 50.
git-svn-id: svn://10.0.0.236/trunk@7285 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-05 00:36:13 +00:00
warren%netscape.com
379619f4e4 Fixed crashes in reporting errors on failure to initialize.
git-svn-id: svn://10.0.0.236/trunk@7269 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-04 21:37:16 +00:00
bjorn%netscape.com
30ead9145f Additional xpcom support for JS. Currently not in use by anyone. See MyScriptable.{h,cpp}
for an example of how to use this interface.


git-svn-id: svn://10.0.0.236/trunk@7252 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-04 20:34:20 +00:00
shaver%netscape.com
8899f4d056 added JSVERSION_1_4, removed prconv.sed NULs
git-svn-id: svn://10.0.0.236/trunk@7062 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 19:52:50 +00:00
shaver%netscape.com
e450ec31e8 added JSVersion JSVERSION_1_4
git-svn-id: svn://10.0.0.236/trunk@7061 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 19:43:23 +00:00
warren%netscape.com
f7983eaff1 removed jsj for MOZ_JAVA
git-svn-id: svn://10.0.0.236/trunk@7004 18797224-902f-48f8-a5cc-f745e15eee43
1998-08-01 00:03:31 +00:00
warren%netscape.com
5e49404e07 Removed build of java classes.
git-svn-id: svn://10.0.0.236/trunk@6980 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 21:54:16 +00:00
warren%netscape.com
af74b07970 Fixed _jni dir problem
git-svn-id: svn://10.0.0.236/trunk@6976 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 21:22:43 +00:00
warren%netscape.com
20b5610704 Removed unzip step.
git-svn-id: svn://10.0.0.236/trunk@6972 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 21:12:32 +00:00
warren%netscape.com
3c42f93bf9 Landing changes in the OJI_19980727_BRANCH since the OJI_19980727_TIP_MERGE tag.
git-svn-id: svn://10.0.0.236/trunk@6967 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 20:19:50 +00:00
mccabe%netscape.com
cd73b6485a Another attempt to remove trailing nul characters added courtesy CVS.
git-svn-id: svn://10.0.0.236/trunk@6915 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 01:45:05 +00:00
mccabe%netscape.com
b32b6c20e8 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.


git-svn-id: svn://10.0.0.236/trunk@6907 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-31 00:07:22 +00:00
mccabe%netscape.com
5dce40da3b 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.


git-svn-id: svn://10.0.0.236/trunk@6905 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 23:46:29 +00:00
mccabe%netscape.com
b289a7e9f5 Added NPL.
git-svn-id: svn://10.0.0.236/trunk@6904 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-30 23:44:39 +00:00
warren%netscape.com
6cf0255e58 Committed from OJI_19980618_TIP_MERGE1.
git-svn-id: svn://10.0.0.236/trunk@6602 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-28 02:11:07 +00:00
mccabe%netscape.com
171803661a 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.


git-svn-id: svn://10.0.0.236/trunk@6445 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-24 23:12:09 +00:00
bjorn%netscape.com
8b53ff3864 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.


git-svn-id: svn://10.0.0.236/trunk@6327 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 22:25:16 +00:00
bjorn%netscape.com
f507367ff5 New version of jsIScriptable.h (clobbers the old one). New files added for
testing (MyScriptable) and embedding support (JSWrapper,jsIScriptable,main).


git-svn-id: svn://10.0.0.236/trunk@6309 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-23 20:46:28 +00:00
warren%netscape.com
3ae4ac68e3 Added generated files for when we're not building java anymore.
git-svn-id: svn://10.0.0.236/trunk@6059 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-21 05:42:12 +00:00
mccabe%netscape.com
2320e36eef added some more #if JS_HAS_SHARP_VARS checks so towards compiliation
under version 120 in jsconfig.h.  Other fixes needed, though...


git-svn-id: svn://10.0.0.236/trunk@5848 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 21:18:41 +00:00
mccabe%netscape.com
005974ff02 Fixed #ifdef to #if for various features defined in jsconfig.h -
JS_HAS_IN_OPERATOR, and JS_HAS_INITIALIZERS.


git-svn-id: svn://10.0.0.236/trunk@5839 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 20:46:12 +00:00
mccabe%netscape.com
beb8b2b683 Fixed interpretation of JSOP_IN to match our ECMA proposal - throw a
runtime error if the RHS is not an object.


git-svn-id: svn://10.0.0.236/trunk@5830 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 19:10:46 +00:00
mccabe%netscape.com
24714d3ec7 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.


git-svn-id: svn://10.0.0.236/trunk@5784 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-17 02:56:04 +00:00
shaver
469e36a3d2 more jsI?Context stuff, some Scriptable hackery
git-svn-id: svn://10.0.0.236/trunk@5597 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 16:59:47 +00:00
mccabe
b00377b8ce Added configuration section for js 1.4, with in/instanceof/exceptions turned
on.  (Default configuration is still 1.3.)


git-svn-id: svn://10.0.0.236/trunk@5567 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-15 03:00:24 +00:00
shaver
afca99d6a9 support int JSVALs in XDRValue (duh)
git-svn-id: svn://10.0.0.236/trunk@5393 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 16:12:41 +00:00
danm
a677161106 optionally include GlowCode. bug 299200 a:don.
git-svn-id: svn://10.0.0.236/trunk@5392 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-13 00:22:53 +00:00
ramiro
da9ab54d23 Fix broken '#if defined' and no new line at end of makefile.
git-svn-id: svn://10.0.0.236/trunk@5367 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-11 12:45:01 +00:00
mccabe
407732a410 Added newline in 2nd comment to make the LXR indexer slightly happier.
Thanks to Dawn Endico <dawn@cannibal.mi.org> for LXR hacking.


git-svn-id: svn://10.0.0.236/trunk@5271 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-10 02:13:17 +00:00
danm
99159ddc96 glowcode. bug 299200 a:don.
git-svn-id: svn://10.0.0.236/trunk@5225 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-09 16:33:15 +00:00
shaver
878a85e07b start at jsContext and jsRuntime implementations, enough to run trivial script
git-svn-id: svn://10.0.0.236/trunk@5148 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-08 16:53:49 +00:00
mccabe
1301adda9f 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.


git-svn-id: svn://10.0.0.236/trunk@5137 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-08 07:56:43 +00:00
mccabe
c575d8c493 Made the assign hack conditional on JSVERSION_IS_ECMA.
git-svn-id: svn://10.0.0.236/trunk@5117 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-07 23:59:45 +00:00
shaver
818813f0fd tentative and likely useless script verifier for XDR (-DJS_XDR_SCRIPT_VERIFIER)
git-svn-id: svn://10.0.0.236/trunk@5036 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-04 19:45:46 +00:00
fur
77b26c0ea1 These files were moved to js/ref/liveconnect/macbuild/JavaSession.
git-svn-id: svn://10.0.0.236/trunk@5018 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 19:00:59 +00:00
fur
90721aa429 + 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.


git-svn-id: svn://10.0.0.236/trunk@5005 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 15:50:16 +00:00
fur
5d2426cebb Tweaked comment.
git-svn-id: svn://10.0.0.236/trunk@4985 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 02:43:34 +00:00
fur
c583e2e8f7 Fix Win32 warnings that were introduced as a result of curing Mac warnings.
git-svn-id: svn://10.0.0.236/trunk@4984 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 02:42:16 +00:00
fur
0318d6d143 Got rid of debug printf().
git-svn-id: svn://10.0.0.236/trunk@4983 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 02:41:31 +00:00
fur
cf3292cbf7 Added Compatibility discussion.
Tweaked Mac build instructions.


git-svn-id: svn://10.0.0.236/trunk@4982 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 02:40:48 +00:00
fur
e121f64e4f Fixed incorect argument type in jlong_to_jdouble() which was causing Java long values to get mangled.
git-svn-id: svn://10.0.0.236/trunk@4964 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-03 00:00:15 +00:00
fur
b601507a5e Use Types.h instead of more modern MacTypes.h so that we can build with CodeWarrior 2 on the Mac.
git-svn-id: svn://10.0.0.236/trunk@4891 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 04:11:53 +00:00
montulli
20e270f2b3 merge montulli1 branch with tip
git-svn-id: svn://10.0.0.236/trunk@4889 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-02 02:41:04 +00:00
shaver
c00692bd31 forgot the NPL
git-svn-id: svn://10.0.0.236/trunk@4824 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 19:59:06 +00:00
beard
feeaf633f6 Fixed unintended assignment warning in lookup_member_by_id.
git-svn-id: svn://10.0.0.236/trunk@4823 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 18:58:29 +00:00
beard
546d7d594b Fixed unintended assignment warning in access_java_array_element.
git-svn-id: svn://10.0.0.236/trunk@4822 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 18:55:49 +00:00
beard
9d8774e021 Added prototype for jsj_ConvertJavaStringToJSString.
git-svn-id: svn://10.0.0.236/trunk@4820 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 18:48:12 +00:00
beard
87f6d6e462 enter_js now static, since it had no external prototype.
git-svn-id: svn://10.0.0.236/trunk@4819 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 18:47:26 +00:00
beard
93f8eb2a1a define_JavaPackage now static since it had no external prototype.
git-svn-id: svn://10.0.0.236/trunk@4818 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 18:46:23 +00:00
beard
2a4bff8f61 JavaObject_getObjectOps now static since it had no external prototype.
git-svn-id: svn://10.0.0.236/trunk@4817 18797224-902f-48f8-a5cc-f745e15eee43
1998-07-01 18:45:32 +00:00