Commit Graph

59 Commits

Author SHA1 Message Date
Chris Leary
f1e0113af3 Bug 649576: Extricate JSHashTable from JSAtomList death grip. (r=luke) 2011-06-24 14:22:30 -07:00
Jeff Walden
661571d30c Bug 662001 - Move js::RangeCheckedPointer<T> to mozilla::RangedPtr<T>, make it no longer implicitly convert to T*, and adjust users accordingly. r=cjones 2011-06-06 11:02:34 -07:00
Bill McCloskey
78b84724cc Bug 640265 - Don't GC during OOM reporting (r=dmandelin) 2011-05-17 11:23:31 -07:00
Chris Jones
d737e982f8 Bug 642381, part 3: Hoist Maybe into mfbt and eliminate Gecko's use of jstl. r=jorendorff,luke 2011-04-28 17:48:52 -05:00
Chris Jones
91abf226cc Bug 642381, part 2: Rename LazilyConstructed to Maybe. r=luke 2011-04-28 17:48:51 -05:00
Chris Jones
17bacd3dcf Bug 642381, part 1: Remove js::Conditionally. r=luke 2011-04-28 17:48:51 -05:00
Igor Bukanov
6a31362caa bug 646044 - ContextAllocPolicy should not account for GC memory pressure. r=luke 2011-03-30 12:10:12 +02:00
Luke Wagner
e822edbad3 Bug 602994 - Preparatory syntactic cleanup (r=waldo) 2011-04-08 10:52:48 -07:00
Jeff Walden
b37793b94b Bug 589664 - Rewrite the JSON parser. r=njn, anticipating more review but getting it in-tree now for simplicity, even if more changes need to be made later 2011-03-23 16:34:53 -07:00
Jeff Walden
f2d6be37a7 Bug 645205 - Implement RangeCheckedPointer<T>, a smart pointer restricted to a range defined at construction. r=luke 2011-03-28 19:27:02 -07:00
Paul Biggar
cfb2a6aebf Bug 643548: Remove mozalloc_undef_macro_wrappers hack from JS engine. (r=luke,rs=brendan)
mozalloc_undef_macro_wrappers are brittle and have side-effects that are hard
to debug and fix. The alternative is the just stick an underscore on the end of
malloc, free, etc, which is a comparatively small burden.
2011-03-31 01:14:12 -07:00
Paul Biggar
1b17519a11 Bug 634155: Account for NewCompartment's memory, and change allocation APIs (r=nnethercote)
This changes the allocation API, in the following way:

  js_malloc -> {cx->,rt->,OffTheBooks::}malloc
  js_calloc -> {cx->,rt->,OffTheBooks::}calloc
  js_realloc -> {cx->,rt->,OffTheBooks::}realloc
  js_free -> {cx->,rt->,Foreground::,UnwantedForeground::}free
  js_new -> {cx->,rt->,OffTheBooks::}new_
  js_new_array -> {cx->,rt->,OffTheBooks::}new_array
  js_delete -> {cx->,rt->,Foreground::,UnwantedForeground::}delete_

