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