Commit Graph

4695 Commits

Author SHA1 Message Date
igor%mir2.org
8ba20cee09 Fix for http://bugzilla.mozilla.org/show_bug.cgi?id=185165
I made ScriptRuntime.escapeString to escape \ and remove code to escape single quote ' as it is unreachable due to if (' ' <= c && c <= '~' && c != '"' && c != '\\') check as ' should not be escaped.
2002-12-13 11:56:54 +00:00
pschwartau%netscape.com
c357ddc6fa Added 'compile functions with dynamic scope' feature of Rhino to the test. Necessary to expose the bug. 2002-12-12 23:31:44 +00:00
igor%mir2.org
3b3f720f15 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
0824e190c0 OpenVMS build changes. b=180290. r=cls 2002-12-12 00:08:59 +00:00
igor%mir2.org
d99c560f50 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
47bee26159 Fixed link 2002-12-10 11:19:02 +00:00
pschwartau%netscape.com
1f16692cc3 Initial add. Regression test for bug 184107. 2002-12-10 00:22:44 +00:00
locka%iol.ie
73d7ed36cb 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
6838389e7d 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
f9cb7f63fa 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
784105585e 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
2d1bf652ef 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
8ae4899263 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
50029c37e2 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
cea6846352 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
07e57234e7 Adding an improvement by joerg.schaible@gmx.de, plus a new section. 2002-12-06 23:45:31 +00:00
igor%mir2.org
1b4064c81d Cosmetics: layout fix 2002-12-06 16:38:38 +00:00
igor%mir2.org
650a6e1763 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
30863897ad 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
52affc4c55 Test by joerg.schaible@gmx.de arising from bug 181914. 2002-12-04 22:11:47 +00:00
pschwartau%netscape.com
56ad35c41b 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
8e6db6ff11 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
1e2bf2efec 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
5aa3180827 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
eaeb21dee8 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
03dbe4ab1c 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
48668108fd 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
d204006dad Removing an extraneous line. 2002-11-27 01:12:21 +00:00
pschwartau%netscape.com
baf6f364fe Initial add. Regression test for bug 154693. 2002-11-27 01:00:29 +00:00
pschwartau%netscape.com
cef2fed562 Rearranging section order for greater readability. 2002-11-26 19:55:34 +00:00
pschwartau%netscape.com
ab533583cf Initial add. Regression test for bug 181834 by felix.meschberger@day.com. 2002-11-26 19:48:14 +00:00
igor%mir2.org
fa14609cd7 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
f6f9804cca Trivial whitespace fix. 2002-11-26 02:55:54 +00:00
pschwartau%netscape.com
0eec1823ec 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
63b65c2b9c 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
60ba3d1f3f Fixing three typos. 2002-11-26 01:17:37 +00:00
pschwartau%netscape.com
2b89e3b6d0 Trivial whitespace fix. 2002-11-26 01:16:23 +00:00
brendan%mozilla.org
9f86c8f220 Comment nit-picks (comment changes only). 2002-11-26 00:33:08 +00:00
brendan%mozilla.org
5380b54b0e 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
3626a138ec 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
1e02010066 Wrap restoring of the original optimization level into finally block 2002-11-25 16:46:16 +00:00
igor%mir2.org
8f8ec48385 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
8d87d5e285 Bug 8929: Kill NS_COMFALSE
r=peterv sr=bz
2002-11-25 11:21:22 +00:00
pschwartau%netscape.com
59b425d3e5 Initial add. Regression test for bug 181654 by joerg.schaible@gmx.de. 2002-11-24 00:14:18 +00:00
dbradley%netscape.com
86ca2cd40a 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
979c5345e5 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
89658bef87 Correcting minor formatting mistake at Retest List header. 2002-11-19 22:00:38 +00:00
pschwartau%netscape.com
6d450f7126 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
7ae2d05ef4 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
b6b14bf40e 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