Commit Graph

4328 Commits

Author SHA1 Message Date
Tom Schuster
43324bd36f Bug 1125437 - Get rid of SetPropertyAttributes and use DefineProperty to follow ES6 specification. r=efaust 2015-02-11 23:40:47 +01:00
Nicholas Nethercote
3a7b0a9f57 Bug 1131901 (part 1) - Make PL_DHashTableAdd() infallible by default, and add a fallible alternative. r=froydnj.
I kept all the existing PL_DHashTableAdd() calls fallible, in order to be
conservative, except for the ones in nsAtomTable.cpp which already were
followed immediately by an abort on failure.

--HG--
extra : rebase_source : 526d96ab65e4d7d71197b90d086d19fbdd79b7b5
2015-02-02 14:48:58 -08:00
Nicholas Nethercote
63e3218e4c Back out changesets 2fcef6b54be7, 2be07829fefc, 66dfe37b8532, df3fcd2be8fd, 0a436bce77a6 (bug 1050035) for causing intermittent crashes and assertion failures.
--HG--
extra : rebase_source : eb30be83c3143c6c203585a80a18f180025efaba
2015-02-10 14:39:49 -08:00
Tom Schuster
fcb11bbe71 Bug 1131003 - Move jsproxy.h to js/Proxy.h. r=efaust
--HG--
rename : js/src/jsproxy.h => js/public/Proxy.h
2015-02-10 19:58:18 +01:00
Bob Owen
15061e2136 Bug 1094953: Ensure that GetGlobalJSObject on the native global does not return null in nsXPCWrappedJSClass::DelegatedQueryInterface. r=bholley 2015-02-09 19:55:57 +00:00
Ryan VanderMeulen
4e69725665 Backed out 7 changesets (bug 1117242) for mochitest failures.
Backed out changeset 694f7ac58964 (bug 1117242)
Backed out changeset b3f8122dd990 (bug 1117242)
Backed out changeset 442d41779bd8 (bug 1117242)
Backed out changeset ccf6dfe1ac75 (bug 1117242)
Backed out changeset 86421767cd26 (bug 1117242)
Backed out changeset 2f996950fb2f (bug 1117242)
Backed out changeset 4414e9d0b66b (bug 1117242)

CLOSED TREE
2015-02-06 13:40:53 -05:00
Nick Fitzgerald
26ceac32de Bug 1117242 - Part 5: Implement xray support for SavedFrame; r=bholley 2015-02-06 09:15:01 -08:00
Bobby Holley
2bbc2b39d3 Bug 1126911 - Tests. r=gabor 2015-02-05 11:07:40 -08:00
Bobby Holley
e8247b28ad Bug 1126911 - Special-case all chrome objects in wrapper selection. r=gabor 2015-02-05 11:07:40 -08:00
Bobby Holley
f10144e7c3 Bug 1126911 - Fix rest of test suite. r=gabor 2015-02-05 11:07:40 -08:00
Jan de Mooij
1e8c1994e1 Bug 1125784 - Remove JS_ConvertArguments and JS_ConvertValue. r=jorendorff 2015-02-05 12:01:11 +01:00
Nicholas Nethercote
b5913e0b3d Bug 1050035 (part 4) - Make PL_DHashTableAdd() infallible by default, and add a fallible alternative. r=froydnj.
I kept all the existing PL_DHashTableAdd() calls fallible, in order to be
conservative, except for the ones in nsAtomTable.cpp which already were
followed immediately by an abort on failure.

--HG--
extra : rebase_source : eeba14d732077ef2e412f4caca852de6b6b85f55
2015-02-02 14:48:58 -08:00
Nicholas Nethercote
f325953043 Bug 1050035 (part 3) - Remove PL_NewDHashTable() and PL_DHashTableDestroy(). r=froydnj.
Because they are now just equivalent to |new PLDHashTable()| +
PL_DHashTableInit() and PL_DHashTableFinish(t) + |delete t|, respectively.

They're only used in a handful of places and obscure things more than they
clarify -- I only recently worked out exactly how they different from Init()
and Finish().

--HG--
extra : rebase_source : c958491447523becff3e01de45a5d2d227d1ecd3
2015-02-01 20:36:52 -08:00
Nicholas Nethercote
9a36fdbde4 Bug 1050035 (part 2) - Remove the fallible version of PL_DHashTableInit(). r=froydnj,mrbkap.
Because it's no longer needed now that entry storage isn't allocated there.
(The other possible causes of failures are much less interesting and simply
crashing is a reasonable thing to do for them.)

