Commit Graph

4950 Commits

Author SHA1 Message Date
bryner%netscape.com
3e84c4969c - Fix some JS component loader shutdown leaks.
- Ensure that we use JSPRINCIPALS_DROP() where needed to avoid leaking principals.
- Clear newborn roots when we've finished with a JSContext, so we don't keep objects from being gc'd if there are no other references.

Part of bug 198655.  Thanks to dbaron for much of the component loader patch.  r=shaver, sr=brendan.
2003-03-23 07:22:18 +00:00
dbradley%netscape.com
394011eae7 Minor comment fix 2003-03-23 00:28:40 +00:00
dbaron%dbaron.org
51d4f67690 Add DEBUG_dbaron to the DEBUG_xpc_hacker list. 2003-03-22 17:26:29 +00:00
rogerl%netscape.com
c6d91b4c6a Fix bug #122076. r=brendan. Stop [] parse loop from wandering off into the
weeds.
2003-03-22 03:42:22 +00:00
dbradley%netscape.com
bfd19c222e bug 197281 - Introduction of XPCConvert::GetNativeInterfaceFromJSObject is causing problems r=jst, sr=alecf 2003-03-22 02:13:38 +00:00
mkaply%us.ibm.com
f6bcf1c153 #188249
s/r=brendan
Cleanup #ifdef and add EMX
2003-03-21 22:18:12 +00:00
bolian.yin%sun.com
be94514e09 Bug 197088, Netscape 7.02 crashes when my JavaScript accesses a Java string or int. r=av, sr=beard. patch by joshua.xia@sun.com 2003-03-21 03:37:18 +00:00
pschwartau%netscape.com
c78c022a6a Removing the early return, and adjusting |N| downward from 1000 to 90 instead. 2003-03-21 02:02:59 +00:00
igor%mir2.org
59d6f7f69d Added ScriptRuntime.newInstanceOrNull to call class.newInstance() and return null if it fails. It allows to replace in few places try/3 different catch by a simple method call. 2003-03-20 15:46:37 +00:00
brendan%mozilla.org
cba834a969 Saner ReportReadOnlyScope message names the sealed object, not an undefined property that can't be created in its scope (94693, r=me). 2003-03-20 11:27:33 +00:00
brendan%mozilla.org
86e5524746 Fix JSOP_BINDNAME to have JOF_SET (which is now the same as JOF_ASSIGNING, so use that where it's a clearer name; 94693, r=me). 2003-03-20 11:05:10 +00:00
brendan%mozilla.org
23d950dbcf Fix broken left-associativity and constant folding for + chains involving some string terms (196290, r=shaver by telepathy). 2003-03-19 19:33:33 +00:00
igor%mir2.org
5aa0865e56 Make ScriptRuntime.getClassOrNull() package private and use it in place of Class.forName() to avoid ever catching ClassNotFind and Security exceptions. 2003-03-19 19:04:24 +00:00
igor%mir2.org
ad1ace93ca Removal of deprecated classes from the list of API docs 2003-03-19 14:14:29 +00:00
igor%mir2.org
067aaa3e0b Fixing JavaSoc documentation tag usage 2003-03-19 14:13:41 +00:00
igor%mir2.org
255e90bedc For concatenation of 2 strings that are not null use str1.concat(str2) instead of str1+str2 to avoid construction of temporary StringBuffer all together. 2003-03-19 12:36:48 +00:00
igor%mir2.org
12ada0ce5c Use ClassFileWriter.addInvoke to add method invocation code instead of deprecated 4-argument ClassFileWriter.add() to avoid unnecessary string concatenation to build full method signature from parameter and result signatures. 2003-03-19 11:19:21 +00:00
bzbarsky%mit.edu
83e46b1a49 Fix some spelling errors in comments. Bug 106386, patch by Nicholas Bebout
<nb@ipnode.info>, r=doron, sr=dmose
2003-03-19 04:35:08 +00:00
brendan%mozilla.org
c0fc066a01 Don't override a prototype property iff it is JSPROP_SHARED (not also if it's a JSPROP_SETTER; 197940, r=rogerl). 2003-03-19 02:25:39 +00:00
brendan%mozilla.org
f2c8bb3531 Move readonly pre-ECMA error report down to new place peculiar to sealed
scopes, and share it via downward goto from the old place (which should go
away when a bug on khanson's list whose # I forget is fixed).  This fixes
the hole in sealed scope support mentioned in bug 94693 (r=rogerl/shaver).
2003-03-19 00:53:45 +00:00
seawood%netscape.com
64b0b42708 Fix --enable-xpctools post-minimo bustage 2003-03-17 23:40:16 +00:00
pschwartau%netscape.com
36cbc846da Improving comments. 2003-03-17 14:12:41 +00:00
igor%mir2.org
4c4f4e4fc8 Use ClassFileWriter.addInvoke() instead of ClassFileWriter.add() to add method calls to avoid string concatenation when constructing full method signature from separated parameter and return signatures. 2003-03-17 12:39:19 +00:00
pschwartau%netscape.com
76558f94fa Improving comments. 2003-03-16 23:38:45 +00:00
pschwartau%netscape.com
14da98f00f Improving readability. 2003-03-16 23:31:49 +00:00
igor%mir2.org
9a9f82103c A version of the add method to add an invoke bytecode is deprectaed in favor of addInvoke that takes a full method signature in place of separated parameter and result signatures. It allow not use a string concatenination to build a full signature. 2003-03-16 17:45:34 +00:00
igor%mir2.org
254d313fa4 Fixing http://bugzilla.mozilla.org/show_bug.cgi?id=197682 :
replace static fields to hold targets of direct call optimization by an instance fields in the class representing the main script object.
2003-03-16 13:53:41 +00:00
pschwartau%netscape.com
5aadc424fa Adding more cases to test. 2003-03-15 02:25:25 +00:00
dougt%netscape.com
0d2808c511 Create a new xpcom obsolete library (and component library).
Moved nsFileSpec and related classes into this obsolete library.
  Moved nsRegistry and related libreg functionality into the obsolete library.

Updated many callers using the obsolete nsFile spec to use nsIFile and Necko to do file IO.

Combined the following DLLs (source -> dest)
  uriloader -> docshell
  shistory -> docshell
  jsurl -> jsdom
  gkview -> gklayout

Moved nsAdapterEnumerator out of xpcom/ds and into mailnews, since they're the only consumer

Modifed the xpt_link tool so that you can specify a �only include� cid list that can mask CID�s that you are not interested in.

Added build options:
Prevent the building of xpinstall (--disable-xpinstall)
Prevent the building js component loader (--disable-jsloader)
A build option to only build a single profile (--enable-single-profile)
A build flag to only built the required xpfe components (--disable-xpfe-components).

Removal or hiding of unused functions and classes including nsEscape*, nsDequeIterator, nsRecyclingAllocatorImpl, nsDiscriminatedUnion, nsOpaqueKey, nsCRT::strlen, NS_NewCommandLineService

Bug 194240, r/sr = darin, alec.
2003-03-15 01:04:32 +00:00
pschwartau%netscape.com
5dfc4c8609 Improving comments. 2003-03-15 00:07:50 +00:00
pschwartau%netscape.com
c62eac8089 Adding more cases inspired by bug 197451. 2003-03-14 23:55:37 +00:00
pschwartau%netscape.com
df718533bc Initial add. Regression test for bug 196290, testing left-associativity of the + operator (cf. ECMA-262 Ed.3 Section 11.6.1) 2003-03-14 20:40:05 +00:00
igor%mir2.org
200e03d717 1. When generating various support methods like script main, function constructor etc., use classFile.startMethod instead of startNewMethod since the later is intended for generation of main code for script/function.
2. Do not use trivialInit optimization for scripts since the following changes makes generation of initScript function mandatory.
2003-03-14 10:05:01 +00:00
brendan%mozilla.org
25b813e602 Implement SCOPE_IS_SEALED, JS_SealObject, JS_UnsealObject, etc. to support
sealed standard object graphs, as well as to pave the way for optimizations
to object literals (94693, r=shaver).
2003-03-14 05:24:58 +00:00
igor%mir2.org
23f35a0f28 Inlinning of generateRegExpLiterals into generateInit for simple code 2003-03-13 22:50:04 +00:00
pschwartau%netscape.com
67bb0020b2 Improving comments. 2003-03-13 22:07:02 +00:00
igor%mir2.org
cdd74e7e8c I changes ClassFileField to store its attribute as simple short fields to avoid allocation of short[4] array for each field. 2003-03-13 14:03:03 +00:00
igor%mir2.org
ddc73696f3 I replaced explicit encoding of int, long and short values into byte arrays by new utility methods putInt16, putInt32, putInt64 2003-03-13 13:59:02 +00:00
igor%mir2.org
e1320b934c 1.More checks are added for bad usage of ClassFileWriter methods.
2. Hashtable is replaced by ObjToIntMap or UintMap to minimize memory usage.

3. Converting of strings to utf8 encoding is coded  explicitly to avoid overhead  of creating many objects.
2003-03-13 09:31:01 +00:00
igor%mir2.org
67b44fd9d9 Making class public 2003-03-13 07:52:07 +00:00
beard%netscape.com
8ded18bc1b Fix for bug #53593, sr=brendan, r=beard 2003-03-13 05:37:07 +00:00
brendan%mozilla.org
dd545c2cb9 Fix JS_[GS]etContextThread return type; add JSCLASS_NEW_RESOLVE_GETS_START (196966, r=shaver). 2003-03-12 20:29:16 +00:00
dbradley%netscape.com
3b01ed08a0 bug 196241 - Refactors script evaluation pre and post logic into a class. r=timeless, sr=brendan 2003-03-12 20:26:21 +00:00
dbradley%netscape.com
f24cadaaaa bug 188229 - [AxPlugin] Security policy should be per-domain configurable r=adamlock, sr=alecf NOTE: these changes are not part of the regular build. 2003-03-12 20:05:54 +00:00
dbradley%netscape.com
612926a718 Bug 194043 - Refactor exception logic between IDispatch and XPConnect. r=adamlock@netscape.com, sr=jst@netscape.com 2003-03-12 15:21:06 +00:00
igor%mir2.org
bcd8181007 Removal of generation of non-operational dup/pop when creating function objects for function statements. 2003-03-12 09:39:16 +00:00
brendan%mozilla.org
67444da79d Give JSScope a proper flags member, without increasing its size (part of 196097, r=shaver). 2003-03-11 20:30:55 +00:00
igor%mir2.org
3bbdba7f56 Fixing a regression in Codegen.transform which effectively disabled direct call optimization: FunctionNode.FUNCTION_STATEMENT should be compared against fn.getFunctionType(), not fn.getType() 2003-03-11 17:17:57 +00:00
igor%mir2.org
90ebda38fe Introduction of Codegen.mainCodegen to hold the main generator object and layout cosmetics. 2003-03-11 10:01:32 +00:00
igor%mir2.org
47a9d77f0f Use (size + 31) >> 5, not (size >> 5) + 1 as a size for int array buffer so in the case when size % 32 == 0 array would not hold a never used tail element. 2003-03-11 09:59:39 +00:00