2855 Commits

Author SHA1 Message Date
bsmedberg%covad.net
aec1976764 Bug 315090 - convert xpconnect utils/tests to use frozen linkage, r=shaver
git-svn-id: svn://10.0.0.236/trunk@185958 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-12 15:08:16 +00:00
mrbkap%gmail.com
3e113ed325 Fix comment nit from bug 319264.
git-svn-id: svn://10.0.0.236/trunk@185908 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-11 06:49:02 +00:00
mrbkap%gmail.com
8ea88a6947 bug 319264: Fix double-free reporting strict warnings about assigning to read-only properties. r=brendan
git-svn-id: svn://10.0.0.236/trunk@185907 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-11 06:44:29 +00:00
brendan%mozilla.org
8e7dbe2323 Fix delegation to function object for length and other properties (313570, r/sr=mrbkap/shaver).
git-svn-id: svn://10.0.0.236/trunk@185891 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-10 18:46:37 +00:00
brendan%mozilla.org
78dc3e50b3 Revert to pre-E4X handling of eval(s) = x to avoid compile-time error reporting (319391, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@185857 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-09 20:23:38 +00:00
mrbkap%gmail.com
09fb0311d4 bug 318489: It's impossible to use one of the constructors from an XPCNativeWrapped object. Add an IDL interface for these constructors and fix XPCNativeWrapper to forward Construct requests onto its wrapped native. r=jst sr=brendan
git-svn-id: svn://10.0.0.236/trunk@185843 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-09 19:08:45 +00:00
mrbkap%gmail.com
42fa62170e bug 319172: Innerize the global object for subscript loading so that functions are compiled with the right parent (leading to the inner window, not the outer window). r=shaver sr=brendan
git-svn-id: svn://10.0.0.236/trunk@185842 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-09 18:58:23 +00:00
brendan%mozilla.org
6d12b315a2 Comment typos fixed.
git-svn-id: svn://10.0.0.236/trunk@185807 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-08 17:59:45 +00:00
brendan%mozilla.org
834e997e9f Fix uninitialized variable use in an assertion (311583, r=igor).
git-svn-id: svn://10.0.0.236/trunk@185772 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-07 22:42:06 +00:00
mrbkap%gmail.com
3a1f00b981 bug 319384: Don't use unsigned objects for signed values. Also give the "can't convert to integer" error an exception type so that it can be caught. r=daumling@adobe.com sr=brendan
git-svn-id: svn://10.0.0.236/trunk@185768 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-07 20:49:52 +00:00
brendan%mozilla.org
1738d98dea Add missing TOK_XMLSPACE case (one-line fix to 318922, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@185741 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-06 23:40:36 +00:00
bzbarsky%mit.edu
571c28dfbe Make sure to keep memberval alive while we use it. Bug 318969, r=mrbkap, sr=jst
git-svn-id: svn://10.0.0.236/trunk@185728 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-06 04:48:19 +00:00
brendan%mozilla.org
78330e8bad Fix some style nits.
git-svn-id: svn://10.0.0.236/trunk@185719 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-05 23:41:30 +00:00
brendan%mozilla.org
ca09fca52a Patch from Michael Daumling <daumling@adobe.com> to let the OOM message be localized (318767, r=me).
git-svn-id: svn://10.0.0.236/trunk@185713 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-05 21:35:15 +00:00
brendan%mozilla.org
f1d25cc5a6 Fix XML folding to skip name nodes with list arity due to embedded {expr} terms (318922, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@185688 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-05 05:26:50 +00:00
bsmedberg%covad.net
9c52a8d23a Reverting bug 316416 due to Ts regression and mysterious monkey orange :-(
git-svn-id: svn://10.0.0.236/trunk@185645 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-03 15:27:17 +00:00
dbaron%dbaron.org
6efef3c0ad Make wrapper preservation (the mechanism that makes the GC use reachability information between certain C++ objects rather than rooting at language boundaries) use an interface (nsIDOMGCParticipant) to get reachability information. Preserve the wrappers for event handlers as long as what they are attached to is reachable (from C++ or JS) to avoid entraining event handler closures in cycles. b=241518 r=mrbkap sr=jst
git-svn-id: svn://10.0.0.236/trunk@185636 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-03 07:42:40 +00:00
jst%mozilla.jstenback.com
1bafd7404b Fixing bug 318873. Crash in js_GetLocalizedErrorMessage(). Patch by tor@acm.org, r+sr=jst@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@185635 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-03 07:32:07 +00:00
brendan%mozilla.org
6e4a092157 Michael Daumling <daumling@adobe.com> patch to allow user-defined errors, finally (thanks to Michael for doing this; 215173, r=mrbkap/me).
git-svn-id: svn://10.0.0.236/trunk@185625 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-03 02:31:21 +00:00
bsmedberg%covad.net
fd2c3873ba Bustage fix, bug 316416, nested classes are not automatically friendly.
git-svn-id: svn://10.0.0.236/trunk@185576 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-02 17:09:19 +00:00
bsmedberg%covad.net
dc84be3e28 Bug 316416 - Convert nsIComponentLoader into nsIModuleLoader, xpcom bits r=darin xpconnect bits r=shaver; and bug 318625 - Make a version of nsTArray.AppendElement that doesn't copy-construct, r=darin
git-svn-id: svn://10.0.0.236/trunk@185574 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-02 16:34:42 +00:00
brendan%mozilla.org
ea43b9e962 Followup to maximize error-reporting code sharing (315436, r=daumling).
git-svn-id: svn://10.0.0.236/trunk@185539 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-01 21:05:12 +00:00
brendan%mozilla.org
4a5b6a2659 Fix from Michael Daumling <daumling@adobe.com> to make read-only assignment a strict warning (315436, r/sr=mrbkap/brendan).
git-svn-id: svn://10.0.0.236/trunk@185486 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-01 02:26:35 +00:00
dougt%meer.net
b77bb2a488 Allowing js to be statically linked, if desired. r=bsmedberg. b=236617
git-svn-id: svn://10.0.0.236/trunk@185443 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-30 17:38:49 +00:00
mrbkap%gmail.com
9606faf9f5 bug 307526: Add a -i option to the two shells to force interactive mode so that it's possible to use xpcshell from Emacs (where isatty returns bad results). r=dmose sr=brendan
git-svn-id: svn://10.0.0.236/trunk@185415 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-29 23:52:28 +00:00
dougt%meer.net
8841fa464f PR_MemMap is busted on WINCE. Until it is fixed, disable memory map access in js loader. b=318077. r=dougt. WINCE only.
git-svn-id: svn://10.0.0.236/trunk@185364 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-29 05:44:40 +00:00
mrbkap%gmail.com
f2bb9626f7 bug 317476: The error thrown by JS_ReportError is not catchable. r=brendan
git-svn-id: svn://10.0.0.236/trunk@185335 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-28 20:42:30 +00:00
mrbkap%gmail.com
1176e84ce3 bug 317533: Don't get confused by final if statements when determining if a function always returns a value. r=brendan
git-svn-id: svn://10.0.0.236/trunk@185334 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-28 20:35:13 +00:00
timeless%mozdev.org
dae7b0629a Bug 106386 Correct misspellings in source code
patch by unknown@simplemachines.org r=timeless rs=brendan


git-svn-id: svn://10.0.0.236/trunk@185282 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-25 21:57:13 +00:00
timeless%mozdev.org
f9bdb44b34 Bug 106386 Correct misspellings in source code
patch by unknown@simplemachines.org r=timeless rs=brendan


git-svn-id: svn://10.0.0.236/trunk@185269 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-25 08:16:51 +00:00
brendan%mozilla.org
9d9b940d57 Fix bad regression in fix for 316885 (317714, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@185267 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-25 07:49:05 +00:00
jag%tty.nl
a55afaf283 Sorry, no tabs allowed here. (whitespace-only change, r=jack, sr=lumpy)
git-svn-id: svn://10.0.0.236/trunk@185193 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-23 07:09:37 +00:00
brendan%mozilla.org
bd34f938f6 No switch for threaded interpreter (121414, r=igor).
git-svn-id: svn://10.0.0.236/trunk@185117 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-22 04:47:42 +00:00
brendan%mozilla.org
941ece2658 Root me harder (316885 r/sr=igor/shaver).
git-svn-id: svn://10.0.0.236/trunk@185107 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-22 00:47:05 +00:00
dougt%meer.net
beae77b631 Fixing build bustage on minimo linux. Shell doesn't compile when building against minimo.
git-svn-id: svn://10.0.0.236/trunk@185102 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-22 00:12:49 +00:00
igor%mir2.org
3951d04a9b Fixing bug 316879:
I hope this time the implementation of optimization for int-only operations
is the right one. review=brendan


git-svn-id: svn://10.0.0.236/trunk@185100 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-22 00:03:04 +00:00
mrbkap%gmail.com
35de4e8324 bug 316990: Allow hasOwnProperty to work, even with split windows, by checking that the returned object is actually the inner object of |this|. r=brendan
git-svn-id: svn://10.0.0.236/trunk@185075 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-21 19:40:55 +00:00
timeless%mozdev.org
1a6d3e8564 Bug 106386 Correct misspellings in source code
patch by supernova_00@yahoo.com r=timeless rs=brendan


git-svn-id: svn://10.0.0.236/trunk@185036 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-21 06:30:34 +00:00
bryner%brianryner.com
ec9ed3fc95 Only issue a warning if we failed to map a file, not an assertion. This doesn't violate any built-in assumptions. Bug 317205, r=shaver.
git-svn-id: svn://10.0.0.236/trunk@185032 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-21 03:27:32 +00:00
brendan%mozilla.org
dc0b23fce2 Fix bogus assertion.
git-svn-id: svn://10.0.0.236/trunk@185017 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-20 21:37:14 +00:00
igor%mir2.org
fa86f4054c Removal of the previous commit: my patch brought bogus assert in JSOP_NEG:
the result of -rval can fit jsint even if rval is not int in cases like when
rval is "1" string.


git-svn-id: svn://10.0.0.236/trunk@185014 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-20 19:25:47 +00:00
igor%mir2.org
17ed879fe9 Fixing bug 316879:
Special treatment of int values in numeric operations for faster and smaller
code. r=brendan


git-svn-id: svn://10.0.0.236/trunk@185012 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-20 18:14:21 +00:00
igor%mir2.org
957a3cea91 Fix for bug 311583:
Not uneval(array) uses elision, not undefined, to represent array holes.
r=brendan


git-svn-id: svn://10.0.0.236/trunk@185000 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-20 01:12:58 +00:00
brendan%mozilla.org
e26f643b27 Threaded interpreter, first step toward more aggressive optimizations (121414, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@184970 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-19 03:20:17 +00:00
brendan%mozilla.org
fed9ff461c Toasted Windows, not able to debug till tomorrow, backing out.
git-svn-id: svn://10.0.0.236/trunk@184896 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-18 06:19:46 +00:00
brendan%mozilla.org
52c3451162 Threaded interpreter, first step toward more aggressive optimizations (121414, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@184885 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-18 04:22:25 +00:00
igor%mir2.org
76fc4e4851 Fix for bug 302849: js shell calls setlocal, r=shaver
git-svn-id: svn://10.0.0.236/trunk@184823 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-17 17:32:00 +00:00
igor%mir2.org
d3ea2b8636 Fix for bug 312138:
js_HeapSort terminates as soon as sort function indicates so. r=brendan


git-svn-id: svn://10.0.0.236/trunk@184755 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-16 10:02:57 +00:00
bzbarsky%mit.edu
90c17667d8 Get principals for XPConnect wrapped natives off their scope instead of walking
their parent chain.  Add some asserts to check that this actually does give the
same result, which it should with splitwindow.  Bug 289655, r=dbradley, sr=jst


git-svn-id: svn://10.0.0.236/trunk@184744 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-16 02:12:21 +00:00
bzbarsky%mit.edu
dfdfedb24b Keep reading from the sync stream till we're done. Bug 303376, r=darin, sr=jst
git-svn-id: svn://10.0.0.236/trunk@184742 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-16 02:04:10 +00:00