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

4693 Коммитов

Автор SHA1 Сообщение Дата
igor%mir2.org f4cfc98e4d I removed InterpretedFunction.itsClosure as it was effectively used only itsClosure != null test and the effect can be done via setting InterpretedFunction.useDynamicScope to false. 2002-12-12 10:46:52 +00:00
colin%theblakes.com 8a6d411d14 OpenVMS build changes. b=180290. r=cls 2002-12-12 00:08:59 +00:00
igor%mir2.org d652c3179a I moved itsUseDynamicScope from InterpreterData to InterpretedFunction as this flag affects only functions, not scripts and to initialize this flag not during script compilation but during function creation which happens at the start of script execution. It allows to alter the flag for already compiled scripts before their execution. 2002-12-11 22:28:00 +00:00
igor%mir2.org 257dba7ca7 Fixed link 2002-12-10 11:19:02 +00:00
pschwartau%netscape.com 1daef5dd81 Initial add. Regression test for bug 184107. 2002-12-10 00:22:44 +00:00
locka%iol.ie 1657fa34f3 Share pref settings between com connect and plugin. b=179573 r=dbradley@netscape.com sr=brendan@mozilla.org a=asa@mozilla.org 2002-12-09 21:04:22 +00:00
locka%iol.ie c7d9f92951 Share pref settings between com connect and plugin. b=179573 r=dbradley@netscape.com sr=brendan@mozilla.org a=asa@mozilla.org 2002-12-09 20:48:39 +00:00
dbradley%netscape.com 09c839447b Bug 173146 - add support to XPConnect for IDispatch interfaces. Final implementation, this is the result of the code walk through with jband, jst, adam, and rpots. sr=jst, r=adam, a=asa 2002-12-09 19:41:54 +00:00
igor%mir2.org 15866816e2 I changed InterpreterData.itsNestedFunctions from InterpretedFunction[] to InterpreterData[] because due recent changes/fixes InterpreterData.itsNestedFunctions was used effectively only to get information already available InterpreterData. 2002-12-09 17:50:20 +00:00
igor%mir2.org 908a8ed8b5 Move creation of InterpretedFunction instances to createFunction (former createFunctionObject) to have function initialization at one place. 2002-12-09 13:37:13 +00:00
igor%mir2.org febcbadf03 Fixing http://bugzilla.mozilla.org/show_bug.cgi?id=184111
Patch from Marcus Crafter:
...
After speaking with Christopher Oliver, the problem seems to be a general JDK
1.4 bug that caches selected values in JComboBox, even after removeAllItems() is
called. Since its a general defect Christopher and I thought we'd report and get
it fixed in the main CVS tree.
...
2002-12-08 21:06:45 +00:00
igor%mir2.org 69c1384530 If debugger does not get function or script source via handleCompilationDone, try to read it from supplied URL. 2002-12-08 20:49:39 +00:00
igor%mir2.org 559c58d034 Fixing http://bugzilla.mozilla.org/show_bug.cgi?id=154693
On function/script start create and initialize instance of InterpretedFunction for each function statement.
2002-12-07 14:15:27 +00:00
pschwartau%netscape.com 30b7eaa24f Adding an improvement by joerg.schaible@gmx.de, plus a new section. 2002-12-06 23:45:31 +00:00
igor%mir2.org bbd9c6e220 Cosmetics: layout fix 2002-12-06 16:38:38 +00:00
igor%mir2.org bac1e710a5 isJavaPrimitiveWrap/setJavaPrimitiveWrap are made final as sublasses should not be override them when customizing WrapFactory 2002-12-06 16:36:25 +00:00
igor%mir2.org 88ad54171f Remove generation of closure icode for function statements as they are initialized at script/function start, not at point of declaration. This redundant closure icodes were effectively no-operation but caused bigger stack to be allocated then necessary. 2002-12-05 21:04:30 +00:00
pschwartau%netscape.com e9b2463e8a Test by joerg.schaible@gmx.de arising from bug 181914. 2002-12-04 22:11:47 +00:00
pschwartau%netscape.com 5a7c3a50ce Test by joerg.schaible@gmx.de, enforcing ECMA-262 Ed.3, Section 15.11.1.1 2002-12-04 21:58:15 +00:00
igor%mir2.org 87b0cf6408 Remove closure constructor from InterpretedFunction and initialize InterpretedFunction.itsClosure constructor in Interpreter directly. This besides reducing code size will help to make fix for http://bugzilla.mozilla.org/show_bug.cgi?id=154693 smaller 2002-12-04 09:49:07 +00:00
igor%mir2.org 663dff2a7a To allow straightforward detection of functions created via Function(...) constructor, I added the fromFunctionConstructor boolean flag to NativeFunction which allows to simplify code dealing with the EcmaScript requirement to return anonymous as a name for such functions. 2002-12-03 12:43:14 +00:00
igor%mir2.org d676aa578a 1. Fixing http://bugzilla.mozilla.org/show_bug.cgi?id=182028
Now caching of the last access slot covers GetterSlot instances as well and getter is always called for such slots

2. Fixing a potential race condition in setBySetter when a setter slot becomes an ordinary slot in response to a setter returning a value.

