Граф коммитов

62 Коммитов

Автор SHA1 Сообщение Дата
brendan%mozilla.org 05d93ba6e5 Second half of fix for 304376 (r=mrbkap). 2006-04-19 23:36:16 +00:00
brendan%mozilla.org e2e22feaa7 Memoize standard class.prototype bindings, per ECMA-262 (304376, r=mrbkap). 2006-04-19 00:22:43 +00:00
igor%mir2.org 703d1c3337 Bug 331456: Cache of deflated string bytes is per runtime now. To preserve
API compatibility JS_GetStringBytes(JSString *str) calls newly introduced
js_GetGCStringRuntime(JSString *str) to extract JSRuntime* instance based
on the layout of GC structures. r=brendan
2006-03-25 22:55:00 +00:00
mrbkap%gmail.com c61bd6af26 Continue to create an exception even when we're unable to convert a function passed as an argument to a string. This fixes some cases where an exception would become uncatchable. bug 328443, r=brendan 2006-03-23 05:16:39 +00:00
timeless%mozdev.org 8ba124d801 Bug 329877 Coverity complains that js_ErrorToException dereferences reportp before null checking
r=brendan
2006-03-09 23:58:35 +00:00
igor%mir2.org 2fb3331863 BUG 321985: During xdr decoding of atoms avoid creation of JSString for
the already existing atoms. r=brendan
2006-02-14 09:33:45 +00:00
jst%mozilla.jstenback.com e79a259e56 Fixing bug 318873. Crash in js_GetLocalizedErrorMessage(). Patch by tor@acm.org, r+sr=jst@mozilla.org 2005-12-03 07:32:07 +00:00
brendan%mozilla.org cac3d44767 Michael Daumling <daumling@adobe.com> patch to allow user-defined errors, finally (thanks to Michael for doing this; 215173, r=mrbkap/me). 2005-12-03 02:31:21 +00:00
brendan%mozilla.org c1ad210f93 Oops. 2005-10-23 06:22:46 +00:00
brendan%mozilla.org b81acd8c6f Better local GC rooting (312278, r/sr=igor/shaver). 2005-10-23 04:59:50 +00:00
mrbkap%gmail.com d3fc37107b bug 312278: Protect some objects from getting GC'd before we could root them. r=brendan 2005-10-21 00:26:56 +00:00
mrbkap%gmail.com 67dcb21a01 bug 312278: Make sure to root things if they can be collected before their use. r=brendan 2005-10-19 23:32:37 +00:00
brendan%mozilla.org dd6effa86a Defend against [[DefaultValue]] divergence (295666, r=shaver). 2005-07-05 21:18:13 +00:00
jst%mozilla.jstenback.com c22744cdd3 Fixing tinderbox orangeness (Thunderbird) and bug 296467. Get the function object off of the stack frame through fp->argv[-2] and not through fp->fun->object as the latter may be null if the function on the frame is a clone and the real function object no longer exists. reviews and approval pending. 2005-06-03 04:16:14 +00:00
timeless%mozdev.org c919d1fb9d Bug 292949 crash [@ js_SetClassPrototype] because proto isn't rooted in js_InitExceptionClasses across call to js_DefineFunction
r=brendan a=brendan
2005-05-05 05:40:22 +00:00
brendan%mozilla.org 8fa7ab7b9a Unregress default exception reporting (276061, r=shaver, a=asa). 2005-01-07 03:35:36 +00:00
brendan%mozilla.org be60247b8c Unroot on failure exit paths from js_ReportUncaughtException (274096, r=shaver). 2004-12-11 22:00:34 +00:00
brendan%mozilla.org 41a1c558bb Report uncaught Error with proper message, filename, lineno (243869, r=shaver). 2004-12-09 02:19:53 +00:00
brendan%mozilla.org 4f4dec1bb4 E4X, configured off, code-complete. 2004-11-17 07:43:01 +00:00
brendan%mozilla.org dea0bf9edb Initial E4X check-in, configured off (246441, rs=shaver). 2004-10-05 10:19:07 +00:00
brendan%mozilla.org 0c6b237ee3 Avoid recursive death in exn_toString (260541, r=shaver). 2004-09-21 01:18:00 +00:00
brendan%mozilla.org 533a1486d7 - 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
gerv%gerv.net 82a585b053 Bug 205418 - Relicense Spidermonkey (js/src) to MPL/LGPL/GPL. Patch by gerv; r,a=brendan. 2003-11-15 00:11:16 +00:00
brendan%mozilla.org 32d941a463 Big dynamic footprint win via script filename caching, plus line number fix for strict/const diags (see http://bugzilla.mozilla.org/attachment.cgi?id=127130&action=view for detailed checkin comments; 208030, r/rs=shaver, r=rginda on the jsd change, r=jst on the dom change). 2003-07-26 22:37:11 +00:00
brendan%mozilla.org 8439ac2b0f Cosmetic nit-picks: respect 80-column limit, use NULL, not 0, for ptr init. 2002-09-18 18:44:47 +00:00
brendan%mozilla.org e6a03af4bf Fix error.stack computation to avoid toString as well as toSource on objects (166743, r=rginda, a=rjesup). 2002-09-05 22:25:48 +00:00
brendan%mozilla.org c4a43f27fb Avoid toSource bloat in e.stack; fix related crash due to unrooted errObject in js_ErrorToException (139316, r=rginda, sr=shaver). 2002-05-07 08:34:51 +00:00
timeless%mac.com fc883176bf Bug 106386 rid source of misspellings
r=db48x sr=blake a=asa
2002-03-19 04:30:17 +00:00
brendan%mozilla.org d8e97aa480 No strict warnings without the strict option, and other js1.5/mozilla1.0 tidying (129972, r=shaver, sr=jband, a=asa). 2002-03-14 00:14:48 +00:00
brendan%mozilla.org 8c62b9c3cc Runaway recursion safety for Exception and js_ErrorToException.
The latter no longer calls the former via js_ConstructObject, to
minimize failure opportunities when converting an error into an
exception.  Also, the 'stack' property of exception objects
faithfully preserves Unicode in function names and decompiled
actual argument sources.

Also, fun_xdrObject was reversing property order when encoding;
fixed to maximize property tree compression gain.

Also^2, js_ConstructObject was not handling success+not-found
return from FindConstructor.

bug 127136, r=rginda, sr=shaver, a=chofmann
2002-03-03 00:59:16 +00:00
brendan%mozilla.org 15ad22874d Construct error objects to consolidate their default property setting; this entails adding JS_ConstructObjectWithArguments (123177, r=rginda, sr=shaver). 2002-02-14 07:25:34 +00:00
brendan%mozilla.org f55fa17330 Add exception object stack property, string valued; clean up NULL/VOID mixup, missing OOM test, etc. (123177, r=rginda, sr=shaver). 2002-02-09 06:28:58 +00:00
brendan%mozilla.org aed6018793 Add mutable (growable or dependent, two subtypes) strings to solve O(n^2) and O(n^3) growth rates (56940, r=rogerl, sr=jband&shaver). 2001-10-25 00:26:38 +00:00
brendan%mozilla.org 0ba7918e66 Fix for bug 99663 (for loop resolves properties of the object being enumerated
with JSRESOLVE_ASSIGNING, wrongly), plus a few miscellaneous bugfixes.

- Combine the JSStackFrame members constructing, special, overrides, and
  reserved into a uint32 flags member.

- Separate JOF_ASSIGNING from the JOF_SET bytecode format flag, and impute
  JSRESOLVE_ASSIGNING from the presence of JOF_ASSIGNING among the current
  opcode's format flags.  To handle the for-in loop opcodes, which do more
  than simply assign -- in particular, they do property lookups whose resolve
  hook outcalls should not be flagged with JSRESOLVE_ASSIGNING -- a new frame
  flag, JSFRAME_ASSIGNING, has been added.

- Fix interpreter version selection to respect JS_SetVersion, whose effect on
  cx->version is "sticky".

- Fix js_DecompileValueGenerator to deal with JSOP_ENUMELEM -- it never had,
  as this testcase shows (it crashes without this patch):

    version(120);
    eval("function fe(s) { for (it[s] in this); }");
    try { fe('rdonly'); } catch (e) { print(e); }
2001-10-03 06:39:30 +00:00
gerv%gerv.net 2a80f3fea9 Oops. 2001-09-20 00:02:59 +00:00
scc%mozilla.org da68f3ed78 bug #98089: ripped new license 2001-09-19 22:39:41 +00:00
brendan%mozilla.org bbc01b505e Fix toSource on exception objects so it uses toSource to generate properly-quoted, embedded string literals for message and filename (bug 96284, r=jband, sr=shaver, a=asa). 2001-09-03 19:36:24 +00:00
brendan%mozilla.org e398ab1922 Forget to include jsopcode.h. 2001-08-22 05:33:32 +00:00
brendan%mozilla.org c892cc8306 Support ref()++ etc. for native ref (75688) and fix exn_toSource (96284); sr=shaver&jband. 2001-08-22 04:59:28 +00:00
rogerl%netscape.com a9500801d8 Fix bug #56868. sr=brendan,r=mccabe. Error object [[Class]] property. 2001-03-10 00:16:32 +00:00
rogerl%netscape.com 8b7f5ab4ea Fix for #60164, more failure testing during exception processing.
r=mccabe, a=brendan
2000-12-29 22:19:09 +00:00
rogerl%netscape.com bdb6266783 Bug #46196, a=brendan, r=mccabe. Fixed recursive death in out of memory
situation.
2000-10-13 22:11:52 +00:00
rginda%netscape.com 25a6903bfd add fileName and lineNumber to Error.prototype for bug #50447
r=a=brendan
2000-09-09 00:41:15 +00:00
brendan%mozilla.org 72259545ec Clean up JSObjectOps layering violations by adding mark and clear ops; JSClass gets a corresponding mark op so classes with unregistered roots in private data can mark them. The JS API gets a new JS_MarkGCThing entry point for JSObjectOps.mark implementors. Prerequisite check-in for bug 49816 and others (r=shaver). 2000-08-26 02:30:22 +00:00
brendan%mozilla.org 9d16e66aad Support lazy initialization of standard classes and their associated global functions/properties (46703, r=jband,rogerl). 2000-08-19 08:37:07 +00:00
brendan%mozilla.org eb7b547e77 Fix 22048 and 33391 (see bugs for details; r=jband@netscape.com). 2000-04-05 06:39:11 +00:00
brendan%mozilla.org f70f30872e - Eliminate ancient, bogus proxying of function object for its call objects (23346, r=jband@netscape.com).
- Tabs expanded as much as I could stand, without taking too much cvsblame.
2000-02-04 02:01:49 +00:00
mccabe%netscape.com 79ebcf1cfb Changes to allow Spider Monkey to be compiled under C++.
Courtesy Bill Gibbons <bill@gibbons.org>

His comments:

Here are the changes to JSRef to make it compile either as C or C++. Mostly the changes are to add missing casts (since C++ doesn't have implict conversion from void* to other pointer types nor implicit casts from ints to enumerations) plus a few random things like the use of "private" as a variable name.

There are a few other minor bug fixes; in particular:

  * A long statement with and'ed conditions is reformatted to make it easier to remove other builtin objects (e.g. Date).

  * A #if was added to jsscript.c for the JS_HAS_SCRIPT_OBJECT off case.

  * In jsmath a #ifdef was changed to #if.

My notes also mention...

  * jsobj.c should include jsopcode.h

  * jsfun.c - doesn't link if JS_HAS_ARGS_OBJECT is off

  * jsarray.c - a reference to js_ValueToSource should be conditional on JS_HAS_TOSOURCE

r=mccabe
2000-02-02 01:10:31 +00:00
brendan%mozilla.org aa5a0aa2f8 JS1.5 fixes (17290, 21618, plus shaver's 22243 fix, r=shaver@mozilla.org). 2000-01-18 11:06:05 +00:00
rogerl%netscape.com 77804d502b r=brendan
Bug #21799, uncaught throw of null crash.
1999-12-22 21:58:53 +00:00