This also makes PL_DNewHashTable() infallible.

--HG--
extra : rebase_source : 848cc9bbdfe434525857183b8370d309f3acbf49
2015-02-01 20:19:08 -08:00
Tooru Fujisawa
80ed789950 Bug 1108930 - Part 6: Call WeakMap with new in xpconnect. r=mrbkap 2015-02-05 00:59:15 +09:00
Ms2ger
731bff666c Bug 1125901 - Part d: Remove unused nsIXPConnect.holdObject; r=bholley
It is now unused, so can be removed.
2015-02-04 09:41:41 +01:00
Andrew McCreight
a63a67a5e2 Bug 1122758 - Get rid of XPCJSObjectHolder::newHolder(). r=gabor 2015-02-03 09:13:54 -08:00
Jason Orendorff
8f9fef2147 Bug 1127121 - Remove property key type splitting in ObjectOps. r=bhackett.
--HG--
extra : rebase_source : dab65791e3efc9fc625365b6aa5dc26d5cad19fb
2015-01-28 17:12:44 -06:00
Terrence Cole
e5afb92f3a Bug 1125929 - Remove the unused GC stack capture; r=billm
--HG--
extra : rebase_source : e32779f431f0ddc70ead1b2d273a0a23d99541ac
2015-01-28 11:52:01 -08:00
Brian Hackett
909e578fea Bug 1125930 - Rename TypeObject to ObjectGroup, r=jandem. 2015-02-02 11:20:38 -07:00
Tom Schuster
f605ba3799 Bug 1127443 - Remove JS_NewObject proto argument. 2015-01-31 16:18:51 +01:00
Tom Schuster
42f3ec261e Bug 1127443 - Move some JS_NewObject callers to JS_NewObjectWithGiveProto 2015-01-31 16:18:51 +01:00
Terrence Cole
93976b9fec Backed out changeset f6ac06e9143d (Bug 1125929) for breaking win32 builds on a CLOSED TREE.
--HG--
extra : rebase_source : 20adf8603c62c967257d4603a6b1e8303d8bdd1c
2015-01-29 12:01:23 -08:00
Bill McCloskey
94aebaaa39 Bug 1072980 - Don't allow CPOWs to be passed to C++ code (r=mrbkap,ally,mconley) 2015-01-29 11:28:01 -08:00
Terrence Cole
aa3b065ff1 Bug 1125929 - Remove the unused GC stack capture; r=billm
--HG--
extra : rebase_source : e3e11fcde39720c6bf5b62bf670b04debc193426
2015-01-28 11:52:01 -08:00
Bill McCloskey
cbecfa296f Bug 1123868 - Clear interposition map after deleting it (r=mccr8) 2015-01-28 12:10:53 -08:00
Nicholas Nethercote
3163cfc2c1 Bug 1124973 (part 2) - Introduce PL_DHashTableSearch(), and replace most PL_DHashTableLookup() calls with it. r=froydnj.
It feels safer to use a function with a new name, rather than just changing the
behaviour of the existing function.

For most of these cases the PL_DHashTableLookup() result was checked with
PL_DHASH_ENTRY_IS_{FREE,BUSY} so the conversion was easy. A few of them
preceded that check with a useless null check, but the intent of these was
still easy to determine.

I'll do the trickier ones in subsequent patches.

--HG--
extra : rebase_source : ab37a7a30be563861ded8631771181aacf054fd4
2015-01-22 21:06:55 -08:00
Tooru Fujisawa
ee95717e31 Bug 1069416 - Part 2: Remove JS_HAS_SYMBOLS from js tests. r=evilpie,mrbkap 2015-01-28 13:06:37 +09:00
Shu-yu Guo
4e73ce230d Bug 1119363 - Tweak trusted stack buffer size to give Win64 PGO more room. (r=bholley) 2015-01-27 17:06:23 -08:00
Eric Skoglund
fff6b439db Bug 1107645 - Implement TypedArray.forEach in accordance with the ecma 6 revision 31 spec. r=evilpie
Added reference to the forEach function in TypedArrayObject.cpp. Also added the correct specification reference to the function.

Tests added for the TypedArray#forEach based on the tests for TypedArray#some

