Commit Graph

17890 Commits

Author SHA1 Message Date
Terrence Cole
389bd33824 Bug 721463 - Clean up and minimize marking interfaces; r=billm
Currently, the marking interfaces are a giant pile of duplicated and,
frequently, unused code. This patch reworks the interface to clean
up jsgcmark.h.

--HG--
extra : rebase_source : 34797ffbdc8940d3de312b650163910ad8b1b728
2012-01-24 19:34:44 -08:00
Igor Bukanov
18e6a2e079 bug 724310 - drop cx argument from JSObject field and fixed slots infallible API. r=:Waldo
--HG--
extra : rebase_source : b78519db2ff008eb5143676d2db47935f0e89f45
2012-02-05 21:07:23 +01:00
Igor Bukanov
eb3cfce3dc backout merge for bug 724310. r=irc 2012-02-09 21:28:22 +01:00
Jeff Walden
2a8d7c8ad8 Warning patrol. No bug, r=themaid
--HG--
extra : rebase_source : 1e5d09b39c41229086d25f3e0368441c7d9ce3f1
2012-02-09 11:43:52 -08:00
Jeff Walden
c6ffc920b9 Bug 722121 - Remove the last now-unnecessary uses of CheckRedeclaration from JSOP_GETTER/JSOP_SETTER, as syntactically we guarantee no conflicts are possible. r=jorendorff
--HG--
extra : rebase_source : f9b9bac41153cd269e3d9a4f02a4bd6f963b82fa
2012-01-28 23:13:12 -08:00
Jeff Walden
82fcdb3d6d Bug 722121 - Remove JSOP_DEFFUN_FC, because it can never be generated. r=jorendorff
--HG--
extra : rebase_source : 75d2fd13bfa2b706bbc6f82493b5bd23d241e8ce
2012-01-28 22:46:08 -08:00
Jeff Walden
b14e06d785 Bug 722121 - Remove uses of CheckRedeclaration from defvar/defconst. r=jorendorff
--HG--
extra : rebase_source : 01545432f592a4c9e1cf2a2df13ffd7c233e3733
2012-01-28 22:09:15 -08:00
Igor Bukanov
efe64d22c0 bug 723517 - drop cx argument from JSObject field and fixed slots infallible API. r=:Waldo
--HG--
extra : rebase_source : c461dfc0e0e0462ab262cc01c2a771d3bb0971cc
2012-02-05 21:07:23 +01:00
Terrence Cole
7f6fc99890 Bug 720439 - Generalize the Chunk allocator; r=igor
These are currently hard-coded to the size and alignment required by Chunk.
Since we will need almost identical allocators for the new Nursery and
WriteBuffer required for GenerationalGC, we should just generalize the
existing Chunk allocator.

