10408 Commits

Author SHA1 Message Date
timeless%mozdev.org
ca6947dd8d Bug 411249 Top crash [@ jsds_ScriptHookProc][@jsds_ScriptHookProc(JSDContext*, JSDScript*, int, void*)] on shutdown with Firebug 1.1.0b10 installed
r=gijs a=beltzner


git-svn-id: svn://10.0.0.236/trunk@244608 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-31 19:12:47 +00:00
igor%mir2.org
13c43ee196 Bug 414871: fixing gczeal issue. r=brendan, approval1.9b3=beltzner
git-svn-id: svn://10.0.0.236/trunk@244573 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-31 02:19:49 +00:00
reed%reedloden.com
93593c0b91 Back out jimm's patch from bug 411579 due to regressions. [a1.9b3=mconnor]
git-svn-id: svn://10.0.0.236/trunk@244568 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-30 23:39:42 +00:00
nboyd%atg.com
a5f4fd3041 No point in using WeakHashMap with classes as keys. Back off to plain
HashMap until we figure out more about the particular problem one
user is seeing.


git-svn-id: svn://10.0.0.236/trunk@244532 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-30 19:40:03 +00:00
brendan%mozilla.org
4f19e9c6fe Try to fix Ts regression (414452, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@244519 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-30 08:25:52 +00:00
brendan%mozilla.org
9b8a9af723 Move serialized cycle detector for __proto__ and __parent__ into js_GC (414452, r=igor+shaver).
git-svn-id: svn://10.0.0.236/trunk@244502 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-30 06:29:49 +00:00
brendan%mozilla.org
7980b3bafb Final js1.8 feature: sugar for object destructuring (404734, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@244500 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-30 06:27:13 +00:00
jst%mozilla.org
33863deade Landing followup to the fix for bug 412491, this one somehow slipped through, just more of the same.
git-svn-id: svn://10.0.0.236/trunk@244495 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-30 05:55:12 +00:00
igor%mir2.org
48f1f11d93 Attachment 300249: better handling of numeric conversions. r,a=brendan
git-svn-id: svn://10.0.0.236/trunk@244489 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-30 05:35:34 +00:00
brendan%mozilla.org
cb52c72fdf Dammit.
git-svn-id: svn://10.0.0.236/trunk@244486 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-30 05:14:55 +00:00
mrbkap%gmail.com
25b1682ea3 Don't wrap chrome objects in SJOWs if we don't have to. bug 414296, r=jst sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@244484 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-30 05:13:19 +00:00
brendan%mozilla.org
50ae2d66d8 Oops.
git-svn-id: svn://10.0.0.236/trunk@244483 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-30 05:12:45 +00:00
brendan%mozilla.org
fa9ce1105b Don't self-lock in the JSGC_BEGIN callback (413097, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@244482 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-30 05:10:09 +00:00
crowder%fiverocks.com
7aba7e6dac Bug 331043 - Improve hash performance using _rotr intrinsic (js/src hunk), patch by Michael Moy <mmoy@yahoo.com> with updates by me and r=wtc, r=brendan, a=brendan
git-svn-id: svn://10.0.0.236/trunk@244447 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-30 02:36:33 +00:00
jst%mozilla.org
4202890309 Fixing bug 413774. Don't suspend/resume requests when making native calls into C++ in XPConnect, do the suspend/resume when pushing/popping JS contexts off of the context stack instead. r=shaver@mozilla.org, sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@244445 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-30 02:28:59 +00:00
mrbkap%gmail.com
05a4330159 Outerize this when we're computing it. bug 394012, r=brendan
git-svn-id: svn://10.0.0.236/trunk@244437 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-30 02:16:56 +00:00
crowder%fiverocks.com
f2d4bbe349 Bug 408113: allocate stackPools less often, r=brendan, a=blocking1.9 (schrep)
git-svn-id: svn://10.0.0.236/trunk@244435 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-30 02:11:30 +00:00
mrbkap%gmail.com
2e12a2070b SJOW's equality hook returns true too much. bug 413902, r+sr=jst a=damons
git-svn-id: svn://10.0.0.236/trunk@244431 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-30 02:06:17 +00:00
peterv%propagandism.org
ddd287d0a6 Fix for bug 407034 (JS_Assert "!rt->gcRunning" unbinding link elements in cycle collector with JS protocol handlers), r/sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@244430 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-30 02:05:45 +00:00
mrbkap%gmail.com
01fb23c631 Preserve interesting attributes on same-origin XOWs. bug 393269, r+sr=jst a=beltzner
git-svn-id: svn://10.0.0.236/trunk@244418 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-30 00:28:30 +00:00
jst%mozilla.org
85574b7ccd Fixing bug 414658. Make sure to not use a context from a different thread when calling functions on a wrapped JS object. r+sr=peterv@propagandism.org
git-svn-id: svn://10.0.0.236/trunk@244413 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-29 23:56:49 +00:00
igor%mir2.org
06a36664ad Bug 413744: JS_GCMETER requires to recompile just js/src, not the whole browser. r,a=brendan
git-svn-id: svn://10.0.0.236/trunk@244395 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-29 22:17:25 +00:00
peterv%propagandism.org
3225521caa Try to fix orange
git-svn-id: svn://10.0.0.236/trunk@244389 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-29 21:42:06 +00:00
reed%reedloden.com
e267c8e74b Bug 411579 - "Optimize read file buffer sizes for faster startup times" [p=jmathies@mozilla.com (Jim Mathies) r=sayrer sr=bsmedberg a=blocking1.9+]
git-svn-id: svn://10.0.0.236/trunk@244381 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-29 20:51:47 +00:00
peterv%propagandism.org
26ccbe7007 Fix for bug 407034 (JS_Assert "!rt->gcRunning" unbinding link elements in cycle collector with JS protocol handlers), r/sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@244379 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-29 20:48:35 +00:00
nboyd%atg.com
631c6fad8b Fix function case for 414553.
git-svn-id: svn://10.0.0.236/trunk@244371 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-29 19:41:58 +00:00
nboyd%atg.com
c1758bfd92 Fix Bug 414553 - destructuring assignment in let causes bindings to be lost
git-svn-id: svn://10.0.0.236/trunk@244356 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-29 18:39:25 +00:00
nboyd%atg.com
6a8aaabf39 Missing ECMA conformance test, see
https://bugzilla.mozilla.org/show_bug.cgi?id=392593


git-svn-id: svn://10.0.0.236/trunk@244336 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-29 15:02:12 +00:00
nboyd%atg.com
1f887ee3c9 Fix Bug 414554 - ClassCache should use WeakHashMap
git-svn-id: svn://10.0.0.236/trunk@244335 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-29 14:34:32 +00:00
brendan%mozilla.org
212836a4b0 Revert last checkin (414452).
git-svn-id: svn://10.0.0.236/trunk@244325 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-29 08:45:14 +00:00
brendan%mozilla.org
05e5a6f4c5 Move guts of js_SetProtoOrParent to jsgc.c, unifying serialization and deadlock avoidance machinery (414452, r=igor).
git-svn-id: svn://10.0.0.236/trunk@244313 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-29 07:18:21 +00:00
jst%mozilla.org
6089541099 Fixing windows bustage.
git-svn-id: svn://10.0.0.236/trunk@244265 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-28 23:54:56 +00:00
mrbkap%gmail.com
8ebcced0aa Backing out to see if this is the cause for apparent random crashes.
git-svn-id: svn://10.0.0.236/trunk@244264 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-28 23:52:54 +00:00
jst%mozilla.org
38b82fd5f3 Fixing bug 413559. Make XPConnect use faster accessors for JS class/parent/private/proto. r=mrbkap@gmail.com, sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@244260 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-28 23:19:52 +00:00
mrbkap%gmail.com
5c7f407daf There might be a pushed context but no running code. bug 413200, r+sr=jst a=blocking-1.9+
git-svn-id: svn://10.0.0.236/trunk@244258 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-28 23:10:30 +00:00
mrbkap%gmail.com
1f97ad7627 Create a more valid pseudo-frame for liveconnect to avoid null ptr dereferences. bug 409720, r=brendan sr=jst a=brendan
git-svn-id: svn://10.0.0.236/trunk@244256 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-28 23:07:29 +00:00
mrbkap%gmail.com
da4a2a901d Don't allocate links on the heap. bug 410223, r+sr=brendan a=schrep
git-svn-id: svn://10.0.0.236/trunk@244254 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-28 23:03:42 +00:00
igor%mir2.org
94bc8289e2 Bug 413793: fixing JS compilation. r=outside of the browser three
git-svn-id: svn://10.0.0.236/trunk@244252 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-28 22:36:59 +00:00
nboyd%atg.com
f4bd78c0fd Complete fix for bug 412247 - Allow to customize toBoolean conversion
Fix misspelling in method name (!) and correct support for Boolean(expr).


git-svn-id: svn://10.0.0.236/trunk@244204 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-28 14:41:05 +00:00
brendan%mozilla.org
c154b4d14d Must lock newborn block object (shared) scope before calling js_GetMutableScope (413850, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@244176 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-28 02:13:00 +00:00
mrbkap%gmail.com
1a7c6f2a41 Fix think-o causing valgrind errors during evalcx(). bug 414219, r=shaver NPOTB
git-svn-id: svn://10.0.0.236/trunk@244143 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-27 17:27:01 +00:00
brendan%mozilla.org
3e8b25d215 Fix #if-related bug that broken compilation of pre-1.7 versions (bug 412894, r=timeless).
git-svn-id: svn://10.0.0.236/trunk@244134 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-27 07:58:06 +00:00
jst%mozilla.org
86332cc9ae Landing fix for bug 412462. Do the right thing when converting objects wrapped in XOWs. Patch by mrbkap@gmail.com, r=jst@mozilla.org, sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@244030 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-26 00:36:44 +00:00
jst%mozilla.org
ae9a7c64ef Landing fix for bug 411093. Make sure functions get the right filename. Patch by mrbkap@gmail.com, r=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@244029 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-26 00:28:08 +00:00
jst%mozilla.org
c420b69437 Fixing bug 397791. Prevent document principals from ever changing, and make us not use XOWs for same origin document objects. r=jonas@sickin.cc, sr=bzbarsky@mit.edu
git-svn-id: svn://10.0.0.236/trunk@244015 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-25 21:49:11 +00:00
jst%mozilla.org
cf7499d99e Fixing bug 413569. Make XPCWrappedNative::CallMethod() initialize the nsAutoString buffer used for [out] string param handling only when needed. r+sr=jonas@sicking.cc
git-svn-id: svn://10.0.0.236/trunk@243865 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-24 01:17:13 +00:00
jst%mozilla.org
d37864b67a Fixing bug 413045. Make some JS API functions faster by accessing obj->fslots[] directly when possible. r=brendan@mozilla.org, r=igor@mir2.org.
git-svn-id: svn://10.0.0.236/trunk@243855 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-23 22:05:43 +00:00
szegedia%freemail.hu
09d4e051df Fix exclusions
git-svn-id: svn://10.0.0.236/trunk@243834 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-23 17:24:28 +00:00
szegedia%freemail.hu
b5430f9d4a Make sure it finds JUnit
git-svn-id: svn://10.0.0.236/trunk@243832 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-23 16:52:31 +00:00
nboyd%atg.com
2a9ad9bacf Fix Bug 412247 Allow to customize toBoolean conversion
Add new ScriptableObject method, avoidObjectDectection:

    /**
     * Emulate the SpiderMonkey (and Firefox) feature of allowing
     * custom objects to avoid detection by normal "object detection"
     * code patterns. This is used to implement document.all.
     * See https://bugzilla.mozilla.org/show_bug.cgi?id=412247.
     * This is an analog to JOF_DETECTING from SpiderMonkey; see
     * https://bugzilla.mozilla.org/show_bug.cgi?id=248549.
     * Other than this special case, embeddings should return false.
     * @return true if this object should avoid object detection
     * @since 1.7R1
     */


git-svn-id: svn://10.0.0.236/trunk@243822 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-23 14:59:38 +00:00