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

1190 Коммитов

Автор SHA1 Сообщение Дата
mccabe%netscape.com 786d00b0e0 Further fix to properly include classes from the org.mozilla.classfile package in the generated .jar file.
Thanks to Andrew Wason <aw@softcom.com> for his continued work on the Rhino make system.
1999-08-03 00:25:30 +00:00
mccabe%netscape.com 7967e283d1 Add the classes defined in org/mozilla/classfile to js.jar. 1999-08-02 09:01:19 +00:00
jband%netscape.com 6a09fe909e fix for bug 10998 pointed out by rginda@ix.netcom.com. This was really just a refcounting bug 1999-07-31 18:53:40 +00:00
briano%netscape.com 7508eec834 OpenVMS-specific addition to force a POSIX build of jscpucfg. 1999-07-31 00:38:25 +00:00
jband%netscape.com eab48df1ca 1) fix the xpconnect factories to not use static objects.
2) add a test that acts as a sample for doing oberloaded methods on xpconnect wraped natives.
3) add a NOT_IMPLEMENTED method to wrapped native for getting the prototype JS object.
4) Set the global object of the JSContext as the wrapped native JSObject's parent when creating this JSObject. This makes JS code compiled against the wrapper actuall work!
5) fix the refcounting on factories in the tests/components module
1999-07-31 00:26:35 +00:00
jband%netscape.com 009da53086 copy in most of the better error reporter from js.c 1999-07-31 00:19:50 +00:00
briano%netscape.com 5ca4aa0b87 Trivial elimination of some pointless macros as discussed in bug 8568. Approved by leaf@mozilla.org. 1999-07-29 01:18:12 +00:00
brendan%mozilla.org ed627432e2 Fix warnings reported at http://tinderbox.mozilla.org/SeaMonkey/warnings.html, mostly unsigned/signed bothers. 1999-07-28 06:48:44 +00:00
briano%netscape.com 007ea62765 Cleaned it up and changed the name of libreg.{a,so} to libmozreg.{a,so} to fix the conflict reported in bug 8568. 1999-07-27 23:27:44 +00:00
waldemar%netscape.com a63b667215 Updated for recent semantic engine changes. Changed the meaning of (?= to match Perl. 1999-07-27 01:05:59 +00:00
waldemar%netscape.com 229e628f04 Updated for recent semantic engine changes 1999-07-27 01:05:27 +00:00
waldemar%netscape.com c7ff05cef6 Implemented partial order for operator precedences. Removed global array functions and reformatted 'length' and 'empty' functions. 1999-07-27 01:03:19 +00:00
waldemar%netscape.com e59b7c66d6 Implemented partial order for operator precedences. Removed global array functions and reformatted 'length' and 'empty' functions. Made lexer-actions into global function calls. 1999-07-27 01:02:21 +00:00
waldemar%netscape.com ae381708a6 Made lexer-actions into global function calls 1999-07-27 01:00:05 +00:00
waldemar%netscape.com a9ba1329e2 Added partial order library 1999-07-27 00:58:44 +00:00
waldemar%netscape.com b32801e030 Replaced :unit by :empty-10 1999-07-27 00:58:01 +00:00
waldemar%netscape.com 2de968d05f First Checked In. 1999-07-27 00:57:03 +00:00
mccabe%netscape.com 1057414fef Fix code to invoke Wrapper interfaces using INVOKEINTERFACE rather than INVOKEVIRTUAL.
Thanks go to Andrew Wason <aw@softcom.com> for finding this problem and providing the patch:



If we implement a Java interface in JavaScript, and a method in that interface returns a Java object, we get a java.lang.IncompatibleClassChangeError: org/mozilla/javascript/Wrapper  exception.

We have attached a sample JavaScript file which duplicates the error.

The problem is JavaAdapter is generating an INVOKEVIRTUAL bytecode to call Wrapper.unwrap, but Wrapper is an interface and so INVOKEINTERFACE should be used instead.  As a result of this change, the IFEQ bytecode generated needs to jump more bytes.  We have attached a patch that fixes the problem.

Andrew
--
Andrew Wason
SoftCom, Inc.
aw@softcom.com
1999-07-26 10:45:38 +00:00
mccabe%netscape.com db16cf6ac4 Added NPL. 1999-07-26 10:41:46 +00:00
mccabe%netscape.com 9306d81fba Comment fixes.
- normalized initial MPL comment to match the format of others in the tree, including an initial -*- Mode line.

- removed RCS $log$, etc. comments.  We use CVS, and they just make spurious changes...
1999-07-26 10:40:53 +00:00
brendan%mozilla.org dd68d93bca Eliminate warning about unsigned/signed == comparison. 1999-07-23 08:24:35 +00:00
brendan%mozilla.org 7c297899de Add new flag to js_DecompileValueGenerator calls. 1999-07-23 08:22:12 +00:00
brendan%mozilla.org 3f05c43fc5 Bugs, bugs bugs:
- js_DecompileValueGenerator had rusted due to bytecode/source-note changes,
  or maybe parts of it never worked right.  Anyway, it now does not induce a
  crashing underflow in the decompiler.  As part of this fix, it now takes a
  checkStack flag telling whether to look for the jsval v argument on the JS
  stack.  The calls from ImportProperty, js_SetProperty, and js_DeleteProperty
  pass in v a jsval for the property id, which should not be sought after on
  the stack (it might happen to be there due to o['p'] = 2, but we want to
  decompile o["p"], not "p").
- js_DecompileValueGenerator would load a generating pc even if the value v
  did not match the pc's corresponding stack item!  Oops.  This lead to less
  than idea diagnostics.
- js_DecompileValueGenerator was also not mapping JSOP_TRAP to the real op at
  a sufficiently early and univeral point in its control flow.
- Fix PopOff to assert and check for stack underflow in the decompiler, and
  beef up PushOff too (it asserted, but did not check).
- js_ReportIsNotFunction now avoids JS_InternString by indexing directly into
  cx->runtime->atomState.typeAtoms with the result of JS_TypeOfValue.
- Removed unnecessary local GC root reserved by non-zero trailing member of
  obj_eval's JSFunctionSpec initializer.
1999-07-23 08:01:54 +00:00
mccabe%netscape.com 5bfae9e201 Fix warnings flagged by the auto-warnings page http://tinderbox.mozilla.org/SeaMonkey/warnings.html . Thanks slamm. 1999-07-22 10:36:23 +00:00
mccabe%netscape.com c253c535fe Changes to support building on Alpha NT.
Patches courtesy bob meader <bob@guiduck.com> who seems to be working fast and furious on this port.
1999-07-22 03:58:51 +00:00
cbegle%netscape.com 9afec96e21 fixed a versioning problem with the tests. these should succeed now.
these files files have no impact on the mozilla build.
1999-07-21 19:20:02 +00:00
cbegle%netscape.com 990405ae6e *** empty log message *** 1999-07-21 18:02:34 +00:00
cbegle%netscape.com 227215f038 update shared functions file.
this is not part of the mozilla client build, and has no effect on its
bustedness.
1999-07-20 18:00:13 +00:00
cbegle%netscape.com 799b238b4e adding file for running tests in the driver. 1999-07-20 17:49:01 +00:00
Jerry.Kirk%Nexwarecorp.com 78e21283f2 Defined DASH_R for Neutrino 1999-07-19 21:18:19 +00:00
jband%netscape.com 2552269283 enabling xpconnect for Linux ARM because we now have xptcall code for Linux ARM from Stefan Hanske <sh990154@mail.uni-greifswald.de> 1999-07-19 02:59:21 +00:00
cbegle%netscape.com 896723aca8 the js1.2 tests really need the version(120) called.
fix regression test for #7703.

This is not part of the mozilla build and has no effect on its bustedness.
1999-07-16 21:47:51 +00:00
jband%netscape.com e1f567d081 adding forward declaration test 1999-07-16 20:38:16 +00:00
jband%netscape.com 0fc3066530 added files: mozilla/js/src/xpconnect/idl/xpctest2.idl 1999-07-16 20:35:58 +00:00
jband%netscape.com fe0aea2102 adding new file for forward declaration test 1999-07-16 20:33:36 +00:00
jband%netscape.com 38990d5388 an inout of interface pointer test that illustrates that bug 9914 is not a bug 1999-07-16 04:29:49 +00:00
jband%netscape.com 8bd1437342 make the const things const so that strict compilers don't complain 1999-07-16 04:23:00 +00:00
norris%netscape.com 6563fb2291 Add new example. 1999-07-16 03:03:20 +00:00
cbegle%netscape.com 7f486608b0 Remove more recursive calls to startTest. hm..
This is not part of the mozilla build and has no effect on its bustedness.
1999-07-16 01:39:07 +00:00
cbegle%netscape.com 639a7136c4 Add a regression test case for #7224.
This is not part of the mozilla build and has no effect on build bustage.
1999-07-16 01:30:24 +00:00
cbegle%netscape.com 2110f64332 Remove a recursive call to startTest.
This file is not part of the client build.
1999-07-16 01:25:50 +00:00
mccabe%netscape.com b32ef2d2a0 Fix to 9523. In the javascript Date implementation, check for unsupplied date argument to new Date(year, month, date) rather than clamping it to 1 if < 1. Previously we ignored negative values for the date argument, rather than subtracting from the resulting date, as per the ECMA-262 spec. for the JavaScript language.
Thanks go to Martin Honnen <martin.honnen@sector27.de> for spotting this difference from the spec.
1999-07-16 00:50:11 +00:00
mccabe%netscape.com 91f1c10d79 Fix to 9523.
Add an #if defined(__arm) check to tell jsdtoa.c about the (somewhat bizzare) endian-ness of the ARM architecture.

Thanks go to Stefan Hanske <sh990154@mail.uni-greifswald.de> for this fix.
1999-07-16 00:45:13 +00:00
rogerl%netscape.com 1e234bee7e Fixed compile time errors + minor memory allocation problems. 1999-07-15 23:37:05 +00:00
cbegle%netscape.com fd28e5b3c2 Add a regression test case for #7635.
This file is not part of the client build.
1999-07-15 22:28:12 +00:00
cbegle%netscape.com 2e2a2c8645 New tests for the JavaScript engine.
These tests are not built and are not part of the client build.
1999-07-15 20:27:40 +00:00
jband%netscape.com 50e430403c 1) added JSContextStack per thread service (with test).
2) rooted out all instances of JS_ReportErros and replaced with JS exception throwing.
3) added more exception message types.
4) Added service (also reflected into JS) for getting JS and native stack objects to be used in exceptions.
5) Fixed broken test.
6) updated TODO list.
1999-07-15 05:42:53 +00:00
mcafee%netscape.com 5083998c76 Fixing linux warning 1999-07-15 03:02:44 +00:00
jband%netscape.com bbee6e597d added files: mozilla/js/src/xpconnect/src/xpcstack.cpp 1999-07-15 03:00:55 +00:00
jband%netscape.com 86f9361856 adding placeholder file - soon to be used 1999-07-15 02:59:43 +00:00
jband%netscape.com c721652ae0 added files: mozilla/js/src/xpconnect/idl/xpcexception.idl 1999-07-15 02:50:47 +00:00
jband%netscape.com d39d8a4018 adding file - soon to be used 1999-07-15 02:48:07 +00:00
brendan%mozilla.org 23eab7fbcf Warning abatement. 1999-07-15 02:46:00 +00:00
brendan%mozilla.org 7fa05e97d9 - Fix for..in bug where ECMA 12.6.3 steps 5 and 6 are reversed: the effect was
to define an unbound global variable used to enumerate an empty object, when
  the standard says no variable should be defined.
