Commit Graph

2269 Commits

Author SHA1 Message Date
brendan%mozilla.org
aef3012317 Fix catch decompilation, again (245308, r=shaver). 2004-08-29 18:00:24 +00:00
brendan%mozilla.org
fab50a47cb Preserve LIFO allocation when freeing from the middle of a pool (256642, r=shaver). 2004-08-28 18:43:50 +00:00
brendan%mozilla.org
4aa8cd6458 Fix zero-width positive lookahead bustage (256798, r=shaver). 2004-08-27 21:33:05 +00:00
kyle.yuan%sun.com
66768b7955 Missed a #else in my previous checkin for bug 239562. 2004-08-27 01:59:09 +00:00
brendan%mozilla.org
868cd103e8 Pave way for E4X, reduce code size of scanner by ~600 bytes (256728, r=shaver). 2004-08-25 02:27:24 +00:00
brendan%mozilla.org
13f72da5b5 Fix another node end line-numbering bug reported by Igor Bukanov on n.p.m.jseng. 2004-08-22 21:32:23 +00:00
brendan%mozilla.org
d9c605bed1 Fix node end line-numbering bug reported by Igor Bukanov on n.p.m.jseng. 2004-08-22 18:51:07 +00:00
brendan%mozilla.org
5a95353303 Add scoped local root support, plus a few cleanups from the huge e4x patch (40757, r=shaver). 2004-08-19 17:57:36 +00:00
kyle.yuan%sun.com
ccb50ed208 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.
2004-08-19 02:36:36 +00:00
brendan%mozilla.org
aeb9aa670c Decompile return from try or catch with finally correctly (255245, r=shaver, a=asa). 2004-08-11 23:05:37 +00:00
brendan%mozilla.org
4506616ed3 Fix simple-match optimization for positive and negative lookahead assertions (254296, r=shaver). 2004-08-11 02:27:29 +00:00
brendan%mozilla.org
c04118bf9e 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). 2004-08-10 05:13:17 +00:00
brendan%mozilla.org
1efe559390 Fix bug 254375 by quoting negative integer property ids in js_obj_toSource. 2004-08-05 08:06:26 +00:00
brendan%mozilla.org
ee79316ac0 Remove deadwood left by last checkin (254382, r=cst). 2004-08-05 07:52:45 +00:00
brendan%mozilla.org
056f902a8b Comment fixes to track bug 254067. 2004-08-04 18:40:55 +00:00
brendan%mozilla.org
90fdd75baf JSOP_SETGVAR tweak: don't store rval needlessly in the optimized case, there's no chance it has changed. 2004-08-04 18:08:17 +00:00
brendan%mozilla.org
d197533455 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.
2004-08-04 17:56:31 +00:00
brendan%mozilla.org
52ea52a643 Whitespace cleanup. 2004-08-04 02:28:58 +00:00
brendan%mozilla.org
de19ea1b37 Fix trunk version of patch for bug 252892 to handle JSOP_{GET,SET}GVAR (253952). 2004-08-02 17:17:55 +00:00
brendan%mozilla.org
1b2f9a0128 - 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).
2004-07-30 00:00:09 +00:00
brendan%mozilla.org
652a45f1d5 Improve JSRESOLVE_DETECTING to handle typeof, ==, !=, etc.; don't give undefined property strict warning for detecting cases (253150, r=shaver). 2004-07-29 20:44:20 +00:00
brendan%mozilla.org
4711f5d6ff Avoid harmless UMC from purify when XDR-decoding (252047, r=shaver). 2004-07-27 01:28:39 +00:00
mkaply%us.ibm.com
ae6ca1e908 This stuff doesn't work on OS/2 and is causing thousands of warnings errors 2004-07-22 20:27:48 +00:00
brendan%mozilla.org
d608b3e898 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). 2004-07-22 15:47:22 +00:00
timeless%mozdev.org
0529aed045 reverting 3.176 per brendan 2004-07-20 16:11:53 +00:00
brendan%mozilla.org
e65c24c40b Fix unused variable problem. 2004-07-17 02:44:37 +00:00
brendan%mozilla.org
ac625391e0 - 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.
2004-07-17 02:39:55 +00:00
brendan%mozilla.org
97501ed611 White space policing. 2004-07-17 02:31:11 +00:00
tor%cs.brown.edu
6905e4af37 Bug 165200 - Number.toLocaleString() localization. r=brendan 2004-07-16 21:17:50 +00:00
timeless%mozdev.org
3b48e20deb 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
2004-07-16 17:30:23 +00:00
brendan%mozilla.org
d9756dec41 Restore export/import support for 4.x signed script compatibility (249211, r=self). 2004-07-15 19:21:35 +00:00
brendan%mozilla.org
c654a3f978 Improve JSRESOLVE_DETECTING by treating 'terminal' uses of, e.g., document.all as detecting (248549, r=jst). 2004-07-15 18:53:59 +00:00
dbaron%dbaron.org
4c9caa3458 Only use __attribute__ on gcc 3 or higher. Fixing bustage. b=249652 2004-07-15 00:00:43 +00:00
bryner%brianryner.com
23089547be 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. 2004-07-14 22:14:34 +00:00
brendan%mozilla.org
1b411ff802 Enhance RegExp.prototype.to{Source,String} to escape naked slashes in the regexp source (284444, r=shaver). 2004-07-07 03:58:26 +00:00
timeless%mozdev.org
e29b29c0ba Bug 248458 Crash [@ nsJSIID::Equals] for null other
r=dbradley sr=shaver
2004-06-24 23:49:08 +00:00
brendan%mozilla.org
735cc13421 NARCISSUS-only fix from Frierich Munch <colsebas@hotmail.com>. 2004-06-23 21:25:55 +00:00
bryner%brianryner.com
bf8138fe2b Make jsdouble hashing code strict-aliasing safe (bug 247877). r=brendan. 2004-06-21 17:57:10 +00:00
brendan%mozilla.org
e68295a5fe Mangle JS_STATIC_DLL_CALLBACK names a bit in case they're not hidden. 2004-06-20 02:29:19 +00:00
bsmedberg%covad.net
4d342dc548 Bug 239875 - fix xpconnect static guards so we can restart xpcom without crashing r=shaver sr=brendan 2004-06-19 01:19:27 +00:00
brendan%mozilla.org
77e05267a4 My spin on Malcolm Rowe's patch for ECMA-compliant \b in regexps (247179, r=me). 2004-06-18 21:59:06 +00:00
brendan%mozilla.org
edb764650d Fix off-by-one, simplify logic in light of EOF mapping to 0 JS_CCODE. 2004-06-18 20:40:54 +00:00
roc+%cs.cmu.edu
0f4150a4e5 Bug 226439. Convert codebase to use AppendLiteral/AssignLiteral/LowerCaseEqualsLiteral. r+sr=darin 2004-06-17 00:13:25 +00:00
brendan%mozilla.org
bb87816784 Add JSRESOLVE_DETECTING (246964, r=shaver). 2004-06-16 21:15:35 +00:00
tor%cs.brown.edu
9f26f1dadb Bug 153586 - Date.toLocaleString() not returning locale string.
r=jst, sr=brendan
2004-06-15 16:38:43 +00:00
brendan%mozilla.org
1a78cd61c8 Give JSObjectOps.setRequiredSlot a JSBool return value so it can propagate errors (part of 245890, r=shaver). 2004-06-12 01:50:09 +00:00
cbiesinger%web.de
a4396ff7b4 bug 245673 named literal strings should be const
r+sr=darin
2004-06-11 15:05:29 +00:00
brendan%mozilla.org
913606c84e Fix comment glitch pointed out by timeless (243359). 2004-06-11 06:30:14 +00:00
timeless%mozdev.org
9b9a5c1692 Bug 238712 nsMemoryImpl::Alloc (0) in XPCConvert::JSArray2Native
r=dbradley sr=brendan
2004-06-11 04:40:00 +00:00
brendan%mozilla.org
7184dfb8b0 Add support for XUL preprocessor line/file coercion (243359, r=bryner). 2004-06-11 00:55:59 +00:00