Commit Graph

31368 Commits

Author SHA1 Message Date
Luke Wagner
90c4cc3118 Bug 961318 - Tweak off-main-thread parsing heuristic to avoid delaying execution when an atoms-zone GC is in progress (r=billm)
--HG--
extra : rebase_source : aa831d41e1b04062e208d5c36697da1f5e1c7d07
2014-01-20 18:00:18 -06:00
Andrew McCreight
f4d046aa36 Bug 960775 - Retire JS_WARN_UNUSED_RESULT in favor of MOZ_WARN_UNUSED_RESULT. r=waldo 2014-01-21 17:56:16 -08:00
Andrew McCreight
e09600e29f Bug 961551, part 9 - Split scope of |wrapper|, plus other cleanup. r=bholley 2014-01-21 17:56:16 -08:00
Andrew McCreight
f9e241decc Bug 961551, part 8 - Use the code at the end of XPCWJS::GetNewOrUsed to build a new root wrapper. r=bholley
The code at the end of nsXPCWrappedJS::GetNewOrUsed will now correctly
construct a root wrapper when |root == nullptr|, so we can consolidate
the two places that construct |wrapper|.
2014-01-21 17:56:16 -08:00
Andrew McCreight
3ca1e1b491 Bug 961551, part 7 - Smart pointerize rootClasp. r=bholley
Also, move the declaration of |clasp| down to where it is used.
2014-01-21 17:56:16 -08:00
Andrew McCreight
56a8074ebd Bug 961551, part 6 - Smart pointerize wrapper. r=bholley 2014-01-21 17:56:15 -08:00
Andrew McCreight
e21cccb62b Bug 961551, part 5 - Smart pointerize root. r=bholley 2014-01-21 17:56:15 -08:00
Andrew McCreight
dce295db38 Bug 961551, part 4 - Remove release_root from XPCWJS::GetNewOrUsed. r=bholley
GetNewOrUsed now always releases |root| when |root| is non-null, so
release_root can be eliminated.
2014-01-21 17:56:15 -08:00
Andrew McCreight
e217280391 Bug 961551, part 3 - Hold a strong ref to the root that is the result of Find in XPCWJS::GNOU. r=bholley
This is trickier than it looks, because this change causes additional
refcount traffic on |root| in the case where FindOrFindInherited
succeeds. This is potentially bad because if a WJS has a refcount of 1,
and no weak references to it, then if it goes to a refcount of 2 then
back to 1 it will be deleted.  A WJS can get in this state if it
is a root with a refcount of 2, and has a weak reference, then
its refcount drops to 1, then later the weak reference goes away.