- Clean up minor nits, make comment style match prevailing, tighten up for..in
  element-indexing special case comments.
- Fix js_Invoke to take CONSTRUCT and INTERNAL flags arg instead of a construct
  boolean arg and the JSStackFrame internalCall mis-located boolean non-arg.
  Use these flags correctly in all calls (previous version failed to set the
  bogus frame.internalCall around js_Invoke calls from jsfun.c and jsstr.c).
1999-07-15 02:24:23 +00:00
cbegle%netscape.com 57c272ae37 add a regression test for bug #9802 1999-07-14 20:26:27 +00:00
cbegle%netscape.com 7864b1fab8 correct the naming of these tests. negative tests have an -n.js filename
extension.
1999-07-14 18:12:11 +00:00
cbegle%netscape.com 1d5a125e45 allow command line option to specify the full path to the js executable. 1999-07-14 18:11:22 +00:00
jdunn%netscape.com e85c4dfe66 Need to put libxpconnect.so in components for AIX 1999-07-14 16:36:16 +00:00
norris%netscape.com e07db97ba0 Report errors for incorrect usages of varargs forms. 1999-07-08 16:32:51 +00:00
norris%netscape.com 5212cf9694 Fix javadoc bug. 1999-07-08 00:37:12 +00:00
ramiro%netscape.com bbed66360e Checkin another chunk of Alex Larsson's non-exported symbol reduction
patch.  All changes protected by  MOZ_STRIP_NOT_EXPORTED.
These particular changes set the NS_EXPORT declarations as needed by
the linker.
1999-07-07 09:02:21 +00:00
brendan%mozilla.org 3c47cbe1b2 Avoid overallocating JS stack for "%ip" and other multi-char format codes. 1999-07-07 08:18:42 +00:00
mccabe%netscape.com 00a2b5290f Define JS_HAVE_LONG_LONG for VMS on the Alpha.
Thanks to Colin Blake <colin@theblakes.com> for this patch.
1999-07-07 00:38:52 +00:00
mccabe%netscape.com b6aed3e5d7 Fix to 9241 - Change types to unsigned to fix compile-time warnings.
Thanks go to kherron@sgum.mci.com for the patch.
1999-07-06 22:58:42 +00:00
sspitzer%netscape.com ca20b32c35 fix warning 1999-07-06 22:40:54 +00:00
norris%netscape.com 4369cccbf6 Fix bug in ScriptableObject that make classes with jsGet_ but not jsFunction_ work improperly.
Also update Foo example to conform to new defineClass API.
1999-07-06 17:13:33 +00:00
jband%netscape.com 488ac73cde added files: mozilla/js/src/xpconnect/src/xpcthreadcontext.cpp 1999-07-05 19:42:55 +00:00
jband%netscape.com 935615bc82 adding new file to build projects 1999-07-05 19:42:32 +00:00
jband%netscape.com acc9aa4f7f added files: mozilla/js/src/xpconnect/idl/nsIJSContextStack.idl 1999-07-05 19:29:09 +00:00
jband%netscape.com 65b75a8897 adding JSContextStack interface 1999-07-05 19:26:36 +00:00
jband%netscape.com d0965e0a9d updating string example/test to include an example of [shared] 1999-07-03 00:59:56 +00:00
jband%netscape.com 40ffe9be8d adding a string getter tests as an example for bug 9227 1999-07-03 00:34:35 +00:00
briano%netscape.com 5b812bbb20 Minor IRIX-specific tweak to make 5.x happy. 1999-07-02 23:19:13 +00:00
jband%netscape.com 8c51bca47b fix mismatched bool type. Thanks to Glen Nakamura <glen.nakamura@usa.net> 1999-07-02 23:08:24 +00:00
ramiro%netscape.com 43295086e9 Part I of Alexander Larsson's (alex@signum.se) patch to reduce symbol bloat.
All these changes are safely ifdefed out for the time being.
There are also a few implementation
DEFINES cleanups.
1999-07-02 14:59:36 +00:00
dveditz%netscape.com 0eb6c820cf nakefile cleanups 1999-07-02 13:42:17 +00:00
jband%netscape.com 0c82b1f04e spaced out format string for readability 1999-07-02 02:41:15 +00:00
jband%netscape.com 460d62cc6b xpconnect now QIs the object to be wrapped before wrapping it 'just to be sure' 1999-07-02 02:17:37 +00:00
jband%netscape.com 367e8add5e change some instances of 'const char* foo' to 'const char foo[]' 1999-07-01 18:21:01 +00:00
brendan%mozilla.org 1eed515ae6 Rip out assign hack, simplify boolean value synthesis, minor cleanups. 1999-07-01 02:24:32 +00:00
jband%netscape.com 99fcffe580 1) make nsIXPConnect.h include only jspubtd.h instead of the whole of jsapi.h.
2) make the wrappedJS QI check for a match with chained wrappers before trying QI on the wrapped JS object.
3) add support for brendan's new JSArgumentFormatter callback to do auto js arg conversions - with test.
1999-06-30 06:01:36 +00:00
jband%netscape.com 4d8f787193 an nsISupports::GetIID() to nsCOMTypeInfo<nsISupports>::GetIID() change that scc missed 1999-06-30 03:17:30 +00:00
jband%netscape.com a39bd6d9f6 Fixing lame bug in two Find implementations - thanks shaver. Removing commented out dead code 1999-06-29 21:37:09 +00:00
jband%netscape.com a022bcbbcf doing my part for bug 8227 1999-06-29 21:34:50 +00:00
scc%netscape.com f79508bc68 |nsISupports::GetIID()| --> |nsCOMTypeInfo<nsISupports>::GetIID()| 1999-06-29 21:01:31 +00:00
mcafee%netscape.com c904fa8bfa BeOS changes. a=jband 1999-06-29 07:05:14 +00:00
mcafee%netscape.com 916a980efe BeOS changes. a=jband 1999-06-29 06:57:57 +00:00
mcafee%netscape.com 0457f7bdd5 BeOS changes. a=jband 1999-06-29 06:53:01 +00:00
mcafee%netscape.com 9107baba71 BeOS changes. a=jband 1999-06-29 06:51:25 +00:00
mcafee%netscape.com f2d4af5b11 BeOS changes, a=jband. 1999-06-29 06:47:38 +00:00
mcafee%netscape.com cb27a1049b BeOS changes. a=jband 1999-06-29 06:44:17 +00:00
mcafee%netscape.com 0890671c0d BeOS changes 1999-06-29 06:42:26 +00:00
mcafee%netscape.com 1a6cdf6b8f BeOS changes 1999-06-29 06:36:18 +00:00
mcafee%netscape.com b62c5954a7 Changes for BeOS. r=jband 1999-06-29 06:23:40 +00:00
brendan%netscape.com 8a019b8da7 - Add (jsatomid) cast to GET_ATOM_INDEX to abate warnings.
- Fix js_GetAtom fallibility by returning &dummy on assert-botch "can't happen"
  index out of range case.
