brendan%mozilla.org
7b041792d6
Null defense needed in case of JS_DestroyRuntime with no script filenames tabled (345350, r=mrbkap).
...
git-svn-id: svn://10.0.0.236/trunk@203336 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-21 02:17:22 +00:00
brendan%mozilla.org
f4df6e1ae7
MOZILLA_1_8_BRAN CH API compatibility restoration.
...
git-svn-id: svn://10.0.0.236/trunk@201687 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-06 18:40:03 +00:00
igor.bukanov%gmail.com
2f5736ed22
Bug 342180: Check for unitialized scriptFilenameTable in js_SweepScriptFilenames as js_GC can run before js_InitRuntimeScriptState is invoked. r=mrbkap
...
git-svn-id: svn://10.0.0.236/trunk@200792 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-24 10:48:56 +00:00
brendan%mozilla.org
eca14b115c
Null defense in case of early failure under js_NewContext (342180, r=mrbkap).
...
git-svn-id: svn://10.0.0.236/trunk@200447 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-20 18:36:34 +00:00
igor%mir2.org
acf645718d
Bug 338804: Making rooting bulletproof. r=mrbkap,sr=brendan
...
git-svn-id: svn://10.0.0.236/trunk@198250 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-23 07:54:17 +00:00
brendan%mozilla.org
2fb9f8c051
First big wave of js1.7 changes (326466, 336376, r=mrbkap).
...
git-svn-id: svn://10.0.0.236/trunk@198099 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-20 22:27:28 +00:00
brendan%mozilla.org
9cef5307bc
Awesome patch from Andreas <mqmq87@web.de> to avoid creating unnecessary objects for primitives being operated on via methods (334261, r=me).
...
git-svn-id: svn://10.0.0.236/trunk@195575 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-27 17:58:55 +00:00
brendan%mozilla.org
d5fb083e40
Second half of fix for 304376 (r=mrbkap).
...
git-svn-id: svn://10.0.0.236/trunk@194732 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-19 23:36:16 +00:00
brendan%mozilla.org
ad4257f410
Memoize standard class.prototype bindings, per ECMA-262 (304376, r=mrbkap).
...
git-svn-id: svn://10.0.0.236/trunk@194643 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-19 00:22:43 +00:00
igor%mir2.org
688a6438cf
Bug 330692: GC_MARK_DEBUG-only arguments are removed when GC_MARK_DEBUG is not defined. r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@192847 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-23 11:50:30 +00:00
igor%mir2.org
62f23de8b2
BUG 321985: During xdr decoding of atoms avoid creation of JSString for
...
the already existing atoms. r=brendan
git-svn-id: svn://10.0.0.236/trunk@189945 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-14 09:33:45 +00:00
timeless%mozdev.org
64aca72764
Bug 325780 refactor debug_brendan/debug_notme
...
r=shaver
git-svn-id: svn://10.0.0.236/trunk@189468 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-09 06:02:02 +00:00
mrbkap%gmail.com
7367101e20
bug 324694: Reparameterize js_CheckPrincipalsAccess to avoid eager calls to js_AtomToPrintableString. r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@188190 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-25 22:54:34 +00:00
igor%mir2.org
f30f3386cc
Implementing bug 322001:
...
JSFunction is shrinked via removal of nref field
and moving interreter-only or native-only fields into union. r=brendan
git-svn-id: svn://10.0.0.236/trunk@187167 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-09 08:26:26 +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
brendan%mozilla.org
68ad677e08
Fix script_thaw to set its local root.
...
git-svn-id: svn://10.0.0.236/trunk@183203 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-28 18:14:44 +00:00
igor%mir2.org
1ba0ef8bb7
Fixing bug 313938: better handling of GC strings
...
git-svn-id: svn://10.0.0.236/trunk@183178 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-28 09:50:12 +00:00
brendan%mozilla.org
1703407822
Remove unused variable.
...
git-svn-id: svn://10.0.0.236/trunk@182791 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-23 05:18:29 +00:00
mrbkap%gmail.com
d206fdc266
bug 313236: Consolidate some code. r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@182765 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-22 01:03:06 +00:00
mrbkap%gmail.com
4de88480d7
bug 311892: Add some (awful, gross) checks. r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@182263 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-14 19:05:42 +00:00
mrbkap%gmail.com
ca3e9aa540
bug 311403: Enforce JS engine invarients. r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@181836 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-09 07:56:32 +00:00
mrbkap%gmail.com
7f4f7a436a
bug 311619: Make sure to grab the correct scope object. r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@181835 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-09 07:45:32 +00:00
mrbkap%gmail.com
f4d284ad5b
bug 311024: Make sure eval grabs the right scope object. r=brendan sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@181803 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-08 00:28:45 +00:00
timeless%mozdev.org
b163cc0e89
Bug 302100 I just downloaded Firefox 1.06, and it crashes at 004A6170 whenever I try to view any page [@ nsJSPrincipalsSubsume] using PAC
...
r=mrbkap sr=shaver a=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@176760 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-28 15:26:05 +00:00
brendan%mozilla.org
15ddfa152d
Add a subsumes relation to principals so JS can handle all cases when checking indirect eval (and the like) calls (300008, r=caillon/dveditz, sr/a=shaver).
...
git-svn-id: svn://10.0.0.236/trunk@175859 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-08 23:26:36 +00:00
brendan%mozilla.org
c1174d1919
Big patch from jst and me to beef up and automate, configurably, XPCNativeWrapper (281988, r+sr=bz/shaver, a=drivers).
...
git-svn-id: svn://10.0.0.236/trunk@173622 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-20 03:12:22 +00:00
brendan%mozilla.org
b5d8775a4b
Flag Script-object compilation so it deoptimizes fully (291213, r=shaver, a=me).
...
git-svn-id: svn://10.0.0.236/trunk@173341 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-12 19:34:13 +00:00
brendan%mozilla.org
9d6f36e1d2
Fix so last-ditch GC doesn't collect script filenames (291312, r=shaver, a=me).
...
git-svn-id: svn://10.0.0.236/trunk@173058 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-05 00:47:50 +00:00
brendan%mozilla.org
8695afc4e4
Find active native function principals when walking the JS stack, and beef up eval-ish native safeguards (281988, r=shaver/caillon, sr=jst, a=drivers).
...
git-svn-id: svn://10.0.0.236/trunk@173030 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-04 06:28:36 +00:00
brendan%mozilla.org
b8b4468654
Defense in depth for eval on what should be an inaccessible scope (217195, r+sr=jst, a=chase).
...
git-svn-id: svn://10.0.0.236/trunk@172014 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-12 01:35:05 +00:00
brendan%mozilla.org
01efe388a9
Revert kludge, want a general fix.
...
git-svn-id: svn://10.0.0.236/trunk@171865 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-07 19:48:57 +00:00
brendan%mozilla.org
41903388e1
Stop evals and Script object calls/execs that cross trust domains (289074, r=shaver, sr=jst, a=drivers).
...
git-svn-id: svn://10.0.0.236/trunk@171838 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-07 02:22:24 +00:00
brendan%mozilla.org
75fd1b8828
Make js_GetScriptLineExtent JS_FRIEND_API for the js shell's sake.
...
git-svn-id: svn://10.0.0.236/trunk@171322 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-29 16:55:43 +00:00
brendan%mozilla.org
6ecd20e4a8
Fix js_LineNumberToPC to cope with code reordering, especially in JSOP_CONDSWITCH (1113352, r=shaver).
...
git-svn-id: svn://10.0.0.236/trunk@168505 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-29 18:31:46 +00:00
brendan%mozilla.org
d5fcaaf973
Silence a DEBUG_brendan blurb.
...
git-svn-id: svn://10.0.0.236/trunk@166736 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-15 02:59:00 +00:00
brendan%mozilla.org
2e6bee01c4
Don't forget to call the new-script and destroy-script hooks in js_FilterXMLList, so the debugger knows about the script cloned there.
...
git-svn-id: svn://10.0.0.236/trunk@165772 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-25 06:57:17 +00:00
brendan%mozilla.org
e1d64a36be
Initial E4X check-in, configured off (246441, rs=shaver).
...
git-svn-id: svn://10.0.0.236/trunk@163236 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-05 10:19:07 +00:00
brendan%mozilla.org
c73434d76b
Add scoped local root support, plus a few cleanups from the huge e4x patch (40757, r=shaver).
...
git-svn-id: svn://10.0.0.236/trunk@161009 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-19 17:57:36 +00:00
brendan%mozilla.org
01497fded6
Remove bogus instanceof equivalence of distinct constructor function objects
...
that have the same native or script internally. We no longer need this hack,
given regexp cloning done for precompiled scripts and functions (i.e., those
not eval'd or compile-and-go executed via a JS_Evaluate* API).
Fix a script_compile bug found during the scan of JSFRAME_EVAL occasioned by
the instanceof fix.
Bug 254067, r=shaver@mozilla.org .
git-svn-id: svn://10.0.0.236/trunk@160359 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-04 17:56:31 +00:00
brendan%mozilla.org
f7b9ce6db4
Avoid harmless UMC from purify when XDR-decoding (252047, r=shaver).
...
git-svn-id: svn://10.0.0.236/trunk@159893 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-27 01:28:39 +00:00
brendan%mozilla.org
7cf55aa042
Mangle JS_STATIC_DLL_CALLBACK names a bit in case they're not hidden.
...
git-svn-id: svn://10.0.0.236/trunk@158200 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-20 02:29:19 +00:00
brendan%mozilla.org
25a4d6d341
- Improve global variable performance from 3x slower to 1.2x slower than
...
locals (169559, r=shaver).
- Also fix longstanding bug where global regexps in precompiled scripts were
wrongly shared among threads/contexts (165201, r=shaver).
- Also fix strict-aliasing gcc warning causes (206599, r=bryner).
git-svn-id: svn://10.0.0.236/trunk@154749 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-13 01:25:17 +00:00
brendan%mozilla.org
dbe6162d4d
Move script_filename_table into JSRuntime where it belongs (235145, r=shaver).
...
git-svn-id: svn://10.0.0.236/trunk@153079 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-22 03:21:15 +00:00
dbaron%dbaron.org
58150a14fa
Backing out brendan's checkin due to tinderbox orange.
...
git-svn-id: svn://10.0.0.236/trunk@153077 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-22 01:11:47 +00:00
brendan%mozilla.org
2247a47000
Move script_filename_table into JSRuntime where it belongs (235145, r=shaver).
...
git-svn-id: svn://10.0.0.236/trunk@153072 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-21 19:41:52 +00:00
brendan%mozilla.org
42c8b66573
NARCISSUS ifdefs and related general fixes (r=shaver).
...
git-svn-id: svn://10.0.0.236/trunk@152659 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-11 07:21:59 +00:00
brendan%mozilla.org
b2008e8627
Don't JS_ReportOutOfMemory while holding script_filename_table_lock (r=self).
...
git-svn-id: svn://10.0.0.236/trunk@150775 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-30 07:54:09 +00:00
brendan%mozilla.org
9d6a799abb
Followup patch to cope with lightweight function calls (direct or via natives) to exec (227432, r=shaver, a=dbaron).
...
git-svn-id: svn://10.0.0.236/trunk@150182 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-10 00:24:13 +00:00