--HG--
extra : rebase_source : 50995c0bf3b6f35c8b4fe64efc13a433174bdb3f
2012-01-23 14:43:01 -08:00
David Mandelin
0afa5c5bef Bug 725198: reuse js_DoubleToECMAInt32 for js_DoubleToECMAUint32, r=luke 2012-02-08 18:38:32 -08:00
Eddy Bruel
8a63434154 Bug 675694: add function to dump parse trees and use it in shell parse function, r=jorendorff 2012-02-08 17:21:33 -08:00
David Mandelin
eea808da03 No bug, mark slow test 2012-02-08 18:09:28 -08:00
Matt Brubeck
880578f17d Backed out changeset af0ab64cb947 (bug 675694) because of build failures 2012-02-08 17:36:53 -08:00
Eddy Bruel
e53c5d7bad Bug 675694: add function to dump parse trees and use it in shell parse function, r=jorendorff 2012-02-08 17:21:33 -08:00
David Mandelin
facc4ca21c Bug 714614: don't create call objects with duplicated property names, r=bhackett 2012-01-27 14:33:27 -08:00
Luke Wagner
ef13e7c1a3 Bug 725138 - tidy up Interpret with formalArg/localSlot (r=bhackett)
--HG--
extra : rebase_source : 86e6953be488b4554fc8570555015bcee14bf012
2012-02-03 00:11:31 -08:00
Luke Wagner
580c306331 Bug 725138 - tidy up vm/Stack code (r=bhackett)
--HG--
extra : rebase_source : fe97cc51ada12873577c87b111a1635242e5a9d0
2012-02-03 00:11:31 -08:00
Matthew Noorenberghe
ce54650923 Bug 294260 - Disable startup crash tracking in test profiles (toolkit.startup.max_resumed_crashes = -1) r=waldo,robcee
--HG--
extra : rebase_source : 6856629cc35106499f82753471ff77c2607a5e97
2012-02-03 18:31:31 -08:00
Luke Wagner
16e645bed7 Bug 723791 - remove now-unnecessary noteArgumentsPropertyAccess (r=jorendorff)
--HG--
extra : rebase_source : 66c7930d21f380a1ad885550239f20b890d24e78
2012-02-03 00:11:31 -08:00
Luke Wagner
a1ea9106b7 Bug 723791 - fun_getProperty needs a method barrier (r=jorendorff)
--HG--
extra : rebase_source : 3fea7a8d9f965e921bb2744b8588f241e2e7c843
2012-02-03 00:11:31 -08:00
Bobby Holley
29328b7b57 Bug 622301 - Remove now-obsolete 'callee' parameter. r=mrbkap 2012-02-07 18:06:41 -08:00
Bobby Holley
09d06adbcf Bug 622301 - Don't use XPCWrappedNative::GetWrappedNativeOfJSObject in quickstub unwrapping. r=mrbkap 2012-02-07 18:06:34 -08:00
Igor Bukanov
672b98ffbe bug 660441 - removal of cx parameter from IsAboutToBeFinalized. r=anygregor 2012-02-08 01:51:32 +01:00
Andrew McCreight
ed6da3301f Bug 696174 - Log JS heap at the same time as CC heap. r=bholley,smaug 2012-02-02 16:32:30 -08:00
Steve Fink
2fccb0fa71 Bug 712289 - Test alignment of jsval across C and C++. r=bz 2012-01-18 14:56:49 -08:00
Terrence Cole
a849842f9a Bug 724586 - Use modern tools to clean up obj_ToSource; r=Waldo
This patch replaces the fiddly strcat logic with StringBuilder usage and cleans
up the error handling control flow using RAII.

--HG--
extra : rebase_source : d42753a880a8d242627534cd5827075ea4a8966d
2012-02-07 10:39:58 -08:00
Igor Bukanov
249bae9bfd bug 724810 - storing finalizer in external strings directly. r=luke
--HG--
extra : rebase_source : d3222c685190bbdbe9446628f2f73f2a6f81eb11
2012-02-07 19:44:54 +01:00
Jason Orendorff
6ee843ce24 Bug 699565 - Part 6 - for-of loops on typed arrays. r=bhackett. 2012-02-07 12:57:17 -06:00
Jason Orendorff
c60fdff3f8 Bug 699565 - Part 5 - for-of loops on arguments objects. r=bhackett. 2012-02-07 12:57:17 -06:00
Jason Orendorff
4e6e2ddc69 Bug 699565 - Part 4 - for-of loops on array-like DOM object. r=bz. 2012-02-07 12:57:17 -06:00
Jason Orendorff
e1d9162904 Bug 699565 - Part 3 - for-of loops on wrappers. r=bhackett. 2012-02-07 12:57:16 -06:00
Jason Orendorff
16b68a169d Bug 699565 - Part 2 - for-of loops on arrays. r=bhackett. 2012-02-07 12:57:16 -06:00
Jason Orendorff
a466009da6 Bug 699565 - Part 1 - for-of loop basics. r=Waldo. 2012-02-07 12:57:16 -06:00
Marco Bonardo
3cb51695d8 Bug 722254 - Add an XPCOMUtils method to generate a singleton factory.
Use the new factory in Places js services, to ensure they can't be instanced multiple times.
r=bsmedberg
2012-02-07 10:17:42 +01:00
Marco Bonardo
e838bd311b Backout c0077ffef801 (bug 723806) for failures in xpcshell and m-oth tests 2012-02-07 10:16:58 +01:00
Makoto Kato
2e5b046a0f Bug 715849 - yasm and GNU as should add debug flag if MOZ_DEBUG_SYMBOLS=1. r=khuey 2012-02-07 15:06:28 +09:00
Jim Blandy
22c0fcc712 Bug 723806: Make JavaScript CTypes print function types correctly. r=bholley
This adds new tests, and also fixes existing CTypes tests that relied on
the bug's presence.
2012-02-06 21:18:42 -08:00
Nicholas Nethercote
ddd936d488 Bug 689583 - Add names for memory multi-reporters. r=jlebar.
--HG--
extra : rebase_source : adb3fb2cbbb8a07b60edd48c7dc9a3a4a4763b79
2012-02-06 17:02:59 -08:00
Brian Hackett
fa9f5b52f5 Tweak logic when analyzing properties of new scripts, bug 720380. r=dvander 2012-02-06 11:18:33 -08:00
Brian Hackett
ed7b0a906f Don't invoke __noSuchMethod__ on primitive lvalues in ICs, bug 721939. r=dvander 2012-02-06 10:49:31 -08:00
Andrew McCreight
e74e061086 Bug 724398 - specialize GCThingIsMarked to GRAY. r=billm 2012-02-05 19:43:35 -08:00
Nicholas Nethercote
aada2ed431 Bug 722609 - Rename the js-total memory reports. r=luke. 2012-01-30 20:03:29 -08:00
Nicholas Nethercote
a1ab9492f5 Bug 722595 - Add memory reporters for misc things hanging off JS objects. r=bhackett.
--HG--
extra : rebase_source : 211b35134923f4cb99625bb240b96e81f0f28b4b
2012-01-30 18:12:03 -08:00
Masatoshi Kimura
885fc84d72 Bug 723894 - Crash when Web IDL dictionary object is null; r=mrbkap 2012-02-05 18:57:46 +00:00
Tom Schuster
cb4581c9dd Bug 720675 - OOM Crash [@ JSString::isFlat] because of NULL deref for ensureFlat. r=bhackett 2012-02-05 11:32:12 +01:00
Panagiotis Koutsourakis
791aa57b19 Bug 702388 - Convert Makefiles to use |TEST_DIRS += foo| r=khuey
Files named Makefile.in containing the expression