- js_InitAtomMap needn't bother nulling ale->next with tmp save
- js_InitAtomState explicit tail fusion for FROB via goto bad, and early memset
  (I know, JSRuntime is cleared already and it contains the atom state ... but
  jsatom.c doesn't know that).
- Clear all ATOM_ flags save ATOM_PINNED when creating a new atom.
- Cleanup xtra, ALIGNNUM, etc. useless variables, use JSVAL_ALIGN and JS_MAX.
1999-06-29 02:19:17 +00:00
brendan%netscape.com fe9bf84815 Final part of 8042 fix: always initialize frame.internalCall. 1999-06-29 00:22:06 +00:00
brendan%netscape.com e7941a0a33 Forgot externs before JS_PUBLIC_API calls for ArgumentFormatter functions. 1999-06-29 00:20:21 +00:00
brendan%netscape.com 314d395746 OK, final fix not to impute JS_ARGUMENT_FORMATTER_DEFINED from va_start (duh).
Despite my stupidity here, I must say that over-includers elsewhere of both
jspubtd.h and jsapi.h, and even jscntxt.h, with system headers intermixed, suck
a lot too.
1999-06-28 04:50:37 +00:00
brendan%netscape.com 33592bf521 Shoot me now. 1999-06-28 04:36:54 +00:00
brendan%netscape.com bfb9739a08 *Clone* JSArgumentFormatter typedef from jspubtd.h to jsapi.h to cope with bad
includers who grab jspubtd.h first, then stdarg.h, then jsapi.h.  Suckage.
1999-06-28 04:04:58 +00:00
brendan%netscape.com 0476eb43d9 Move JSArgumentFormatter typedef from jspubtd.h to jsapi.h to cope with bad
includers who grab jspubtd.h first, then stdarg.h, then jsapi.h.
1999-06-28 03:52:16 +00:00
brendan%netscape.com e3df4f3ab2 Added custom JS_{Convert,Push}Arguments{,VA} formatter function support for
use by XPConnect and other clients.
1999-06-28 03:13:21 +00:00
sspitzer%netscape.com 1b73b6e649 more anal tricks. 1999-06-26 05:01:40 +00:00
sspitzer%netscape.com 49b8290fcf being anal. 1999-06-26 04:59:48 +00:00
brendan%netscape.com 549950fc69 Remove gratuitous include of <string.h>. 1999-06-26 03:32:15 +00:00
brendan%netscape.com 54eafda12a - Rename js_CallFunctionValue to js_InternalCall to distinguish it from all
"external" calls compiled from scripts, which have stack budget depth slots
  under the return value slot for the call expression's generating pc.
- New internalCall packed boolean flag in JSStackFrame to distinguish callers
  of js_InternalCall so the generating pc isn't mistakenly stored depth slots
  below stack space allocated on-the-fly for internal call args/rval.
- Fixed bugzilla bug 8042, finally by storing the call expression's generating
  pc -- but only for external calls.
- Whitespace policing, gratuitous parenthesization reduction, etc.
1999-06-26 03:28:47 +00:00
brendan%netscape.com 0ae269e87b Eliminate assignment in condition. 1999-06-26 03:00:36 +00:00
briano%netscape.com 86248d81a4 Fix for the case where jscpucfg dies and leaves a zero-length jsautocfg.h. 1999-06-24 22:35:28 +00:00
rogerl%netscape.com a8790683a9 Added tree deletion to regexp finalizer 1999-06-24 20:47:20 +00:00
Jerry.Kirk%Nexwarecorp.com 214abd1c03 - Add support for Neutrino platform 1999-06-24 20:21:26 +00:00
fur%netscape.com e1ac50b525 Backing out the merge with SpiderMonkey140_BRANCH for LiveConnect.
Some OJI-related changes were made on the trunk that can't be easily
reconciled with the branch.
1999-06-24 05:56:16 +00:00
fur%netscape.com 05603647c8 Merge changes from SpiderMonkey140_BRANCH between
JS_STABLE_DROP_04261999 and
 JS_STABLE_DROP_06221999
1999-06-24 05:22:41 +00:00
briano%netscape.com 8365ed034e IRIX-specific fix to create jsmath.o properly. 1999-06-23 22:20:25 +00:00
fur%netscape.com dbef917c04 Removing shaver/brendan fix for #8042 since it's apparently buggy 1999-06-23 19:39:08 +00:00
fur%netscape.com 51498f2fa6 Merge from SpiderMonkey140_BRANCH:
Incorporated changes from JS_STABLE_DROP_04261999 to JS_STABLE_DROP_06221999
1999-06-23 14:18:56 +00:00
jband%netscape.com a51fe23392 1) fix for bug 7700 - use a JSClass without a call method for all wrappers that don't do nsIXPCScriptable so that JS doesn't think they're all functions.
2) breakout js ops into their own file so that the flattening project is less complicated
3) add a noisy object to the test components - this object prints addrefs, release, QIs, ctor, and dtor. This is useful for refcounting tests.
4) cleanup some component registration stuff.
1999-06-23 07:04:34 +00:00
jband%netscape.com 6d5b6565ad fix bustage 1999-06-22 20:57:57 +00:00
jband%netscape.com fff555b722 added files: mozilla/js/src/xpconnect/src/xpcwrappednativejsops.cpp 1999-06-22 19:50:25 +00:00
jband%netscape.com 929f3e10b0 breaking out stuff into a new file - using placeholder now to get all makefiles and projects building right first 1999-06-22 19:45:56 +00:00
beard%netscape.com 48ce127df1 added ImporterTopLevel.java 1999-06-19 23:38:35 +00:00
norris%netscape.com 716b905e30 Add support for selectively filtering Java classes' visibility to JS 1999-06-18 21:35:35 +00:00
norris%netscape.com 562b4ecb1b Reduce need for a current context. 1999-06-18 21:32:18 +00:00
norris%netscape.com 75d18cd332 A bunch of changes, some experimental.
Support for jsGet_ and jsSet_ prefixes to methods for explicit getter
and setter definition.
Addition of "importClass" and "importPackage" top-level functions.
The beginnings of a history object accessible from the shell.
1999-06-18 17:37:20 +00:00
cbegle%netscape.com d3e91bee1b Add regression test for http://bugzilla.mozilla.org/show_bug.cgi?id=7635.
Rename files for consistency.

