brendan%mozilla.org
445c660f77
Undo last change, it broke ports and is not strictly speaking part of the fix for bug 253241.
...
git-svn-id: svn://10.0.0.236/trunk@162738 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-24 03:31:55 +00:00
brendan%mozilla.org
5d5746632e
Home sp always before calling js_ConcatStrings (261321, r/a=me).
...
git-svn-id: svn://10.0.0.236/trunk@162736 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-24 02:17:30 +00:00
brendan%mozilla.org
4371838064
Check in patch from Nicholas Miell <nmiell@comcast.net> for bug 253241 (r=shaver, a=asa).
...
git-svn-id: svn://10.0.0.236/trunk@162728 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-23 23:32:51 +00:00
brendan%mozilla.org
b482fb5e81
Avoid recursive death in exn_toString (260541, r=shaver).
...
git-svn-id: svn://10.0.0.236/trunk@162572 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-21 01:18:00 +00:00
brendan%mozilla.org
fb1bc8f1ea
Make JSOP_SET{PROP,ELEM} be detecting (259935, r=shaver).
...
git-svn-id: svn://10.0.0.236/trunk@162566 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-21 00:25:46 +00:00
brendan%mozilla.org
97d5ac0507
Fix function redeclaration and with deprecation warnings to apply to start of statement (256036, r=shaver).
...
git-svn-id: svn://10.0.0.236/trunk@162266 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-14 01:38:19 +00:00
brendan%mozilla.org
93799e87e5
Forbid line terminator between throw and the exception expression, per ECMA (256617, r=shaver).
...
git-svn-id: svn://10.0.0.236/trunk@161868 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-07 19:43:21 +00:00
brendan%mozilla.org
1e7e70e5f6
Checking in patch for bug 256501 from Igor Bukanov <igor@fastmail.fm>, r=me.
...
git-svn-id: svn://10.0.0.236/trunk@161623 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-02 00:06:29 +00:00
brendan%mozilla.org
2e85eaa612
Add JSRESOLVE_DECLARING and JSRESOLVE_CLASSNAME support for better DOM quirk emulation (257602, r=shaver).
...
git-svn-id: svn://10.0.0.236/trunk@161606 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-01 20:51:39 +00:00
jruderman%hmc.edu
9c0099859c
256757 - misused printf causes crash [@ nsXPCWrappedJSClass::CheckForException]. r=sr=jst.
...
git-svn-id: svn://10.0.0.236/trunk@161499 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-30 20:50:24 +00:00
brendan%mozilla.org
e86875f709
Fix catch decompilation, again (245308, r=shaver).
...
git-svn-id: svn://10.0.0.236/trunk@161455 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-29 18:00:24 +00:00
brendan%mozilla.org
5d2bc1131c
Preserve LIFO allocation when freeing from the middle of a pool (256642, r=shaver).
...
git-svn-id: svn://10.0.0.236/trunk@161423 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-28 18:43:50 +00:00
brendan%mozilla.org
76a5c6e70c
Fix zero-width positive lookahead bustage (256798, r=shaver).
...
git-svn-id: svn://10.0.0.236/trunk@161403 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-27 21:33:05 +00:00
kyle.yuan%sun.com
e828512366
Missed a #else in my previous checkin for bug 239562.
...
git-svn-id: svn://10.0.0.236/trunk@161374 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-27 01:59:09 +00:00
brendan%mozilla.org
483f1fa2e2
Pave way for E4X, reduce code size of scanner by ~600 bytes (256728, r=shaver).
...
git-svn-id: svn://10.0.0.236/trunk@161212 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-25 02:27:24 +00:00
brendan%mozilla.org
e46aa44602
Fix another node end line-numbering bug reported by Igor Bukanov on n.p.m.jseng.
...
git-svn-id: svn://10.0.0.236/trunk@161120 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-22 21:32:23 +00:00
brendan%mozilla.org
09ca38ac95
Fix node end line-numbering bug reported by Igor Bukanov on n.p.m.jseng.
...
git-svn-id: svn://10.0.0.236/trunk@161118 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-22 18:51: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
kyle.yuan%sun.com
f5b99acd2d
Bug 239562 64bit safe code for liveconnect (WinXP AMD64)
...
r=xiaobin.lu, sr=brendan
a) renamed jsobject to lcjsobject,
b) defined lcjsobject as jint on 32-bit platform or as jlong on 64-bit platform.
git-svn-id: svn://10.0.0.236/trunk@160972 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-19 02:36:36 +00:00
brendan%mozilla.org
b0ea43af3b
Decompile return from try or catch with finally correctly (255245, r=shaver, a=asa).
...
git-svn-id: svn://10.0.0.236/trunk@160688 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-11 23:07:15 +00:00
brendan%mozilla.org
8e4956796a
Fix simple-match optimization for positive and negative lookahead assertions (254296, r=shaver).
...
git-svn-id: svn://10.0.0.236/trunk@160646 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-11 02:27:29 +00:00
brendan%mozilla.org
98aac40feb
Use JSPROP_SHARED for JSOP_DEFLOCALFUN-induced nested function local variable property to avoid claiming a slot later subject to reservation for a JSOP_REGEXP-induced regexp clone (254974, r=shaver).
...
git-svn-id: svn://10.0.0.236/trunk@160591 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-10 05:13:17 +00:00
brendan%mozilla.org
a1895165ae
Fix bug 254375 by quoting negative integer property ids in js_obj_toSource.
...
git-svn-id: svn://10.0.0.236/trunk@160391 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-05 08:06:26 +00:00
brendan%mozilla.org
90b882af41
Remove deadwood left by last checkin (254382, r=cst).
...
git-svn-id: svn://10.0.0.236/trunk@160390 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-05 07:52:45 +00:00
brendan%mozilla.org
65f01a3d29
Comment fixes to track bug 254067.
...
git-svn-id: svn://10.0.0.236/trunk@160363 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-04 18:40:55 +00:00
brendan%mozilla.org
8a13e960a1
JSOP_SETGVAR tweak: don't store rval needlessly in the optimized case, there's no chance it has changed.
...
git-svn-id: svn://10.0.0.236/trunk@160360 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-04 18:08:17 +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
f17fbb8285
Whitespace cleanup.
...
git-svn-id: svn://10.0.0.236/trunk@160327 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-04 02:28:58 +00:00
brendan%mozilla.org
3928ffaab2
Fix trunk version of patch for bug 252892 to handle JSOP_{GET,SET}GVAR (253952).
...
git-svn-id: svn://10.0.0.236/trunk@160233 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-02 17:17:55 +00:00
brendan%mozilla.org
340570a787
- Decorate PN_LIST nodes with pn_extra flags whose constant names describe
...
their meaning better, adding a flag for 'for (var x ... in o)'.
- Set these flags from the parser, in a future-proof way (|=, not =, given the
zero initialized pn_extra flags member of pn_list).
- Test list flags in the code generator, including PNX_FORINVAR in conjunction
with whether the for..in loop is of the oddball form 'for (var x = i in o)'.
- Thereby fix failure to emit a JSOP_DEFVAR in the case that a function wraps
a for..in loop in a with statement (252892, r=shaver).
- The same fix cured another bug, not reported, where 'for (var x = i in o)'
in a function without any 'with' statement would emit the wrong opcode
(JSOP_FORNAME, not JSOP_FORVAR).
git-svn-id: svn://10.0.0.236/trunk@160101 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-30 00:00:09 +00:00
brendan%mozilla.org
0144b0c6a4
Improve JSRESOLVE_DETECTING to handle typeof, ==, !=, etc.; don't give undefined property strict warning for detecting cases (253150, r=shaver).
...
git-svn-id: svn://10.0.0.236/trunk@160075 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-29 20:44:20 +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
mkaply%us.ibm.com
d924b7872b
This stuff doesn't work on OS/2 and is causing thousands of warnings errors
...
git-svn-id: svn://10.0.0.236/trunk@159688 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-22 20:27:48 +00:00
brendan%mozilla.org
6b7f7ecdc5
Update map->freeslot in js_SetRequiredSlot if obj has its own scope (245890, r=shaver); also clear pending exceptions as needed in js_TryMethod (old unreported bug, r=self).
...
git-svn-id: svn://10.0.0.236/trunk@159660 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-22 15:47:22 +00:00
timeless%mozdev.org
4e31823e07
reverting 3.176 per brendan
...
git-svn-id: svn://10.0.0.236/trunk@159538 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-20 16:11:53 +00:00
brendan%mozilla.org
dc606d6d85
Fix unused variable problem.
...
git-svn-id: svn://10.0.0.236/trunk@159382 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-17 02:44:37 +00:00
brendan%mozilla.org
c7bb7a454c
- Add JS_Has*Property and JS_HasElement APIs, for unambiguous testing of whether an object or one of its prototypes has an identified property.
...
- Add JS_ReportPendingException, and fix its js_ReportUncaughtException subroutine to (a) not return false on vacuous success; (b) fail to clear the pending exception it reports.
git-svn-id: svn://10.0.0.236/trunk@159381 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-17 02:39:55 +00:00
brendan%mozilla.org
9d3428574c
White space policing.
...
git-svn-id: svn://10.0.0.236/trunk@159380 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-17 02:31:11 +00:00
tor%cs.brown.edu
61fec9ef22
Bug 165200 - Number.toLocaleString() localization. r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@159366 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-16 21:17:50 +00:00
timeless%mozdev.org
1dde0401e3
Bug 243869 js_ReportUncaughtException doesn't propagate filename/lineno from error object
...
These changes are a last ditch effort to provide filename info for certain failures.
r=shaver
git-svn-id: svn://10.0.0.236/trunk@159346 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-16 17:30:23 +00:00
brendan%mozilla.org
53f0bf3fa1
Restore export/import support for 4.x signed script compatibility (249211, r=self).
...
git-svn-id: svn://10.0.0.236/trunk@159272 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-15 19:21:35 +00:00
brendan%mozilla.org
9edbb0b2c1
Improve JSRESOLVE_DETECTING by treating 'terminal' uses of, e.g., document.all as detecting (248549, r=jst).
...
git-svn-id: svn://10.0.0.236/trunk@159266 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-15 18:53:59 +00:00
dbaron%dbaron.org
6ba6a78f8e
Only use __attribute__ on gcc 3 or higher. Fixing bustage. b=249652
...
git-svn-id: svn://10.0.0.236/trunk@159221 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-15 00:00:43 +00:00
bryner%brianryner.com
e372b2e9a3
Add a NS_FASTCALL macro that specifies regparm(3) and stdcall on gcc/x86 to improve performance (passing up to 3 arguments in registers instead of on the stack, and having the caller pop any stack arguments). Apply NS_FASTCALL to our most frequently called non-public methods and functions. Also add NS_CDECL to explicitly specify the default calling convention and make it part of NS_IMETHOD, since xptcall can't deal with NS_FASTCALL. Bug 249652, r=darin, sr=dbaron.
...
git-svn-id: svn://10.0.0.236/trunk@159199 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-14 22:14:34 +00:00
brendan%mozilla.org
0e385c551c
Enhance RegExp.prototype.to{Source,String} to escape naked slashes in the regexp source (284444, r=shaver).
...
git-svn-id: svn://10.0.0.236/trunk@158824 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-07 03:58:26 +00:00
timeless%mozdev.org
27c47c4857
Bug 248458 Crash [@ nsJSIID::Equals] for null other
...
r=dbradley sr=shaver
git-svn-id: svn://10.0.0.236/trunk@158447 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-24 23:49:08 +00:00
brendan%mozilla.org
b3757f6391
NARCISSUS-only fix from Frierich Munch <colsebas@hotmail.com>.
...
git-svn-id: svn://10.0.0.236/trunk@158383 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-23 21:25:55 +00:00
bryner%brianryner.com
b9fee4bf3a
Make jsdouble hashing code strict-aliasing safe (bug 247877). r=brendan.
...
git-svn-id: svn://10.0.0.236/trunk@158258 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-21 17:57:10 +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
bsmedberg%covad.net
f9f20186ed
Bug 239875 - fix xpconnect static guards so we can restart xpcom without crashing r=shaver sr=brendan
...
git-svn-id: svn://10.0.0.236/trunk@158170 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-19 01:19:27 +00:00