1696 Commits

Author SHA1 Message Date
rginda%netscape.com
7b58a7f6ff fix for 77081, r=rogerl, sr=brendan.
git-svn-id: svn://10.0.0.236/trunk@93969 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 21:48:48 +00:00
rginda%netscape.com
d7c4825284 fix for bug 76574, r=rogerl, sr=brendan.
git-svn-id: svn://10.0.0.236/trunk@93964 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 21:34:21 +00:00
rginda%netscape.com
de70079e56 fix for bug 77807, r=rogerl, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@93962 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 21:31:48 +00:00
cls%seawood.org
cfeb5eff5b Set EXPORT_LIBRARY=1 in all pertinent Makefile.ins. Allows us to build the final link list as we traverse the tree. Bug #46775
git-svn-id: svn://10.0.0.236/trunk@93397 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-28 19:48:12 +00:00
brendan%mozilla.org
31f6a8d613 Restore reviewed code that should have been in the last checkin (76976, r=beard, sr=shaver, a=blizzard).
git-svn-id: svn://10.0.0.236/trunk@92875 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-21 04:37:01 +00:00
brendan%mozilla.org
f54563bd60 Restore ECMA-required Function.prototype.toString while keeping toSource/uneval fix for bug 73760 (76634, r=beard, sr=shaver, a=asa).
git-svn-id: svn://10.0.0.236/trunk@92759 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-19 21:57:25 +00:00
brendan%mozilla.org
c4f96602a8 Fix regexp object (scope) vs GC deadlock (76233, r=beard, sr=shaver, a=asa).
git-svn-id: svn://10.0.0.236/trunk@92756 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-19 21:15:40 +00:00
brendan%mozilla.org
3dbc040f94 Fix __kernel_standard prototype to match recent addition of int *err final out-param (8112, r=shaver, sr=me, prototype not used by Mozilla or embedding builds).
git-svn-id: svn://10.0.0.236/trunk@92755 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-19 21:05:52 +00:00
beard%netscape.com
4b7d52f7a7 fix for bug #8112, sr=brendan, r=beard
git-svn-id: svn://10.0.0.236/trunk@92648 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-18 03:38:58 +00:00
beard%netscape.com
7ea5ae0dc5 fix for bug #60018 (prevent dangling JSContext), sr=brendan, r=edburns
git-svn-id: svn://10.0.0.236/trunk@92645 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-18 03:17:30 +00:00
beard%netscape.com
b262e03ccf Added UTCUtil library. [not part of build]
git-svn-id: svn://10.0.0.236/trunk@92631 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-18 02:44:01 +00:00
beard%netscape.com
a91c8a9a52 Fix for bug #26516, load Java lazily. sr=brendan, r=edburns
git-svn-id: svn://10.0.0.236/trunk@92630 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-18 02:22:13 +00:00
brendan%mozilla.org
03a1420a71 Avoid recursive death *and* don't crash on null proto pointer (75239, r/sr=jband, r=itaj sherman <MobDotCom@hotmail.com>).
git-svn-id: svn://10.0.0.236/trunk@92536 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-17 07:34:39 +00:00
jband%netscape.com
656bc99a3e fix bug 76102. Only vend weak references from the root of a wrappedJS wrapper chain. r=dbaron sr=brendan
git-svn-id: svn://10.0.0.236/trunk@92531 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-17 07:22:52 +00:00
brendan%mozilla.org
abe01808f5 Over-engineer byte-order macro generation to catch most PDP-endian situations (65230, r=rogerl, not part of Mozilla-the-browser-suite build).
git-svn-id: svn://10.0.0.236/trunk@92528 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-17 07:12:38 +00:00
beard%netscape.com
70d4e5e6cf Fix for bug #49130, a=phil
git-svn-id: svn://10.0.0.236/trunk@92297 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-14 17:18:14 +00:00
brendan%mozilla.org
c0d45daa7f Use parent, if non-null, as scope chain with which to find default proto from Class.prototype, in js_{New,Construct}Object (75975, sr=jband&jst).
git-svn-id: svn://10.0.0.236/trunk@92286 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-14 07:34:58 +00:00
beard%netscape.com
8b9c98753d Fix for bug #74476: pass the actual date to PRMJ_DSTOffset() rather than 0.
git-svn-id: svn://10.0.0.236/trunk@92253 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-14 00:07:53 +00:00
brendan%mozilla.org
cd44bd5351 Don't zap atom state on last destroy-context in a runtime if interned strings are held by atoms, and/or rooted objects reach atoms -- there may be a new-first-context in the future (72043, r=jband, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@92185 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-13 08:06:15 +00:00
brendan%mozilla.org
11106ed005 Better GC-deadlock avoidance (75141, r=shaver, sr=jband).
git-svn-id: svn://10.0.0.236/trunk@92050 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-12 01:52:30 +00:00
brendan%mozilla.org
24043e3212 - Don't initialize the arguments class, and do rename it to "Object" so that
arguments objects are prototyped by Object.prototype, per ECMA.  We still
  want a custom class, in order to lazily resolve active-JSStackFrame-based
  properties.