These files are not part of the client.
1999-06-17 00:20:04 +00:00
cbegle%netscape.com 1a1cc46868 Add regression test for http://bugzilla.mozilla.org/show_bug.cgi?id=4088,
Date.parse.

Not built in the client.
1999-06-16 19:25:05 +00:00
jband%netscape.com f482f9d4df updaing TODO list 1999-06-16 01:30:13 +00:00
jband%netscape.com d5eb762653 fix for bug 8248. Not setting the VAL_IS_IFACE flag for purely out params when calling native from JS. All interfaces that return an interface (e.g. QueryInterface) were getting left with one extra ref. Yuck! 1999-06-16 01:29:49 +00:00
dp%netscape.com 2cfd8edb31 Using default autoregistration 1999-06-16 00:34:08 +00:00
rogerl%netscape.com 5f9a2314ee Fixed bug #7635. instanceof now starts the chain walk from the object
prototype.
1999-06-15 23:44:30 +00:00
cbegle%netscape.com 773de348f7 Fix errors in liveconnect tests per furman@netscape.com. Renaming files
to not have a "-n" filename, since they are no longer negative tests.
1999-06-15 20:03:30 +00:00
jband%netscape.com 847f7d87f9 removing an assert that is no longer appropriate 1999-06-15 04:46:18 +00:00
jband%netscape.com df0f752009 fix for bug 7940. Notification in xpconnect of JSContext about to be destroyed was zeroing out information later used to remove gc root. This was keeping JS_RemoveRoot from being called for those objects. So, the JSRuntime was getting left with pointers to roots for stuff on JSContexts long since destroyed and for which memory had been recycled. The fix is to be *sure* to do all the proper cleanup in xpconnect upon notification that a JSContext is about to be destroyed. 1999-06-15 02:48:26 +00:00
rogerl%netscape.com c52c6e4113 Changes to get traditional functions with args. working 1999-06-15 00:57:05 +00:00
cbegle%netscape.com b338f85088 Fix error in test. Arrays should be sorted by the string value of their
members, even if they're numbers.
1999-06-14 23:39:14 +00:00
frankm%eng.sun.com 33b9d6533a Add "fast" make target, to compile only changed files. 1999-06-14 21:51:52 +00:00
jband%netscape.com 137f5a895e fix DOM native -> JSObject convert to not leak on failure and to fail fully rather than spuriously fall back and create an xpconnect wrapper 1999-06-14 21:23:46 +00:00
cbegle%netscape.com cb992db4e8 Fix test case -- remove commas from the expected result. 1999-06-14 21:06:54 +00:00
jband%netscape.com c2fa37e815 adding strlen replacement that brendan suggested to allow for passing (oneway) JSStrings with embedded NULLs. Also added comment to Makefile.in for Unixish x86 1999-06-14 20:35:26 +00:00
jband%netscape.com 4984bba80e changing JS_AddRoot calls to JS_AddNamedRoot calls to satisfy request in bug 8070 1999-06-13 19:19:44 +00:00
frankm%eng.sun.com 7c763a58f9 Revamp NativeJavaObject.coerceType and associated methods to make code
more maintainable, and to pass lc3/JSObject/ToChar-001.js.
1999-06-12 01:41:20 +00:00
rogerl%netscape.com f25d7b5229 Mucking about with stuff. 1999-06-11 23:05:16 +00:00
jband%netscape.com c1b2360bce fix for bug 8017. We were allowing JS null and void to get converted into C++ NULL for pointer types even when the target was declared as a C++ reference. This was bad. Now we check for this and fail with a nice explanatory message in the JS exception. 1999-06-11 21:59:56 +00:00
jband%netscape.com 58fa7ac41c fix for bug 7698. Have the prop state object call the right object when doing the JSENUMERATE_DESTROY and make sure that the object does not get gc'd first 1999-06-11 19:16:46 +00:00
jband%netscape.com 5e7127dd45 1) adding the fix for 7926 from brendan and sfraser (with cleanup from me).
2) added where I was not checking for JSVAL_NULL from brendan.
3) got rid of 'xpcom32' references.
4) added nsIEcho::ReturnInterface as a loopback for testing the above.
5) removed some redundant retval setting code.
1999-06-11 02:04:42 +00:00
frankm%eng.sun.com a66a71b8d7 Fixes for LC3 regression tests, including:
- check static members of instances in JavaMembers.put