This is to move as many allocations as possible through a JSContext (so that they may be aken into account by gcMallocBytes) and to move as many deallocations to the background as possible (except on error paths).
2011-03-31 01:13:49 -07:00
Bill McCloskey
cc5230b13c Bug 569422 - Remove unions from GC (r=luke) 2011-03-23 11:57:27 -07:00
Chris Leary
6d3d057a2b Bug 614155: Lazily construct toSource cache. (r=lw)
--HG--
extra : rebase_source : cbf922c5ce45b7d656ef3fdbd4c872a4ff82aacc
2011-03-03 15:28:25 -08:00
Chris Leary
658350fa6f Backed out changeset 62a979cc89a2 due to risk (bug 614155). 2011-02-16 13:33:08 -08:00
Chris Leary
4d67bb4c5f Bug 614155: free memory for source cache on GC. (r=lw) 2011-02-16 10:17:49 -08:00
Jason Orendorff
579101c106 Bug 627984 - Tighten up assertions in JSObject::methodReadBarrier. r=brendan. 2011-02-08 16:09:33 -06:00
Luke Wagner
9abddb6362 Bug 620640 - Allow there to be more than 1 pending global slot to set (r=jorendorff)
--HG--
extra : rebase_source : 72562e0a3868f8cb65918c3c23f42d364e43ce41
2011-01-11 15:19:57 -08:00
Peter Van der Beken
a6974efb9d Fix for bug 590612 (Speed up js-wrapping in classinfo when we already have a wrapper). r=bz, a=jst. 2010-08-28 10:04:25 +02:00
Nicholas Nethercote
8f3b74f521 Bug 602703 - TM: create a layer over Nanojit's LIR creation API. r=lw. 2010-10-28 18:28:36 -07:00
Brian Hackett
55b397bc07 Header changes for sixgill, annotations. bug 601129, r=jorendorff 2010-10-01 21:00:55 -07:00
Luke Wagner
dc78a5f3d3 Bug 539144 - Make formal args a jit-time const offset from fp; rm argv/argc/thisv/script/callobj (r=brendan,dvander) 2010-08-09 22:43:33 -07:00
Boris Zbarsky
fc0023797e Bug 580167 part 2. Add a construct() signature with 4 args for js::LazilyConstructed. r=lw 2010-08-25 14:54:47 -04:00
Chris Leary
c74d167ece Bug 564953: Port YARR! Lands macroassembler. (r=gal) 2010-08-11 13:30:07 -07:00
Luke Wagner
ada72fc13f Fix bustage; don't #include jstl.h from jsvalue.h, it messes up the mozalloc wrapper ritual
--HG--
extra : rebase_source : ac82f78d3d34a8d58d28d7e556ae4fd516fc83d5
2010-08-09 13:59:28 -07:00
Luke Wagner
7371ad00ed Bug 549143 - fatvals 2010-07-14 23:19:36 -07:00
Robert Sayre
9a38941e65 Fix bustage from jetpack including jstl on Windows. 2010-06-30 16:07:53 -07:00
Jason Orendorff
c79641e0db Bug 563099 - Compartments and wrappers API. r=gal.
--HG--
extra : rebase_source : cb34d0d0fc689fc6401d67e7f719344cd8e27655
2010-06-23 16:35:10 -05:00
Luke Wagner
44cea573ae Bug 567530 - silence strict-aliasing warnings on threadsafe opt builds (r=igor) 2010-06-02 10:03:36 -07:00
Ben Newman
54bf4c3b11 Bug 560412 - Publicly expose the values of LazilyConstructed<T> objects. r=lw 2010-04-20 14:05:39 -07:00
Luke Wagner
cee0b0e04e Use uint64 instead of JSUint64 to fix changeset 5b1c7bc8783e (rs=brendan) 2010-04-19 18:19:27 -07:00
Luke Wagner
8b6ec43798 Fix Windows bustage from changeset 5b1c7bc8783e 2010-04-19 16:21:12 -07:00
Luke Wagner
ee07742078 Bug 558410 - silence strict aliasing warnings (r=jorendorff)
--HG--
extra : rebase_source : c6cad8a5461e685f31f5959aa69635be57c807d4
2010-04-19 13:08:19 -07:00
Mike Moening
0c4a60c68a Bug 559067 - Silence MSVC warnings in js/src. r=jorendorff 2010-04-16 16:00:51 -05:00
Mike Moening
16d0ed8f28 Bug 549532 - Allow custom memory allocator use in spidermonkey. Part 1. r=dvander. 2010-04-16 15:03:53 -04:00
Robert Sayre
10865b24dd Backed out changeset c9faf5a2bc75 2010-04-13 18:15:20 -04:00
Mike Moenig
ea63af8267 [JAEGER] Allow custom memory allocator use in spidermonkey (bug 549532, r=dvander). 2010-04-12 18:51:25 -07:00
Jason Orendorff
447564b524 Bug 553671 part 4 - RAII for JS_{LOCK,UNLOCK}_GC and JS_{KEEP,UNKEEP}_ATOMS. r=luke.
--HG--
extra : rebase_source : dfdfcdd3a602e12de1836068e2c9f16fce46d7b2
2010-04-08 07:54:18 -05:00
Luke Wagner
3819697f51 Vector::resize should initialize new elements always; fixes AutoValueVector bug (r=Waldo) 2010-04-06 16:40:49 -07:00
Luke Wagner
55d306e096 Bug 557270 - on s390 pointers are 31-bits, have JS_CEILING_LOG2W use size_t instead of JSUword (r=brendan)
--HG--
extra : rebase_source : cf0f82a63a0d36f84470bfd1aa99c2917cbc5c95
2010-04-06 16:10:54 -07:00
Jeff Walden
ff2fe48d4b Realign to 64-bit, since pointers won't be sufficient for that on 32-bit systems. 2010-03-30 14:14:47 -07:00
Jeff Walden
4808f10301 Readd changes to nsJSEnvironment.{cpp,h}, and adjust js::LazilyConstructed so as to force pointer alignment on the theory that's what was wrong.
--HG--
extra : rebase_source : 2215152cf0f03dbb69e49e9adb49979a72294620
2010-03-29 22:51:52 -07:00
David Anderson
87abf06097 Backed out changeset 04023ea0fb08. 2010-03-11 12:19:36 -08:00
Mike Moenig
45318fdaaa Allow custom allocator use in SpiderMonkey (bug 549532, r=dvander). 2010-03-10 21:02:18 -08:00
Luke Wagner
c78f4378e4 Bug 551276 - a more type-safe way to zero memory (r=Waldo)
--HG--
extra : rebase_source : fc5564c34cde6490a1d3b48a16a451f7e50c052a
2010-03-10 15:34:12 -08:00
Luke Wagner
c1e0163b6c Silence MSVC warning about no default assignment operator (r=me) 2010-03-04 23:30:28 -08:00
Luke Wagner
fd548dd27a Bug 515812 - fix hash table constiness (r=dvander) 2010-02-19 10:02:16 -08:00
Luke Wagner
3c11c19d98 Fix warnings, HashTable::sSizeLimit, tl::NBitMask (r=njn) 2010-02-15 16:07:57 -08:00
Luke Wagner
edf0e8091b Try 784ceadd60e5 again with more #pragma optimize("", off) 2010-02-06 10:14:05 -08:00
Luke Wagner
37ef23190f Backout 784ceadd60e5 until PGO stops crashing 2010-02-08 10:28:07 -08:00