DIRS += <foo>
or
DIRS = <foo>

inside the conditional expression

ifdef ENABLE_TESTS
...
endif

are changed to

TEST_DIRS += tests

outside any conditional expression.

The files

./layout/Makefile.in
./layout/Makefile.in
./layout/style/Makefile.in
./rdf/Makefile.in
./security/manager/Makefile.in
./content/Makefile.in
./content/smil/Makefile.in
./content/xul/templates/Makefile.in
./content/xul/content/Makefile.in
./content/base/Makefile.in
./content/media/Makefile.in
./parser/htmlparser/Makefile.in
./dom/sms/Makefile.in
./js/jsd/Makefile.in
./js/xpconnect/Makefile.in
./widget/Makefile.in
./widget/windows/Makefile.in
./Makefile.in
./startupcache/Makefile.in
./storage/Makefile.in
./gfx/Makefile.in
./intl/strres/Makefile.in
./intl/uconv/Makefile.in
./intl/unicharutil/Makefile.in
./intl/lwbrk/Makefile.in
./embedding/Makefile.in
./modules/libjar/Makefile.in
./modules/libpref/Makefile.in
./build/Makefile.in
./build/win32/Makefile.in
./xpcom/Makefile.in
./extensions/spellcheck/hunspell/Makefile.in
./extensions/cookie/Makefile.in
./netwerk/Makefile.in
./netwerk/streamconv/Makefile.in
./editor/txmgr/Makefile.in
./toolkit/mozapps/shared/Makefile.in
./toolkit/mozapps/update/Makefile.in
./toolkit/library/Makefile.in
./toolkit/library/Makefile.in
./toolkit/crashreporter/Makefile.in
./toolkit/components/perf/Makefile.in
./toolkit/components/perf/Makefile.in
./toolkit/components/feeds/Makefile.in
./toolkit/components/url-classifier/Makefile.in

contain the string

ifdef ENABLE_TESTS

but have some other statement inside (e.g. TOOL_DIRS += <foo> etc) and
they remain unchanged by this patch.
2012-02-04 17:32:24 +00:00
Igor Bukanov
afb57a37a5 bug 723517 - Drop cx argumrent from JS_GetClass(cx, obj). r=luke 2012-02-04 01:54:57 +01:00
David Mandelin
c3adffee41 Bug 723728: use calloc again in allocateArrayBufferSlots because it's faster, r=jwalden 2012-02-03 15:02:39 -08:00
David Mandelin
02ff01199a Bug 714616 followup: add assertions to moveDenseArrayElements unbarriered, r=billm 2012-02-03 13:47:39 -08:00
Terrence Cole
ade66a269c Bug 716069 - Add missing post barriers to newObjectFromHit; r=billm
When we copy in the new object, we need to trigger barriers on the shape and
type pointers.  Note: all value immediates in the object are guaranteed to be
uninitialized.
2012-01-12 19:03:25 -08:00