- do not unwrap Wrappers before calling NativeJavaMethod.findFunction
     or NativeJavaObject.coerceType; both methods may need extra information
     provided by the wrapper.

- separate Java signatures for resolving overloaded methods and script
     signatures for error messages, so we can distinguish primitive types
     from classes.

- separate Java signatures for resolving overloaded methods and script
     signatures for error messages, so we can distinguish primitive types
     from classes.

- prevent a NativeJavaClass from being treated as a wrapped instance of
     java.lang.Class

- correct bug which preferred the *less* specific of two classes in
     NativeJavaMethod.preferSignature

- add new LC3 conversion rules to  NativeJavaObject.coerceTypes.

- coerce JS numbers to Java numbers or chars only if the JS number is in
     range.
1999-06-11 01:24:40 +00:00
rogerl%netscape.com 18b3c93221 Function calling begun. 1999-06-11 00:21:26 +00:00
rogerl%netscape.com 4bf675b98a Added base to ScriptRuntime.numberToString, NativeNumber.toString()
Bug #7625
1999-06-10 01:54:28 +00:00
rogerl%netscape.com 5ceb7b04d6 New 1999-06-09 03:10:30 +00:00
rogerl%netscape.com 1a16eaebd5 tried adding some lexical scoping to the leftmost identifier 1999-06-09 03:10:09 +00:00
jband%netscape.com 2537d68a6f removing unused file 1999-06-08 21:03:35 +00:00
norris%netscape.com c3423e873f Small reduction in code size. 1999-06-08 20:57:19 +00:00
cbegle%netscape.com 636b252693 Fix constructor test to match the constructors in DataTypeClass.java 1999-06-08 18:07:15 +00:00
cbegle%netscape.com b137e4a079 Add constructor tests. 1999-06-08 18:06:28 +00:00
cbegle%netscape.com aff9dd66fb Object getters should return the same object set in the object setters,
and not create a new object.
1999-06-08 16:27:43 +00:00
brendan%netscape.com 85b69beb44 - "varargs" counterpart to JS_ConvertArguments, JS_ConvertArgumentsVA.
- JS_PushArguments{,VA} and JS_PopArguments to convert a list of C/C++ values
  passed as actual arguments into an 'jsval *argv' on the JS stack.