During execution of setBySetter a different thread can see initial null value in slot.value instead of the result of setter call as it is possible that JVM will first update slot.flags and only then slot.value for that thread. The fix replaces the old getter slot  by an ordinary one under synchronized block for that I added new getSlotPosition method and updated the rest of code accordingly.
2002-12-03 12:38:55 +00:00
brendan%mozilla.org 437e0ebb3f Optimize s.match(r) into r.test(s) if possible (no bug, r=shaver). 2002-11-30 06:51:27 +00:00
dbradley%netscape.com 6f49697b86 Bug 180182 - crash[@ 0x10101010 - js_GetSlotThreadSafe - JS_GetPrivate]
This was caused by GC occuring within JS_CloneFunctionObject, and the jsval passed in wasn't protected. r=dbradley, sr=jst, patch=jband
2002-11-27 03:55:17 +00:00
brendan%mozilla.org b1b94e48d2 Fix rt->checkObjectAccess call in fun_getProperty to avoid non-object-accessing calls (r=waterson). 2002-11-27 02:11:53 +00:00
pschwartau%netscape.com 72529ab8e6 Removing an extraneous line. 2002-11-27 01:12:21 +00:00
pschwartau%netscape.com 583bd3b9b7 Initial add. Regression test for bug 154693. 2002-11-27 01:00:29 +00:00
pschwartau%netscape.com d8599d42e8 Rearranging section order for greater readability. 2002-11-26 19:55:34 +00:00
pschwartau%netscape.com cdb5c6d65f Initial add. Regression test for bug 181834 by felix.meschberger@day.com. 2002-11-26 19:48:14 +00:00
igor%mir2.org b4cf6c06fc I moved decompilation code from NativeFunction to Parser so changes in compressed source structure will affect only one file. 2002-11-26 08:00:44 +00:00
pschwartau%netscape.com 4155380db9 Trivial whitespace fix. 2002-11-26 02:55:54 +00:00
pschwartau%netscape.com 193abbaa05 Improvement by joerg.schaible@gmx.de: test not only that |err.toString()| contains |err.message|, but also that |err.message| contains the right value; i.e the value provided to the Error constructor. See bug 181909. 2002-11-26 02:53:39 +00:00
pschwartau%netscape.com b3dbfedbf7 Improvement by joerg.schaible@gmx.de: test not only that |err.toString()| contains |err.message|, but also that |err.message| contains the right value; i.e the value provided to the Error constructor. 2002-11-26 02:03:32 +00:00
pschwartau%netscape.com b7878b0e6b Fixing three typos. 2002-11-26 01:17:37 +00:00
pschwartau%netscape.com 3d8d75204f Trivial whitespace fix. 2002-11-26 01:16:23 +00:00
brendan%mozilla.org 47a1a4d43c Comment nit-picks (comment changes only). 2002-11-26 00:33:08 +00:00
brendan%mozilla.org fb821b9a2e Relax comments restricting Operate calls from enumerator to allow lookups (no bug, comment change only). 2002-11-26 00:32:07 +00:00
igor%mir2.org e081e489da Add args and argCount to InterpreterData to emphasize that InterpretedScript/InterpretedFunction are just runtime wrappers around InterpreterData 2002-11-25 21:33:56 +00:00
igor%mir2.org 3f7f541282 Wrap restoring of the original optimization level into finally block 2002-11-25 16:46:16 +00:00
igor%mir2.org 7226fda62b Fixing 181654: Error.prototype.toString is a generic function now
printing this.name + ": " + this.message for any this.
2002-11-25 16:44:30 +00:00
sicking%bigfoot.com 8fa4129fc1 Bug 8929: Kill NS_COMFALSE
r=peterv sr=bz
2002-11-25 11:21:22 +00:00
pschwartau%netscape.com 9d09551f1a Initial add. Regression test for bug 181654 by joerg.schaible@gmx.de. 2002-11-24 00:14:18 +00:00
dbradley%netscape.com 27eae5fcf3 Bug 173146 - This is the third patch in the series for IDispatch support. The bulk of the changes are comments and formatting, and some better error handling. r=adamlock, sr=jst and the code review group. NOTE: The bulk of this code is still not part of the build and the reviews reflect the XPConnect portions only. 2002-11-22 23:04:53 +00:00
pschwartau%netscape.com 7e74912683 Replace 'onload' with meaningless string. Alertboxes were popping up otherwise when the jsDriver.pl results file was opened! 2002-11-19 23:23:33 +00:00
pschwartau%netscape.com a9af77318d Correcting minor formatting mistake at Retest List header. 2002-11-19 22:00:38 +00:00
pschwartau%netscape.com cfcf847d8f One-line fix for bug 62187, "JS shell producing too much console output on Mac" (r=waldemar, r=rginda). Without this fix, running the test driver is impossible on Mac 9. [NOT PART OF BROWSER BUILD]. 2002-11-19 20:53:17 +00:00
pschwartau%netscape.com 6b87c8a20e Bringing Windows makefile for JS shell in sync with recent changes made to the browser build and to the js.mak(VC++) build of the JS shell; see bug 160592. [DOES NOT AFFECT BROWSER BUILD]. 2002-11-19 20:29:38 +00:00
timeless%mozdev.org fe87c1864c Bug 180783 nsDependentCString filename(PR_GetEnv("MOZILLA_JS_PROFILER_OUTPUT")) => ASSERTION: nsDependentCString must wrap a non-NULL buffer: 'aPtr'
r=dbradley sr=bz
2002-11-19 05:06:27 +00:00
timeless%mozdev.org 7875f468ed Bug 58221 don't use strlen to check if a string is of length 0
patch by aaronl@vitelus.com r=timeless sr=bz
2002-11-17 05:16:49 +00:00
dbradley%netscape.com 39cadd74bc Bug 180098 - "--enable-activex-scripting" option seems to break composition window. Error was in enumeration when IDispatch logic was turned on. r=adamlock, sr=jst 2002-11-15 13:57:16 +00:00