Added reference to forEach in test_xrayToJs.xul

Added test to assert that forEach returns undefined.

Added new Proxy() to list of invalid receivers.
2015-01-26 12:46:00 -05:00
Bobby Holley
928226b50e Bug 1126023 - Annotate assertion. r=me 2015-01-26 15:44:00 -08:00
Bill McCloskey
2f3d90830b Bug 1123461 - Make a real interface for js/ipc (r=dvander) 2015-01-26 13:32:18 -08:00
Bobby Holley
ebfd3a1b74 Bug 1124898 - Tests. r=bz 2015-01-26 10:26:33 -08:00
Tom Schuster
7f95393f87 Bug 1122619 - Remove getPropertyAttributes object ops. r=jorendorff 2015-01-24 16:38:08 +01:00
Tom Schuster
66ad9a2e49 Bug 1125356 - Use JS_NewPlainObject in the browser. r=bz 2015-01-24 16:38:08 +01:00
Boris Zbarsky
3c92a4bdd7 Bug 1107443 part 3. Stop defining non-configurable properties on the window in xpconnect sandbox code. r=peterv,jorendorff 2015-01-23 09:54:15 -05:00
Boris Zbarsky
cbb271e250 Bug 1107443 part 2. Stop defining non-configurable properties on the window in dom and xpconnect JS files. r=peterv 2015-01-23 09:54:14 -05:00
Jon Coppeard
12ae93f10e Bug 1107639 - Replace nsAutoJSValHolder with use of PersistentRooted r=bent 2015-01-23 10:23:57 +00:00
Jon Coppeard
c17c1bd7eb Bug 1107639 - Use two phase construction rather than Maybe<PersistentRooted> r=terrence 2015-01-23 10:23:57 +00:00
Nicholas Nethercote
1728be992a Bug 1122322 (follow-up) - Fix busted paths in worker memory reporter. r=bent.
--HG--
extra : rebase_source : c191acaa96ff7fd3d973eb542a56e7b96efb7466
2015-01-22 21:26:21 -08:00
Wes Kocher
c1bec44889 Backed out 3 changesets (bug 1123461, bug 1123090) for windows build bustage
Backed out changeset 2c442905d0af (bug 1123461)
Backed out changeset d7aa4c72ebab (bug 1123461)
Backed out changeset 8bb689ec8086 (bug 1123090)
2015-01-22 21:04:33 -08:00
Bill McCloskey
e535bf8aa7 Bug 1123461 - Make a real interface for js/ipc (r=dvander) 2015-01-22 20:00:19 -08:00
Ehsan Akhgari
5f3af43996 Bug 1123108 follow-up: Fix the Windows only build bustage on a CLOSED TREE 2015-01-22 19:13:39 -05:00
Ehsan Akhgari
59d99db61e Bug 1123108 - Mark nsIXPConnectWrappedNative::mIdentity as an nsCOMPtr; r=bholley 2015-01-22 17:54:54 -05:00
Ehsan Akhgari
165b504f32 Bug 1116357 - Prevent double releasing the wrapper object in the error handling code in FinishCreate; r=bholley 2015-01-22 17:54:53 -05:00
Ehsan Akhgari
41354c1922 Bug 1119260 - Mark virtual overridden functions as MOZ_OVERRIDE in XPConnect; r=bholley 2015-01-22 17:54:52 -05:00
Tom Schuster
269e651092 Bug 1122552 - Introduce [[GetOwnProperty]] object op. r=jorendorff,bz 2015-01-22 17:17:26 +01:00
Bill McCloskey
582425cdbd Bug 1114345 - Don't pop up slow script dialog after waking up laptop (r=bholley) 2015-01-21 16:13:21 -08:00
Jon Coppeard
90c9dbbc91 Bug 650161 - Don't trace contents of wrapped native scope in wrapped native proto's trace hook, just the scope's global r=billm 2015-01-21 09:25:13 +00:00
Ehsan Akhgari
d161a0c991 Bug 1123002 - Convert XPCStringConvert::ZoneStringCache::mBuffer to void*; r=mccr8
This variable is only used for pointer comparison in order to compute
a cache match.  This patch converts the type of the variable to void*
so that it can still be used for the pointer comparison, but not for
any other purpose, including dereferencing, since the pointer may
potentially be dangling if the string buffer dies.
2015-01-20 19:12:42 -05:00