- Clean up and robustify ConvertArgs test command in the js shell.
1999-06-08 02:15:57 +00:00
waldemar%netscape.com 692562586a Fixed several semantic errors. Added (?= and (?!. 1999-06-08 00:45:49 +00:00
waldemar%netscape.com 96af4f6e5c Added statement showing number of grammar states 1999-06-08 00:44:52 +00:00
briano%netscape.com 71fe6fb29a SunOS 4.x doesn't have libsocket either. 1999-06-08 00:15:02 +00:00
rogerl%netscape.com 4b314af77e Fixed bug #7703, typeof<var> wasn't referencing activation frame vars
correctly.
1999-06-07 22:29:41 +00:00
waldemar%netscape.com aeca55ec75 Simplified grammar by using lookahead constraints. Fixed \dd bugs. Made all errors occur at pattern compile time. 1999-06-07 22:00:09 +00:00
waldemar%netscape.com 9fd6762147 Simplified grammar by using lookahead constraints. 1999-06-07 21:58:24 +00:00
waldemar%netscape.com d2eb493880 Simplified grammar by using lookahead constraints. Removed requirement for an underscore before unit name. 1999-06-07 21:57:29 +00:00
norris%netscape.com efa5849c1f Clean up formatting. 1999-06-07 18:14:15 +00:00
norris%netscape.com b901db9067 Optimization: avoid allocating a Vector object for every LiveConnect call. 1999-06-07 18:13:15 +00:00
jband%netscape.com ab56353b31 allow for mapping both directions between NULL and JSVAL_NULL for all pointer type objects (string, wstring, nsid, as well as interface pointers 1999-06-07 05:09:38 +00:00
mccabe%netscape.com 6c864cef7d Change the emacs /* Mode: */ comment for many .cpp files from C to C++. A .js file snuck in there too, but I like seeing my .js in c++-mode anyway... 1999-06-06 04:25:58 +00:00
mccabe%netscape.com 93bf7039b9 Patches courtesy Jeremy Lea <reg@shale.csir.co.za>
To wit:

Attached are a couple of small fixes for building in the js/ subdir.

These are for FreeBSD-CURRENT, and for building in a seperate OBJDIR.

The FreeBSD one is a quick and dirty.  The real fix is pobably just to
use OS_LDFLAGS as defined by configure...
1999-06-06 04:10:33 +00:00
beard%netscape.com 3b5126c019 added NativeJavaConstructor.java 1999-06-05 08:20:54 +00:00
frankm%eng.sun.com 19e7423849 Replace *.class with ScriptRuntime.*Class; added ScriptRuntime.ClassClass 1999-06-05 01:48:24 +00:00
briano%netscape.com d30a760d9d Fix for SunOS 4.x. 1999-06-05 01:46:10 +00:00
jdunn%netscape.com 76a7c2d97b need to handle building in a separate directory from where the source is... 1999-06-04 23:40:02 +00:00
mccabe%netscape.com d3889060d3 Backing out demo cvs checkin. 1999-06-04 22:27:50 +00:00
briano%netscape.com 8699ea0019 Handle the (Unix) platform-specific DLL naming conventions properly. 1999-06-04 22:17:30 +00:00
jdunn%netscape.com 429f64edbd This file can't be optimized on AIX and so just like the NSPR file (prdtoa.c)
we turn off optimizing while compiling.
1999-06-04 21:50:09 +00:00
norris%netscape.com 28b57410f7 Add benchmarks. 1999-06-04 18:44:17 +00:00
beard%netscape.com 849c2a7d1d added top-level "environment" associative array - which provides JavaScript access to Java System properties. 1999-06-04 18:06:25 +00:00
beard%netscape.com 64159943da First Checked In. 1999-06-04 18:03:06 +00:00
beard%netscape.com 2e3345c4e6 File Removed. 1999-06-04 17:43:35 +00:00
beard%netscape.com 5a9cfbbb74 added Environment.java 1999-06-04 17:43:17 +00:00
norris%netscape.com dbbafc6b60 Subject:
Re: netscape.javascript.JSObject ?
        Date:
             Thu, 03 Jun 1999 17:52:42 -0700
       From:
             Frank Mitchell <frankm@eng.Sun.COM>
 Organization:
             Java Products Engineering
         To:
             Norris Boyd <norris@netscape.com>
  References:
             1 , 2 , 3 , 4 , 5 , 6 , 7 , 8




Norris Boyd wrote:
>
> Sorry--missed the checkin of a new file. It's there now.
>
> I'd also added a small change for the "inheritance" of JavaScript array methods.

Actually, I've already done that (and for String as well).  It still
fails some LC3 regression tests, though.

I'm including a tarfile that includes the previous changes and the new
ones.

Frank
1999-06-04 16:25:41 +00:00
norris%netscape.com 5513cb38fd Add NativeJavaConstructor.java 1999-06-04 16:06:14 +00:00
ducarroz%netscape.com 447f253fdb add nsIXPCSecurityManager to fix build bustage 1999-06-04 06:39:33 +00:00
jband%netscape.com 56abd1b0a4 added nsIXPCSecurityManager interface and support to xpconnect - with tests. 1999-06-04 05:46:48 +00:00
mang%subcarrier.org 5b942c68c3 Added doc comment 1999-06-03 23:39:57 +00:00
norris%netscape.com 03c23c444d LC3 support: make Java arrays have Array.prototype as a prototype. 1999-06-03 23:38:47 +00:00
norris%netscape.com 8a047c315c Subject:
Re: Rhino LiveConnect: need help?
        Date:
             Wed, 02 Jun 1999 19:33:37 -0700
       From:
             Frank Mitchell <frankm@eng.Sun.COM>
 Organization:
             Java Products Engineering
         To:
             Scott Furman <fur@netscape.com>, Norris Boyd <norris@netscape.com>
         CC:
             mallen@eng.Sun.COM
  References:
             1 , 2 , 3 , 4




Scott Furman wrote:
> In order to bring Rhino LiveConnect support up to the level of the
> C-engine, the features of LiveConnect version 2 and version 3 would
> need to be added.  You can see some details of LC2 and LC3 features
> here.  I would guess that 80% of the time would be spent implementing
> one feature: LC3's new method overload resolution scheme.


OK, I think I have something that implements the new overloaded method
resolution scheme ... I'm still working on getting the regression tests
running smoothly, but from command-line testing it seems to work.  It's
not the *cleanest* code I've ever done, though: in particular, it has
too many static methods and type-checking code for my tastes.  (Hey,
should we spin the type coercion and comparison stuff to some other
module entirely?  Right now it's mostly in JavaNativeObject, with the
preference stuff in JavaNativeMethod.)  I'm also not sure why some of
this stuff is public, and whether there might be backward-compatibility
problems with what I've done, particularly in repurposing the
COMPARISON_* constants.

Would you guys be kind enough to review this for me?  I'm hoping to
check it in once I get an ID, but it wouldn't hurt to have another pair
of eyes or three (pairs, I mean).  I've attached a tar/gzip of the
source files I've changed (or added), plus a diff.

Thanks,
Frank
1999-06-03 23:38:00 +00:00
rogerl%netscape.com 5ae153a96b Blew off 'caller' property - it was deemed a security risk, bug #7224 1999-06-03 23:24:39 +00:00
norris%netscape.com 7b7ebb5614 Subject:
Re: Rhino LiveConnect: need help?
        Date:
             Wed, 02 Jun 1999 19:33:37 -0700
       From:
             Frank Mitchell <frankm@eng.Sun.COM>
 Organization:
             Java Products Engineering
         To:
             Scott Furman <fur@netscape.com>, Norris Boyd <norris@netscape.com>
         CC:
             mallen@eng.Sun.COM
  References:
             1 , 2 , 3 , 4




Scott Furman wrote:
> In order to bring Rhino LiveConnect support up to the level of the
> C-engine, the features of LiveConnect version 2 and version 3 would
> need to be added.  You can see some details of LC2 and LC3 features
> here.  I would guess that 80% of the time would be spent implementing
> one feature: LC3's new method overload resolution scheme.


OK, I think I have something that implements the new overloaded method
resolution scheme ... I'm still working on getting the regression tests
running smoothly, but from command-line testing it seems to work.  It's
not the *cleanest* code I've ever done, though: in particular, it has
too many static methods and type-checking code for my tastes.  (Hey,
should we spin the type coercion and comparison stuff to some other
module entirely?  Right now it's mostly in JavaNativeObject, with the
preference stuff in JavaNativeMethod.)  I'm also not sure why some of
this stuff is public, and whether there might be backward-compatibility
problems with what I've done, particularly in repurposing the
COMPARISON_* constants.

Would you guys be kind enough to review this for me?  I'm hoping to
check it in once I get an ID, but it wouldn't hurt to have another pair
of eyes or three (pairs, I mean).  I've attached a tar/gzip of the
source files I've changed (or added), plus a diff.

Thanks,
Frank
1999-06-03 23:22:27 +00:00
jband%netscape.com 04f7cb71f5 use the newly-FRIEND-ized js_AllocStack, js_FreeStack, and js_Invoke functions instead of JS_CallFunctionName to assure that the gcthing converted args we accumulate before making the call are properly rooted. This is a lot more efficient than the alternative of explicitly rooting them with JS_AddRoot. Up to this point these gcthings (doubles and strings) were dangling. Thanks to brendan for this suggstion. 1999-06-03 21:44:37 +00:00
jband%netscape.com 80bc0d7d43 make js_AllocStack, js_FreeStack, and js_Invoke, FRIEND functions so that they can be used by our good friend xpconnect. 1999-06-03 21:39:08 +00:00
waldemar%netscape.com 9ed3b2bfd9 First Checked In. 1999-06-03 20:53:14 +00:00
waldemar%netscape.com 78be7c3fee Added support for lookahead constraints 1999-06-03 20:52:04 +00:00
waldemar%netscape.com a7ae00c0dd Added general-grammar-symbol? predicate 1999-06-03 20:50:21 +00:00
waldemar%netscape.com 20608c35b1 Moved pieces of file around 1999-06-03 20:49:13 +00:00
waterson%netscape.com 4287b83347 Single public include directory on Win32. 1999-06-03 18:34:27 +00:00
rogerl%netscape.com b4b5620952 Changed behaviour of Script.exec so that it gains access to the current
scope when invoked, rather than grabbing the topmost. Prevented exec from
being called indirectly.
1999-06-03 00:08:00 +00:00
rogerl%netscape.com 0a95e5eb15 blowing off commented out junk 1999-06-02 18:07:40 +00:00
norris%netscape.com b060e6bd7e Fix NullPointerException for "abc".match("a\"); 1999-06-02 16:12:19 +00:00
jband%netscape.com f8c4aba11f removing disinformation from README 1999-06-02 03:19:55 +00:00
jband%netscape.com 464d9eeb86 adding netbsd m68k support contributed by khym@bga.com (Dave Huang) 1999-06-02 02:26:38 +00:00
rogerl%netscape.com f2fe8631dd Bug #7197 (related) - capture and free char pointers going to error
reporter.
Bug #5875 - eval of named function within a function resulted in the
function not being visible at the start of the eval string.
1999-06-01 23:17:19 +00:00
rogerl%netscape.com 1542ad9856 Bug #7197 - free other error report message junk 1999-06-01 23:07:59 +00:00
rogerl%netscape.com 2622a174d3 Fixed non-terminating regexp when max quantifier is unspecified as in :
var s = 'zzabc.';
var reg = /[^z]{1,}\./;
s.match(reg);
- wasn't checking for reaching end of text.
1999-06-01 22:43:17 +00:00
jband%netscape.com 1bcf6abf12 added test 1999-06-01 02:43:02 +00:00
jband%netscape.com 4787f025fb 1) Removed old and duplicate .idl, .h, and .xpt files.
2) Support passing an interface identifier to getService and NewInstance.
3) Added AbandonJSContext to allow for cleanup of per JSContext data.
4) Added interface inheritence tests.
1999-06-01 02:39:44 +00:00
jband%netscape.com 8c18a6d323 updating readme 1999-06-01 02:31:13 +00:00
rogerl%netscape.com 8801e117eb Moved from stack to inline execution. 1999-05-28 19:00:48 +00:00
rogerl%netscape.com ff12a978d6 Bug #6359 and other changes motivated by Waldemar's specification. 1999-05-26 22:28:32 +00:00
cbegle%netscape.com cd05d0d56b adding more javascript language tests 1999-05-26 22:24:04 +00:00
cbegle%netscape.com 007525d454 adding more javascript language tests. 1999-05-26 22:22:06 +00:00
briano%netscape.com fb81e51425 Fix for the case where NSPR is built separately and isn't listed in LD_LIBRARY_PATH. 1999-05-26 22:18:37 +00:00
cbegle%netscape.com 949ea13feb adding new javascript tests - liveconnect 1999-05-26 22:14:51 +00:00
cbegle%netscape.com 1d29571154 adding new tests for the javascript language - liveconnect. 1999-05-26 22:07:01 +00:00
cbegle%netscape.com 915784967f adding more javascript language tests to the repository. 1999-05-26 21:48:43 +00:00
cbegle%netscape.com 3481c4fe4d adding more javascript language tests to the repository. 1999-05-26 21:37:13 +00:00
cbegle%netscape.com bfe4d4a516 Adding ecma 2 tests to the repository. 1999-05-26 21:22:57 +00:00
norris%netscape.com 4134731727 Fix bug 6705. 1999-05-26 19:55:51 +00:00
norris%netscape.com 29da9ddbfd Remove class path for merging into a single JAR file. 1999-05-26 19:52:40 +00:00
norris%netscape.com c3ec40debb fix node property printing 1999-05-26 19:48:45 +00:00
norris%netscape.com 3dc47a5559 clean up formatting 1999-05-26 19:48:02 +00:00
mcmullen%netscape.com 3391ae2eee Headers settings did not have the linker turned on! 1999-05-26 19:36:12 +00:00
dp%netscape.com 1052325d54 removing -lreg 1999-05-26 07:41:15 +00:00
dp%netscape.com 94344009c8 Landing xpcom20/21 branch. 1999-05-26 01:38:36 +00:00
rogerl%netscape.com da0336bb41 Hmmm, new changes these are. 1999-05-26 01:01:07 +00:00
rogerl%netscape.com dc68c3e57f New. 1999-05-25 21:50:03 +00:00
rogerl%netscape.com f9288d52bf JSValue changes, closing in on JSObject API. Began 'correct' semantic
implementation for various operators.
1999-05-25 21:49:40 +00:00
rogerl%netscape.com fd5107675a Fixed 'continue label' 1999-05-25 20:29:12 +00:00
beard%netscape.com 36f20de5c9 First Checked In. 1999-05-24 20:48:58 +00:00
beard%netscape.com c1a6075103 added mozilla/js/rhino/org/mozilla/javascript/ListenerCollection.java 1999-05-23 20:07:05 +00:00
briano%netscape.com b5e1dc09c3 I'm hoping this will fix the breakage that results from not having . in one's PATH. 1999-05-22 06:42:48 +00:00
briano%netscape.com f16a192d21 Fix for the -r flag problem and the redundant rules warning. And a whole bunch of housecleaning. Approved by leaf@mozilla.org. Let me know if I ripped out something I shouldn't have. 1999-05-22 05:55:23 +00:00
norris%netscape.com 4842b30458 Manifest for jstools.jar to enable use of 1.2 -jar option. 1999-05-21 06:13:37 +00:00
rogerl%netscape.com 8c6e6be5af Continuing JSValue fun. 1999-05-21 00:54:26 +00:00
norris%netscape.com ed84c8db7f Add methods for getting and setting key-value pairs. 1999-05-20 23:54:53 +00:00
rogerl%netscape.com 9f01927972 Switching to JSValue throughout. Implementing operators per base type. 1999-05-20 21:16:11 +00:00
briano%netscape.com 09328c4574 Fix for SCO OpenServer builds. _SCO_DS is always set by SCO's compiler. 1999-05-20 02:57:37 +00:00
rogerl%netscape.com a254fc512f New. 1999-05-20 00:14:26 +00:00
rogerl%netscape.com 0248fef529 Switch to new JSValue hierarchy.
Added logical/bitwise ops.
1999-05-20 00:13:38 +00:00
norris%netscape.com b652b55b72 Remove Java 2 dependency. 1999-05-19 23:58:37 +00:00
norris%netscape.com 625fe68e12 Fix bug 6313 'Rhino: "new Function" doesn't work properly with superglobal'
Also clean up Context.exit() to be more consistent with Context.enter(),
and make SecuritySupport work with JavaAdapter.
1999-05-18 23:10:20 +00:00
norris%netscape.com 0f406008cb Fix formatting. 1999-05-18 22:55:11 +00:00
norris%netscape.com f3a98b7eaf Clearer formatting. 1999-05-18 22:54:15 +00:00
rogerl%netscape.com d9eebdf83f New functionality 1999-05-18 22:50:53 +00:00
rogerl%netscape.com 1104cb60f0 New stuff - better handle on breaks etc, started try/catch 1999-05-18 22:49:59 +00:00
norris%netscape.com e2e412bdb1 Add submission:
Subject:
            Re: Modified Context.java
       Date:
            Sat, 15 May 1999 08:01:37 +0000
      From:
            "Ian D. Stewart" <idstewart@softhome.net>
        To:
            Norris Boyd <norris@netscape.com>
 References:
            1 , 2 , 3 , 4 , 5