However, in this case, there can be no other WJS in the chain,
or the refcount would be greater than 1, so FindOrFindInherited
must end up returning |root|, so |wrapper == root|, and the
assignment to |wrapper| will make root go to a refcount of 3,
so the release of |root| on exit will only cause the refcount to
go to 2, so |root| won't be deleted.
2014-01-21 17:56:15 -08:00
Andrew McCreight
8bb0cff1fc Bug 961551, part 2 - Move addref out of XPCWrappedJS ctor. r=bholley
This paves the way for smart pointerization.
2014-01-21 17:56:15 -08:00
Andrew McCreight
7219645381 Bug 961551, part 1 - Add root wrappers to the map in XPCWrappedJS ctor. r=bholley 2014-01-21 17:56:15 -08:00
Wes Kocher
683a2b06e2 Backed out 2 changesets (bug 948583) on a CLOSED TREE
Backed out changeset 3807c2bc06a2 (bug 948583)
Backed out changeset 64d44d0d790c
2014-01-21 16:53:05 -08:00
Wes Kocher
6706276dce Backed out 1 changesets (bug 948583) for potential PGO bustage on a CLOSED TREE
Backed out changeset 49700610a9b7 (bug 948583)
2014-01-21 16:52:55 -08:00
Jeff Walden
40c3f74739 Followup fix to bug 948583, r=typo. :-(
--HG--
extra : rebase_source : f5279bb1df08ab03496e5b87765ca850b573a287
2014-01-21 18:19:46 -05:00
Jeff Walden
fe83d10b89 Bug 948583 - Implement __proto__ in object literals using a new JSOp. The JSOp still uses setprop-like behavior to mutate the [[Prototype]]; we'll change that in a subsequent patch, coming probably in the next couple weeks. r=jorendorff, r=efaust 2013-12-11 16:03:57 -08:00
Jeff Walden
91f2bd361f Replace a few manual JSPropertySpec[] terminators with JS_PS_END. No bug, r=trivial 2014-01-09 15:54:54 -06:00
Luke Wagner
3a24b74ad5 Bug 961969 - Assert that all shapes in a lineage have the same numFixedSlots (r=billm)
--HG--
extra : rebase_source : 044a5e199bca060f6f854a8f01b9d48970c0e3db
2014-01-21 16:25:37 -06:00
Luke Wagner
1fd07c86e1 Bug 961969 - Include nfixed in StackShape's key (r=billm) 2014-01-21 14:03:31 -06:00
Shu-yu Guo
7ea5c3c8a6 Bug 958980 - Stop Debugger from exposing partially initialized JSScripts. (r=jorendorff) 2014-01-21 10:59:05 -08:00
Donovan Preston
33bb76a5a8 Bug 958108 - Remove delayload from some DLLs on windows because it was causing webapps to hang at startup. r=glandium 2014-01-21 13:53:48 -05:00
Andy Wingo
a2751433de Bug 960040 - Part 5: Fix style error (unreviewed cleanup). CLOSED TREE 2014-01-21 18:30:36 +01:00
Andy Wingo
ad8ee061c5 Bug 960040 - Part 4: Refactor state management of analysis. r=jandem 2014-01-21 14:21:26 +01:00
Andy Wingo
eadd14d32d Bug 960040 - Part 3: Refactor OOM handling. r=jandem 2014-01-21 14:21:07 +01:00
Andy Wingo
54f9053623 Bug 960040 - Part 2: Hide more of ScriptAnalysis implementation. r=jandem 2014-01-21 14:09:34 +01:00
Andy Wingo
15adc93989 Bug 960040 - Part 1: Prune unused interfaces and code from ScriptAnalysis. r=jandem 2014-01-21 11:47:08 +01:00
Jan Beich
c06ad17e6e Bug 959477 - Fix typo in OS_TARGET when cross-compiling GNU/kFreeBSD. r=glandium 2014-01-21 11:40:21 -05:00
Jan Beich
20365c091b Bug 959477 - Assign correct OS_ARCH and OS_TARGET when cross-compiling on BSDs. r=glandium 2014-01-21 11:40:20 -05:00
Bobby Holley
cd58405598 Bug 958324 - Remove SOW-transplant-related fixup. r=peterv
This became obsolete with bug 922009.
2014-01-21 08:26:41 -08:00
Bobby Holley
1fc0abe0bc Bug 958324 - Remove same-compartment security wrappers for WNs. r=peterv,r=mrbkap
We've fixed Components, and SOWs are new-binding only. Youpie!
2014-01-21 08:26:40 -08:00
Bobby Holley
b9bffb1af9 Bug 961054 - Don't invoke SetLastResult until the completion of an XPCWN method call. r=mrbkap 2014-01-21 08:25:29 -08:00
Nathan Froyd
5857f3e5b9 Bug 961761 - move to static_assert for JSJitInfo; r=efaust 2014-01-20 11:07:28 -05:00
Jon Coppeard
64053bce53 Bug 961095 - Improve generic callbacks with better typing, and by only adding storebuffer entries when the key is in the nursery r=terrence 2014-01-21 10:44:39 +00:00
Jon Coppeard
456f7be7d1 Bug 957088 - Use && rather than and in #if directives r=terrence 2014-01-21 10:44:38 +00:00
Carsten "Tomcat" Book
6681ed859c Backed out changeset 17220466f40b (bug 960458) for bustages on windows on a CLOSED TREE 2014-01-21 11:35:27 +01:00
Marco Bonardo
09975f277d Bug 960458 - cl.py doesn't properly parse showIncludes prefix on some localized versions. r=glandium 2014-01-21 10:54:17 +01:00
Nathan Froyd
91f7b2222d Backout dc82a01d0cfe (bug 961318) for various JavaScript test failures on this CLOSED TREE 2014-01-20 20:09:59 -05:00
Luke Wagner
d5fde93cb3 Bug 961318 - Tweak off-main-thread parsing heuristic to avoid delaying execution when an atoms-zone GC is in progress (r=billm)
--HG--
extra : rebase_source : bd4e6b296e7a02dbe2370a515174dcd1a6a57ffa
2014-01-20 18:00:18 -06:00
Andrea Marchesini
06f3df72fa Bug 958816 - UUIDs updated to make strings in nsIStackFrame API sane CLOSED TREE 2014-01-20 18:47:35 +01:00
Andrea Marchesini
db2fa96fac Bug 958816 - Make strings in nsIStackFrame API sane, r=bz 2014-01-20 17:51:41 +01:00
Benjamin Bouvier
09ffc292e7 Bug 958381: Make comparisons with float32 aware of the need of a coercion; r=sstangl
--HG--
extra : rebase_source : ea5c1398759e872b4b003347932259e17cb746f6
extra : amend_source : d322b83230eef8330023afbfe8b5c400dc57ec65
2014-01-13 19:21:39 +01:00
Dan Minor
067ec263fa Bug 959156 - Jit-test basic\bug839215.js OOMs on Windows test machines; r=terrence 2014-01-20 11:16:04 -05:00
Jan de Mooij
ae199cb959 Bug 921571 - Fix SetElementIC dense element stub to work with double arrays. r=shu 2014-01-20 11:10:15 +01:00
Ms2ger
437f4d6ea7 Merge latest PGO-green changeset from inbound to central. 2014-01-20 09:30:38 +01:00
Ms2ger
24d947ef8f Bug 956553 - Remove js::IdToJsval in favour of js::IdToValue; r=luke 2014-01-20 08:58:27 +01:00
Ms2ger
9988c0aff8 Bug 937952 - Replace JS_ROTATE_LEFT32 with mozilla::RotateLeft; r=Waldo 2014-01-20 08:58:26 +01:00
Ms2ger
65bd3f60cd Bug 953425 - Part b: Move DOMFileMetadataParameters to WebIDL; r=janv 2014-01-20 08:58:24 +01:00
Mike Hommey
83c116b78a Bug 958404 - Recurse icu from top-level when building js. r=gps 2014-01-20 09:13:06 +09:00
Mike Hommey
231e76edbd Bug 958404 - Recurse ffi from top-level when building js. r=gps 2014-01-20 09:11:55 +09:00
Mike Hommey
5cb8d003cb Bug 958404 - Recurse mfbt from top-level when building js standalone. r=gps 2014-01-20 09:11:45 +09:00
Douglas Crosher
774e60a155 Bug 952810 - Ionmonkey ARM: Fix a corner case, out of bounds array reference, in isNextBranch. r=mjrosenb 2013-12-22 22:28:50 +11:00