waldemar%netscape.com
7c96eeaee4
Turned off optimizations and inlining in debug build
...
git-svn-id: svn://10.0.0.236/trunk@59516 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 08:51:16 +00:00
waldemar%netscape.com
dac645273e
Changed to match parser.h
...
git-svn-id: svn://10.0.0.236/trunk@59515 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 08:50:54 +00:00
waldemar%netscape.com
221ea5fed5
Added ArrayAutoPtr and reworked cstring -> String conversions
...
git-svn-id: svn://10.0.0.236/trunk@59514 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 08:50:26 +00:00
waldemar%netscape.com
43fa4b73e9
Added parsing of numerals and token printing
...
git-svn-id: svn://10.0.0.236/trunk@59513 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 08:48:40 +00:00
waldemar%netscape.com
45cdb36b26
Cleaned up and added String routines
...
git-svn-id: svn://10.0.0.236/trunk@59512 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 08:47:54 +00:00
waldemar%netscape.com
801a41fbac
Added lexer call
...
git-svn-id: svn://10.0.0.236/trunk@59511 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 08:47:03 +00:00
waldemar%netscape.com
1bff632e4b
Fixed bug
...
git-svn-id: svn://10.0.0.236/trunk@59510 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 08:46:36 +00:00
mccabe%netscape.com
7113e5b3ae
Changes to allow Spider Monkey to be compiled under C++.
...
Courtesy Bill Gibbons <bill@gibbons.org >
His comments:
Here are the changes to JSRef to make it compile either as C or C++. Mostly the changes are to add missing casts (since C++ doesn't have implict conversion from void* to other pointer types nor implicit casts from ints to enumerations) plus a few random things like the use of "private" as a variable name.
There are a few other minor bug fixes; in particular:
* A long statement with and'ed conditions is reformatted to make it easier to remove other builtin objects (e.g. Date).
* A #if was added to jsscript.c for the JS_HAS_SCRIPT_OBJECT off case.
* In jsmath a #ifdef was changed to #if.
My notes also mention...
* jsobj.c should include jsopcode.h
* jsfun.c - doesn't link if JS_HAS_ARGS_OBJECT is off
* jsarray.c - a reference to js_ValueToSource should be conditional on JS_HAS_TOSOURCE
r=mccabe
git-svn-id: svn://10.0.0.236/trunk@59455 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 01:10:31 +00:00
rginda%netscape.com
ac9c9bfcc2
Fix bitrot in RhinoEnv.java and DataTypes_017.java.
...
fresh build of jstests.jar
git-svn-id: svn://10.0.0.236/trunk@59452 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 00:57:03 +00:00
norris%netscape.com
6fc5a6608b
Fix bug #25864 watch() vulnerability
...
r=vidur,rogerl
git-svn-id: svn://10.0.0.236/trunk@59445 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 00:22:58 +00:00
rginda%netscape.com
f54925bab8
initial add
...
git-svn-id: svn://10.0.0.236/trunk@59444 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 00:22:23 +00:00
rginda%netscape.com
3bbaed9c5f
fresh build
...
git-svn-id: svn://10.0.0.236/trunk@59442 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 00:18:57 +00:00
rginda%netscape.com
bac4a3819f
initial add of compiled testdriver
...
git-svn-id: svn://10.0.0.236/trunk@59418 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-01 22:48:52 +00:00
jband%netscape.com
83dccd80dd
trivial block scope loop counter variable rename to squelch shadow warning.r=jband
...
git-svn-id: svn://10.0.0.236/trunk@59390 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-01 10:53:34 +00:00
mccabe%netscape.com
6668f989b3
Warning fixes. (Found one semantic problem in nsCLiveconnect.cpp)
...
r=mozbot
git-svn-id: svn://10.0.0.236/trunk@59388 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-01 09:12:58 +00:00
jband%netscape.com
f0476f0cfd
add improved support for dumping the JS stack from the native debugger or using the 'debugger' statement in JavaScript. Doc coming to the mozilla site soon. r=mccabe
...
git-svn-id: svn://10.0.0.236/trunk@59387 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-01 08:48:17 +00:00
jband%netscape.com
3c195cdd56
added files: mozilla/js/src/xpconnect/src/xpcdebug.cpp
...
git-svn-id: svn://10.0.0.236/trunk@59386 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-01 08:48:00 +00:00
norris%netscape.com
41dfd3c7ea
Fix use of unsupported typedef.
...
r=Jerry.Kirk@Nexwarecorp.com
git-svn-id: svn://10.0.0.236/trunk@59300 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-31 23:10:12 +00:00
norris%netscape.com
6fd4778318
Remove unused private method.
...
git-svn-id: svn://10.0.0.236/trunk@59258 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-31 18:49:07 +00:00
waldemar%netscape.com
de2a99bda5
Added numerics.cpp
...
git-svn-id: svn://10.0.0.236/trunk@59184 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-29 08:25:59 +00:00
waldemar%netscape.com
156c3a115b
Fixed NOT_REACHED
...
git-svn-id: svn://10.0.0.236/trunk@59183 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-29 08:25:36 +00:00
waldemar%netscape.com
722d12630c
Added NATIVE_INT64 flag
...
git-svn-id: svn://10.0.0.236/trunk@59182 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-29 08:25:02 +00:00
waldemar%netscape.com
96823e93e7
First Checked In.
...
git-svn-id: svn://10.0.0.236/trunk@59181 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-29 08:24:40 +00:00
jband%netscape.com
f41619667d
trivial rename of local var in test to fix shadow warning
...
git-svn-id: svn://10.0.0.236/trunk@59155 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-29 04:53:22 +00:00
jband%netscape.com
77d7383029
show more info when a call to wrapped JS object fails due to lack of the callee method - show what we were trying to call rather than let the engine just error out with 'undefined is not a function'. r=mccabe
...
git-svn-id: svn://10.0.0.236/trunk@59026 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-28 06:02:41 +00:00
mang%subcarrier.org
337f8a662f
Add rules for incremental relinking on Unix to partially fix bug 23724.
...
The static libraries on Win32 are still broken. r=mccabe
git-svn-id: svn://10.0.0.236/trunk@58993 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-28 01:39:11 +00:00
norris%netscape.com
76de1553f1
Propagate changes from Rhino150R1_BRANCH.
...
git-svn-id: svn://10.0.0.236/trunk@58949 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-27 17:35:29 +00:00
norris%netscape.com
65d1cf2c89
Fix test cases for long values, with one right at the boundary and one negative test just over the boundary.
...
git-svn-id: svn://10.0.0.236/trunk@58944 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-27 16:56:43 +00:00
jband%netscape.com
d4927333c7
make certain that the JSRuntimeService singleton does not go away before the xpconnect singleton. Fix for bug 25093. r=ssu@netscape.com
...
git-svn-id: svn://10.0.0.236/trunk@58910 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-27 08:58:48 +00:00
norris%netscape.com
b2369eab40
Changing file to be conformance rather than negative test.
...
git-svn-id: svn://10.0.0.236/trunk@58857 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-27 00:58:41 +00:00
rginda%netscape.com
760c6d99f2
Fix for gcc opt bug described in bug 24892. JSRef build fix only, mozilla build still needs some lovin'.
...
r=rogerl
git-svn-id: svn://10.0.0.236/trunk@58848 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-27 00:01:29 +00:00
beard%netscape.com
8672d92f96
changes to build on Mac OS X, r=mccabe
...
git-svn-id: svn://10.0.0.236/trunk@58831 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-26 22:48:49 +00:00
mccabe%netscape.com
33c5ea5faf
Fix to 24800. Change FREEBSD to __FreeBSD__, allowing the standalone JS engine to build and link on FreeBSD without the client build system (which defines FREEBSD).
...
Thanks go to braden@endoframe.com for the patch, and to sidr@albedo.net and fur@geocast.com for bug discussion.
git-svn-id: svn://10.0.0.236/trunk@58823 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-26 22:27:51 +00:00
beard%netscape.com
4544e5c832
configuration file for Mac OS X.
...
git-svn-id: svn://10.0.0.236/trunk@58822 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-26 22:27:29 +00:00
rogerl%netscape.com
f04da2ffb4
r=norris,waldemar
...
Fixes for bugs#23607, 23608, 23610, 23612, 23613. Also, first cut at URI
encode & decode routines.
git-svn-id: svn://10.0.0.236/trunk@58818 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-26 22:15:06 +00:00
norris%netscape.com
a2d6ee77d7
Propagate changes from 1.5 branch.
...
git-svn-id: svn://10.0.0.236/trunk@58797 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-26 18:57:00 +00:00
jband%netscape.com
3a859cec33
trivial fixes to get rid of warnings
...
git-svn-id: svn://10.0.0.236/trunk@58775 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-26 11:08:24 +00:00
jband%netscape.com
7ac1267323
Lots of xpconnect bug fixes...
...
- fix bug 12954 "should throw when setting non-settable props".
- fix bug 13418 "xpconnect needs to be threadsafe".
I think I filled in the cracks. Tests would be nice :)
- fix bug 22802 "[MLK] XPConnect Leaks".
- fix bug 24119 "[MLK] Reminder about cleaning up maps".
- fix bug 24453 "xpconnect needs default security manager".
I also changed the code in DOM and caps to just install a default secman and
not install a secman for each JSContext.
- fix bug 24687 "xpconect should avoid resolve performance suckage".
Added (modified) patch from shaver to create my JSObjects with the
global object as the temporary proto to avoid losing lookup.
- hack for bug 24688 "runtime errors in wrapped JS are not made obvious"
Added a debug only printf. We still need a JSErrorConsole service for this.
- fix bug 16130 "createInstanace and getService can create wrappers around wrappers"
Fixing this one really entailed changing the semantics of nsIXPConnect::wrapNative
and nsIXPConnect::wrapJS to use common code in xpcconvert that deals with existing
wrappers and DOM objects (with their own schemes for wrapping and unwrapping).
So, I changed the callers because the params changed slightly and some callers
were doing more work than necessary given the new semantics.
- Continued in the crusade to replace manaual refcounting with nsCOMPtrs whenever
touching old code.
- Added myself as first contributor to xpconnect files (vanity prevails!)
- Added new copyright header on some files that were missing it.
- Added some API comments.
- Converted nsXPCWrappedJS to implement nsIXPConnectWrappedJS via MI rather than
the old loser scheme of the nsIXPConnectWrappedJSMethods tearoff object.
- added DumpJSStack as globals to xpconnect and DOM dlls to be callable from
debuggers. I have ideas on how to improve and expand this support soon.
r=mccabe
git-svn-id: svn://10.0.0.236/trunk@58762 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-26 08:38:10 +00:00
rogerl%netscape.com
82d7a46066
!! Not part of the build !!
...
Fixed some typo's
git-svn-id: svn://10.0.0.236/trunk@58688 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-26 01:29:51 +00:00
waldemar%netscape.com
93782e8ee8
Rearranged link order
...
git-svn-id: svn://10.0.0.236/trunk@58645 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-25 23:00:19 +00:00
waldemar%netscape.com
fe868e35ad
Added constructor
...
git-svn-id: svn://10.0.0.236/trunk@58644 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-25 22:59:28 +00:00
waldemar%netscape.com
868917d9e3
Added char16 and uchar16
...
git-svn-id: svn://10.0.0.236/trunk@58643 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-25 22:58:55 +00:00
waldemar%netscape.com
6b8dc20de2
Added string, character, and exception utilities
...
git-svn-id: svn://10.0.0.236/trunk@58642 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-25 22:58:34 +00:00
waldemar%netscape.com
066096d53f
Continuing to implement
...
git-svn-id: svn://10.0.0.236/trunk@58641 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-25 22:57:32 +00:00
waldemar%netscape.com
71029d488f
Switched to using appendChars
...
git-svn-id: svn://10.0.0.236/trunk@58640 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-25 22:56:48 +00:00
waldemar%netscape.com
a92dbd7cc6
Fixed syntax error
...
git-svn-id: svn://10.0.0.236/trunk@58639 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-25 22:56:14 +00:00
rogerl%netscape.com
52f33a0ee6
!! Not a part of the build !!
...
r=norris. Updated license contents (continuing bug#15529)
git-svn-id: svn://10.0.0.236/trunk@58616 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-25 18:42:55 +00:00
brendan%mozilla.org
a3f5a85a8c
Track js_Invoke API change (24668, r=jband@netscape.com).
...
git-svn-id: svn://10.0.0.236/trunk@58555 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-25 04:00:45 +00:00
dougt%netscape.com
714da09a59
Landing nsIFile.
...
git-svn-id: svn://10.0.0.236/trunk@58490 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-24 21:28:28 +00:00
beard%netscape.com
2eb0f407b5
changed all "try { s = (Scriptable) obj; } catch (ClassCastException e) {...}" to "if (obj instanceof Scriptable) { ... }". This will generally be more efficient NOT to use exception handling where instanceof will do.
...
git-svn-id: svn://10.0.0.236/trunk@58388 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-22 04:41:30 +00:00