30 Commits

Author SHA1 Message Date
reed%reedloden.com
96bf80ec88 Bug 421947 - "More C++ casts required for Windows only, especially overloaded pow() and log10()" [p=benjamin@smedbergs.us (Benjamin Smedberg [bsmedberg]) r=crowder a1.9=damons]
git-svn-id: svn://10.0.0.236/trunk@247529 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-11 08:09:41 +00:00
reed%reedloden.com
1cb7930cdd Bug 414963 - "C++ warnings in jsnum.c, jsutil.c (with g++ -Wconversion)" [p=jorendorff@mozilla.com (Jason Orendorff) r+a1.9=brendan]
git-svn-id: svn://10.0.0.236/trunk@245044 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-06 21:34:51 +00:00
brendan%mozilla.org
efa68f7304 Fixes and improvements for property instrumentation (411630, r=igor).
* Menu of -D flags for enabling instrumentation, as a commented-out CFLAGS +=
  setting for convenient testing.
* js_FindProperty and js_LookupPropertyWithFlags return indexes into the scope
  and prototype chains, respectively, to support internal instrumentation, and
  to pave the way for the return of the property cache (bug 365851)..
* jsutil.[ch] JSBasicStats struct and functions for computing mean/sigma/max
  and auto-scaling histogram.
* JS_SCOPE_DEPTH_METER instrumentation for compile- and run-time scope chain
  length instrumentation:
+ At compile time, rt->hostenvScopeDepthStats and rt->lexicalScopeDepthStats
  meter scope chains passed into the compile and evaluate APIs.
+ At runtime, rt->protoLookupDepthStats and rt->scopeSearchDepthStats track
  steps along the prototype and scope chains until the sought-after property
  is found.
* JS_ARENAMETER uses JSBasicStats now.
* Added rt->liveScopePropsPreSweep to fix the property tree stats code that
  rotted when property tree sweeping moved to after the finalization phase.
* Un-bitrotted some DEBUG_brendan code, turned some off for myself via XXX.
* Mac OS X toolchain requires initialized data shared across dynamic library
  member files, outlaws common data, so initialize extern metering vars.
* Old HASHMETER code in jshash.[ch] is now JS_HASHMETER-controlled and based
  on JSBasicStats.
* DEBUG_scopemeters macro renamed JS_DUMP_SCOPE_METERS; uses JSBasicStats now.
* Disentangle DEBUG and DUMP_SCOPE_STATS (now JS_DUMP_PROPTREE_STATS) and fix
  inconsistent thread safety for liveScopeProps (sometimes atomic-incremented,
  sometimes runtime-locked).
* Compiler-modeled maxScopeDepth will propagate via JSScript to runtime for
  capability-based, interpreter-inlined cache hit qualifier bits, to bypass
  scope and prototype chain lookup by optimizing for common monomorphic get,
  set, and call site referencing a prototype property in a well-named object
  (no shadowing or mutation in 99.9% of the cases).