Ian D. Stewart wrote:

  Norris Boyd wrote:




    Can I help with EventListener collector?

  Actually, I have a working implementation complete (attatched), but by all means, feel free to add any functionality you feel
  may be missing, or to tweak the code .

Norris,

After I sent I my last e-mail, I noticed some potential issues using Object[] in ListenerCollection.getListeners(Class iface).
I'm attatching a new version, which uses a Vector object.  This should resolve those issues.


Ian
1999-05-18 22:32:25 +00:00
shaver%netscape.com 0a1f41b7dc override NO_STATIC_LIB, because we really do need static libraries for some
other link parts.  This will make it safe to put NO_STATIC_LIB=1 in
myconfig.mk, which saves about 100MB and 3 minutes on my debug build.

(Requires one additional checkin to in xpcom, which is waiting on the
XPCOM 2.0 landing.)
1999-05-17 19:20:28 +00:00
waldemar%netscape.com 3af971a8c2 First working version 1999-05-17 05:11:19 +00:00
waldemar%netscape.com 837f29ca05 Renamed != to /= and lambda to function. 1999-05-17 05:10:41 +00:00
waldemar%netscape.com f019c1d787 Added intsets. 1999-05-17 05:10:07 +00:00
waldemar%netscape.com 7ec4e04544 Added sets, subseq, set-nth. Renamed 'lambda' to 'function'. Fixed depictions of special global variables. Added %text depictors. 1999-05-17 05:09:44 +00:00