- Use a reserved slot to hold a bitmap of deleted arguments elements, so we
  don't re-resolve them after they've been deleted (which would make them seem
  to be permanent, contrary to ECMA).  This work involved sprucing up several
  fundamental types (jsbitmap) and macros (jsbitmap helper macros in jsbit.h,
  JS_HOWMANY in jstypes.h, JSVAL_INT_BITS in jsapi.h).


git-svn-id: svn://10.0.0.236/trunk@92016 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-11 23:07:26 +00:00
shaver%mozilla.org
8a65cf3329 75152: Remove GetVersionNumber stub in favour of upcoming, less-invasive
preloader strategy. r=jag, sr=attinasi.


git-svn-id: svn://10.0.0.236/trunk@91976 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-11 14:23:13 +00:00
brendan%mozilla.org
48a33f7396 Avoid deadlocking the GC on a scope claimed by another thread, but slated to be shared, i.e. ownercx is null but u.link is not (75141, r=shaver, sr=jband).
git-svn-id: svn://10.0.0.236/trunk@91956 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-11 05:45:43 +00:00
brendan%mozilla.org
13767b85cc Fix uninitialized var botch (75239, r=rogerl, sr=jband).
git-svn-id: svn://10.0.0.236/trunk@91954 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-11 05:31:22 +00:00
darin%netscape.com
9d03c579d0 Necko API changes, bug 74221. r=valeski, sr=rpotts.
git-svn-id: svn://10.0.0.236/trunk@91842 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-10 06:01:08 +00:00
brendan%mozilla.org
afe0723131 Fix Function.prototype.to{Source,String} to parenthesize function objects that were expressed rather than declared (73760, r=rogerl, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@91805 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-10 01:10:28 +00:00
jband%netscape.com
81c60fc961 fix bug 70360 - adding an additional gchook event. r=shaver sr=brendan. fix bug 73761 - property cache does *bad* things if accessed during finalization. sr=brendan. checkin patch from vidur regarding off-by-on in result code iteration. sr=jband on vidur's patch
git-svn-id: svn://10.0.0.236/trunk@91795 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-09 23:22:07 +00:00
brendan%mozilla.org
0ced3d9999 Add __lookupGetter__ and __lookupSetter__ (71992, r=rogerl, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@91710 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-08 23:23:34 +00:00
shaver%mozilla.org
3e409e4871 74848: make LiveConnect objects NATIVE, to avoid startup crash, r=smfr/sr=brendan
git-svn-id: svn://10.0.0.236/trunk@91492 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 22:20:47 +00:00
dprice%netscape.com
5cbf372cac 65845 - new order files
git-svn-id: svn://10.0.0.236/trunk@91428 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 06:02:32 +00:00
brendan%mozilla.org
e4c21a8200 - Add JS_GetReservedSlot, JS_SetReservedSlot, and JSCLASS_HAS_RESERVED_SLOTS(n)
to the JS API, for per class extra slots beyond JSSLOT_PRIVATE (or starting
  there for a class that lacks JSCLASS_HAS_PRIVATE).  To avoid penalizing all
  instances, these slots are allocated only upon first property-owned slot
  allocation, or upon first JS_SetReservedSlot.

  This entailed adding getRequiredSlot and setRequiredSlot hooks to the
  JSObjectOps struct, and making obj->slots self-describing, a la BSTR.  It
  also afforded me a chance to clean up obj->slots locking so that non-native
  JSObjectOps didn't risk unlocked accesses!  Now there are thread-safe hooks
  for all uses of obj.

  First consumer is the new, DOM-glue-unifying XPConnect, which needs two
  slots per wrapped function.  Hence the change to js_FunctionClass.flags'
  initializer.

- Commented the heck out of JSClass and JSObjectOps function typedefs in
  jspubtd.h.  I hope embedders see these comments!

- Fix JS_XDRValue's default case to handle int exclusively, there is no other
  possible type (and therefore no JSMSG_BAD_JVAL_TYPE error).

- Clean up tabs in select old, tab-ridden files and sections.

- s/\<fh\>/file/g for stdio FILE * canonical variable names.


git-svn-id: svn://10.0.0.236/trunk@91396 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-05 01:53:24 +00:00
cls%seawood.org
6bd6c87cd3 Fix jsmath.o related dependencies.
Bug #74707 a=jj@netscape.com


git-svn-id: svn://10.0.0.236/trunk@91327 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 21:00:11 +00:00
beard%netscape.com
40e3d35ea3 Configuration for Mac OS X final (Darwin 1.3)
git-svn-id: svn://10.0.0.236/trunk@91324 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 19:48:12 +00:00
brendan%mozilla.org
e21e734c03 Quote reserved identifiers as well as non-lexical-identifier property ids in object literals (73598, r=jband, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@91271 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 07:45:22 +00:00
shaver%mozilla.org
9c980e4543 sigh, fix direct-inclusion-of-jsgc.h bustage in TestXPC
git-svn-id: svn://10.0.0.236/trunk@91257 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 05:53:58 +00:00
shaver%mozilla.org
4aa2ca3096 fixing bustage from fat-fingering before committing
git-svn-id: svn://10.0.0.236/trunk@91253 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 05:06:59 +00:00
shaver%mozilla.org
04121d876f 73645: use JSDHashTable for JSRuntime.gcRootsHash and .gcLocksHash.
r=waterson-the-dhash-fiend, sr=brendan-the-other-dhash-fiend


git-svn-id: svn://10.0.0.236/trunk@91247 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 04:30:41 +00:00
shaver%mozilla.org
4bd0482736 74637: track scc's string changes, to fix infinite recursion when manipulating
a wrapped JSString. r=smfr, sr=scc.


git-svn-id: svn://10.0.0.236/trunk@91243 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 04:02:21 +00:00
rickg%netscape.com
75bb2ffbb9 preloader update. r=peterl, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@91193 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 22:58:59 +00:00
scc%mozilla.org
3701ed2f04 fix torino bustage
git-svn-id: svn://10.0.0.236/trunk@91069 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 00:42:48 +00:00
scc%mozilla.org
7b06841b03 landing string branch; see bug #73786
git-svn-id: svn://10.0.0.236/trunk@91049 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 19:40:52 +00:00
pinkerton%netscape.com
e4b5accaab allow macs with low memory to build optimized by setting the |lowmem| option. bug 72945. r=peterv/sr=shaver.
git-svn-id: svn://10.0.0.236/trunk@90570 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 23:08:32 +00:00
mkaply%us.ibm.com
04d9798734 #73620
r=jband, sr=brendan
Fix some places where we used casts instead of CALLBACKs


git-svn-id: svn://10.0.0.236/trunk@90568 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 22:59:33 +00:00
mkaply%us.ibm.com
bd6fe47e75 OS/2 breakage - need callback
git-svn-id: svn://10.0.0.236/trunk@90550 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 16:37:01 +00:00
mkaply%us.ibm.com
4058fe29cb OS/2 bustage - need callback
git-svn-id: svn://10.0.0.236/trunk@90537 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 14:35:06 +00:00
shaver%mozilla.org
fc19bd3692 correct cast to fix build bustage
git-svn-id: svn://10.0.0.236/trunk@90490 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 06:44:00 +00:00
waterson%netscape.com
b50a206653 Fix windows bustage.
git-svn-id: svn://10.0.0.236/trunk@90489 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 06:39:05 +00:00
waterson%netscape.com
03cb2db790 Bug 73540. Make sure [JS|PL]DHashTable clear live entries while finalizing. Remove induction variable from [JS|PL]_DHashEnumerate() along the way. r=brendan, sr=shaver
git-svn-id: svn://10.0.0.236/trunk@90488 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 06:24:25 +00:00
shaver%mozilla.org
44326fc42c 50602: Add support in XPConnect for sharing of refcounted string BufferHandles,
in both directions.
72552: Remedy overzealous CHECK_REQUEST placement in jsapi.c, to produce a
       minimal-but-complete set of engine entry points that require a Request
       for safe execution.
r=brendan, sr=jband, assist=scc,pinkerton


git-svn-id: svn://10.0.0.236/trunk@90483 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 06:04:44 +00:00
shaver%mozilla.org
8939a0892b 63027: Adding evalInSandbox to JS component loader script-context, to permit
JS components to execute script code with restricted privileges and
       controlled access to their (privileged) environment. r=brendan,
       sr=jband.


git-svn-id: svn://10.0.0.236/trunk@90478 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 05:35:52 +00:00