git-svn-id: svn://10.0.0.236/trunk@242973 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-13 00:31:32 +00:00
bclary%bclary.com
bac62b5db9 Force JS_Assert to exit with code 3 on Windows, debug only, r=mrbkap,sr=brendan, bug 345118
git-svn-id: svn://10.0.0.236/trunk@203712 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-26 02:38:58 +00:00
brendan%mozilla.org
daace8aae1 White space police state attack.
git-svn-id: svn://10.0.0.236/trunk@200371 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-19 23:38:02 +00:00
dbaron%dbaron.org
c4c9b3f3da Fix C++ comments that I introduced.
git-svn-id: svn://10.0.0.236/trunk@192911 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-24 08:32:09 +00:00
dbaron%dbaron.org
ee0c4c2b8e Workaround brokenness of __builtin_frame_address(0) on gcc 4.1 (as shipped with FC5, at least). b=331436 r=brendan
git-svn-id: svn://10.0.0.236/trunk@192881 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-23 23:21:27 +00:00
dbaron%dbaron.org
f92b553d1b Use __builtin_frame_address instead of setjmp to get the frame pointer. b=323853 r=brendan
git-svn-id: svn://10.0.0.236/trunk@192599 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-19 01:27:17 +00:00
mrbkap%gmail.com
15a7920b70 bug 308395: Give gdb a fighting chance in catching JS_Asserts by sending an "int $3" before abort()ing. r=brendan
git-svn-id: svn://10.0.0.236/trunk@180217 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-14 17:30:10 +00:00
joshmoz%gmail.com
fd91dae49d remove XP_MAC stuff from js. b=281889 r=brendan a=brendan
git-svn-id: svn://10.0.0.236/trunk@175790 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-07 22:35:40 +00:00
brendan%mozilla.org
4c0635a125 Back out, broke liveconnect at least.
git-svn-id: svn://10.0.0.236/trunk@167288 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-05 03:58:19 +00:00
brendan%mozilla.org
7a816352a4 Revamp the GC to fix E4X private data dueling GC bugs, to reduce malloc costs for small-ish objects and functions, and to pave the way for further GC wins (123668, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@167286 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-05 02:56:36 +00:00
brendan%mozilla.org
036b7c131b E4X, configured off, code-complete.
git-svn-id: svn://10.0.0.236/trunk@165420 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-17 07:43:01 +00:00
timeless%mozdev.org
4276d3af21 Bug 123584 JavaScript engine should use malloc/realloc/free consistently
Replace JS_DELETE with free/JS_smprintf_free
r=rogerl


git-svn-id: svn://10.0.0.236/trunk@153211 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-25 13:33:42 +00:00
gerv%gerv.net
123c4a9492 Bug 205418 - Relicense Spidermonkey (js/src) to MPL/LGPL/GPL. Patch by gerv; r,a=brendan.
git-svn-id: svn://10.0.0.236/trunk@149331 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-15 00:11:16 +00:00
mkaply%us.ibm.com
da4cdd7619 rs=leaf
Remove XP_OS2_VACPP from the tree


git-svn-id: svn://10.0.0.236/trunk@145083 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-22 21:08:40 +00:00
mkaply%us.ibm.com
6b6c9782b6 rs=leaf
Remove XP_OS2_VACPP from the tree


git-svn-id: svn://10.0.0.236/trunk@145081 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-22 20:29:43 +00:00
timeless%mac.com
69ae314807 Bug 106386 rid source of misspellings
r=db48x sr=blake a=asa


git-svn-id: svn://10.0.0.236/trunk@116832 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-19 04:30:17 +00:00
brendan%mozilla.org
789f2defb4 Simplify #ifdefs in JS_Assert to default to fprintf (45673, debug only, r=rogerl, sr=me, patch from jband).
git-svn-id: svn://10.0.0.236/trunk@112312 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 05:17:58 +00:00
gerv%gerv.net
ae1d5501a1 Oops.
git-svn-id: svn://10.0.0.236/trunk@103236 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-20 00:02:59 +00:00
scc%mozilla.org
2281a4d137 bug #98089: ripped new license
git-svn-id: svn://10.0.0.236/trunk@103230 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-19 22:39:41 +00:00
brendan%mozilla.org
ab0195b1ab Include jsstddef.h first in all js*.c files (r=tlundeen@webcrossing.com).
git-svn-id: svn://10.0.0.236/trunk@70342 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-17 06:24:45 +00:00
mkaply%us.ibm.com
fac3e5b39a # 34082
r= rogerl
OS/2 bring up continues - support for debugging asserts on OS/2


git-svn-id: svn://10.0.0.236/trunk@67957 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-02 23:18:32 +00:00
brendan%mozilla.org
66bc1e6c09 Clean up ugly whitespace, some of which survived my r=brendan comments.
git-svn-id: svn://10.0.0.236/trunk@65282 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-05 02:17:38 +00:00
mccabe%netscape.com
7113e5b3ae 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


git-svn-id: svn://10.0.0.236/trunk@59455 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 01:10:31 +00:00
jband%netscape.com
170ebb1f69 fixup the exported api declarations to use JS_PUBLIC_API in a consistent fashion r=mccabe
git-svn-id: svn://10.0.0.236/trunk@54224 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-23 01:02:28 +00:00
dmose%mozilla.org
ec2434440d update license boilerplate to NPL-1.1 dual-licensed with the GPL. a=brendan, r=brendan.
git-svn-id: svn://10.0.0.236/trunk@49258 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 23:12:09 +00:00
fur%netscape.com
3c23c30dbf In my haste to fix a busted Mac build, I checked in some copy-n-pasted C++ comments. Oops.
git-svn-id: svn://10.0.0.236/trunk@12804 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-14 15:25:07 +00:00
fur%netscape.com
8e51f4d46e Added jsutil.c, necessary for debug builds.
git-svn-id: svn://10.0.0.236/trunk@12800 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-14 13:12:12 +00:00
fur%netscape.com
e655606d45 Checkpoint JS1.4 from JS_STABLE_10131998_BRANCH. Changes include:
+ merging of js/src and js/ref
 + elimination of most dependencies on NSPR
 + JS1.4 feature additions and accumulated bug fixes

More details are in last week's mozilla status report.


git-svn-id: svn://10.0.0.236/trunk@12797 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-14 10:22:38 +00:00