David Rajchenbach-Teller
d326242e8b
Bug 1181175 - Use RDTSC for Performance Monitoring instead of getrusage. r=jandem
...
--HG--
extra : transplant_source : %8D%A9%CC%17Dj9-%81T%B2%0D%E1%EA%BD%05%C7%DCl%CB
2015-07-07 18:45:54 +02:00
Makoto Kato
0728b9028d
Bug 1187773
- Don't include heapapi.h from js/public. r=jorendorff
2015-08-06 15:34:08 +09:00
Makoto Kato
f2347c180c
Backed out changeset a3243d1ec51f due to invalid bug number
2015-08-06 15:32:14 +09:00
Makoto Kato
2f0bdf40c9
Bug 187773 - Don't include heapapi.h from js/public. r=jorendorff
2015-08-06 11:48:46 +09:00
David Rajchenbach-Teller
7a8967cd5d
Bug 1188616 - CPOW monitoring should use JS_Now instead of PR_IntervalNow. r=jandem
...
--HG--
extra : transplant_source : %B1%1C2%98%5C%83.b%C6%D0%C1%A9%AF5%03%22%06g%3E%7B
2015-07-30 14:29:52 +02:00
Jon Coppeard
53f8300f7e
Bug 1165054 - Fix inbound bustage due to missing explicit on single arg constructor r=me
2015-07-15 11:27:27 +01:00
Jon Coppeard
aacda4f6e2
Bug 1165054 - Add API to clear postbarrier callbacks and use it when CPOW tables are destroyed r=terrence
2015-07-15 10:22:04 +01:00
Birunthan Mohanathas
a8939590de
Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
...
The bulk of this commit was generated by running:
run-clang-tidy.py \
-checks='-*,llvm-namespace-comment' \
-header-filter=^/.../mozilla-central/.* \
-fix
2015-07-13 08:25:42 -07:00
Bill McCloskey
43786e09b5
Bug 1177013 - Use CancelCurrentTransaction to avoid crashes (r=dvander)
2015-07-06 19:58:44 -07:00
Phil Ringnalda
166cfe8460
Back out 12 changesets (bug 1177013) on suspicion of causing b2g emulator debug test bustage
...
CLOSED TREE
Backed out changeset 912aae0815f8 (bug 1177013)
Backed out changeset 3b6448172e50 (bug 1177013)
Backed out changeset 2af18bef5703 (bug 1177013)
Backed out changeset e6bf35115c11 (bug 1177013)
Backed out changeset 4d7f5205b60b (bug 1177013)
Backed out changeset f7de893911bc (bug 1177013)
Backed out changeset de79eba232f0 (bug 1177013)
Backed out changeset 978a77b60f2a (bug 1177013)
Backed out changeset f5b52fa19511 (bug 1177013)
Backed out changeset e14a7b70b6fa (bug 1177013)
Backed out changeset d0f5a3474659 (bug 1177013)
Backed out changeset bff9f07dad52 (bug 1177013)
2015-07-02 22:08:54 -07:00
Bill McCloskey
72a845c0e6
Bug 1177013 - Use CancelCurrentTransaction to avoid crashes (r=dvander)
2015-07-02 17:18:10 -07:00
Jan de Mooij
155b1afd35
Bug 1177892 part 1 - Remove BOOLEAN_TO_JSVAL and STRING_TO_JSVAL. r=evilpie
2015-06-30 11:20:56 -07:00
Ryan VanderMeulen
7483c0563e
Backed out changesets ad58c270ce87 and 849151330d60 (bug 1177892) for B2G bustage.
...
CLOSED TREE
2015-06-30 15:48:11 -04:00
Jan de Mooij
731f441d6e
Bug 1177892 part 1 - Remove BOOLEAN_TO_JSVAL and STRING_TO_JSVAL. r=evilpie
...
--HG--
extra : rebase_source : f7ae63c351c82516e7db48a12c4cfb2048a81805
2015-06-30 11:20:56 -07:00
Jan de Mooij
976586cb5f
Bug 1177825 - Remove JSVAL_* constants. r=evilpie
2015-06-29 18:36:44 -07:00
Jason Orendorff
461581c95f
Bug 1125624, part 3 - Remove js::StandardDefineProperty and js::DefineOwnProperty. r=Waldo.
...
--HG--
extra : rebase_source : afcc8c4461b1ea744e2beea948370c3c20ff70af
extra : source : 94f14d6b26d5e6c060e965c0982708e63d27db66
2015-05-29 16:48:26 -05:00
Carsten "Tomcat" Book
fe91296868
Backed out changeset 94f14d6b26d5 (bug 1125624)
...
--HG--
extra : rebase_source : 4165a923b0b1152155981120dba33326bfa2ec15
2015-06-17 11:02:59 +02:00
Jason Orendorff
0691fb22c8
Bug 1125624, part 3 - Remove js::StandardDefineProperty and js::DefineOwnProperty. r=Waldo.
...
--HG--
extra : rebase_source : 0a882c98558c85f4c2368f94036ee38c17d396ce
2015-05-29 16:48:26 -05:00
David Rajchenbach-Teller
d000c8c063
Bug 1156264 - Activate/deactivate jank and CPOW monitoring separately (low-level). r=jandem
...
--HG--
extra : transplant_source : %06%B4%CE%80%E1%D7r%ED%F6%02J%24%E1JV%FE%A4L%BF%96
2015-06-04 13:12:07 +02:00
Tom Schuster
46b3f4a779
Bug 1163423 - Use JS_HasOwnProperty in WrapperAnswer::RecvHasOwn. r=billm
2015-05-12 21:05:50 +02:00
Benjamin Bouvier
b3cbd604e8
Bug 1157628: Reformat spidermonkey source directory, again; r=jandem
...
--HG--
extra : rebase_source : 6a1a1671f5ccb323d475b8711e5a8977146e98c6
2015-04-23 12:22:36 +02:00
Andrea Marchesini
a4369a04c4
Bug 1156632 - Remove unused forward class declarations - patch 7 - JS, r=sfink
2015-04-22 08:29:26 +02:00
Jim Blandy
ebd83c9a61
Bug 1152577: Add 'aReason' argument to AutoEntryScript constructor, and provide plausible names for its instantiations. r=bholley
...
--HG--
extra : rebase_source : 8ab7a3628a5b4d94b957f24e23e4c5c7871db97c
2015-04-08 21:23:48 -04:00
Jan de Mooij
11274288e1
Bug 1144366
followup - Stop declaring multiple pointers on a single line. r=jorendorff
2015-04-02 11:22:21 +02:00
David Rajchenbach-Teller
4179564dbf
Bug 674779 - Per-component CPU monitoring, low-level. r=blassey, r=jandem
...
--HG--
extra : rebase_source : 7d604155e0ab0b19befa5a70eda5f4876b239935
2015-03-31 12:40:52 +02:00
Bill McCloskey
11851d2c88
Bug 1148962 - Use TakeOwnershipOfErrorReporting in CPOW code (r=bholley)
2015-03-30 20:13:06 -07:00
Jan de Mooij
b8b1677f0f
Bug 1144366
- Switch SpiderMonkey and XPConnect style from |T *t| to |T* t|. r=jorendorff
2015-03-28 23:22:11 +01:00
Phil Ringnalda
c8a25251c1
Backed out changeset 0c030f97a04f (bug 1144366
) for being on top of patches being backed out
...
CLOSED TREE
2015-03-28 10:39:56 -07:00
Jan de Mooij
8d6d44ecb8
Bug 1144366
- Switch SpiderMonkey and XPConnect style from |T *t| to |T* t|. r=jorendorff
2015-03-28 12:08:37 +01:00
Blake Kaplan
a9a16182e7
Bug 1145854 - Don't leak WrapperOwner::className's string. r=billm
2015-03-27 13:12:37 -07:00
Jason Orendorff
1def388b28
Bug 1142794 - Change 'receiver' argument to SetProperty functions and ProxyHandler::set methods to be a HandleValue. r=Waldo.
...
Also: Change signature of these functions and methods to all have the same arguments in the same order: (cx, obj, id, v, receiver). Also change v from MutableHandleValue to HandleValue.
There is no change in behavior.
In fact the new error message `JSMSG_SET_NON_OBJECT_RECEIVER` is
impossible to trigger from scripts for now, I think (after re-reading
the whole patch with this in mind). JS_ForwardSetPropertyTo is the only
way to get a non-object receiver into the engine, but no caller
currently does so.
We're installing new pipes here, and they should work, but for now it's
the same cold water flowing through as before. Actually hooking up the
hot water is left for another bug (one with tests, not to put too fine a
point on it).
Notes:
* InvokeGetterOrSetter had to be split into two functions:
InvokeGetter takes a MutableHandleValue out-param,
InvokeSetter a HandleValue in-param.
* Watchpoints can still tamper with values being assigned. So can
JSSetterOps. I'm pleased we can support this craziness in a way that
doesn't have to spread via the type system to encompass the entire
codebase.
* Change in GlobalObject::setIntrinsicValue is not really a change.
Yes, it asserted before, but an exception thrown during self-hosting
initialization is not going to go unnoticed either.
* Since the receiver argument to js::SetProperty() is at the end now, it
makes sense for it to be optional. Some callers look nicer.
--HG--
extra : rebase_source : e89f916fe267800bc73890e11aceef5c4855b272
2015-03-01 13:16:19 -06:00
Jason Orendorff
2e5f991fe0
Bug 1142784, part 2 - Change ProxyHandler::defineProperty() to make the desc argument a non-mutable handle. r=Waldo.
...
--HG--
extra : rebase_source : c40a50b3522e8306d68d8114fe576d4f43006d82
2015-02-17 11:58:43 -06:00
Phil Ringnalda
c4745d28b1
Backed out 9 changesets (bug 1142775, bug 1139683, bug 1143810, bug 1142761, bug 1142784, bug 1142794, bug 1144819) for widespread bustage
...
CLOSED TREE
Backed out changeset 7613fc978d36 (bug 1142794)
Backed out changeset e5f0cb31263d (bug 1142784)
Backed out changeset dcd0af73ac84 (bug 1142784)
Backed out changeset 034f9c8e79ee (bug 1142784)
Backed out changeset ce0ee37e3ca9 (bug 1142775)
Backed out changeset 1519b8f2bbba (bug 1142761)
Backed out changeset 26fd55677841 (bug 1139683)
Backed out changeset 7ebc76a450c3 (bug 1144819)
Backed out changeset 92adb459d519 (bug 1143810)
2015-03-22 09:34:25 -07:00
Jason Orendorff
735dca6f1b
Bug 1142794 - Change 'receiver' argument to SetProperty functions and ProxyHandler::set methods to be a HandleValue. r=Waldo.
...
Also: Change signature of these functions and methods to all have the same arguments in the same order: (cx, obj, id, v, receiver). Also change v from MutableHandleValue to HandleValue.
There is no change in behavior.
In fact the new error message `JSMSG_SET_NON_OBJECT_RECEIVER` is
impossible to trigger from scripts for now, I think (after re-reading
the whole patch with this in mind). JS_ForwardSetPropertyTo is the only
way to get a non-object receiver into the engine, but no caller
currently does so.
We're installing new pipes here, and they should work, but for now it's
the same cold water flowing through as before. Actually hooking up the
hot water is left for another bug (one with tests, not to put too fine a
point on it).
Notes:
* InvokeGetterOrSetter had to be split into two functions:
InvokeGetter takes a MutableHandleValue out-param,
InvokeSetter a HandleValue in-param.
* Watchpoints can still tamper with values being assigned. So can
JSSetterOps. I'm pleased we can support this craziness in a way that
doesn't have to spread via the type system to encompass the entire
codebase.
* Change in GlobalObject::setIntrinsicValue is not really a change.
Yes, it asserted before, but an exception thrown during self-hosting
initialization is not going to go unnoticed either.
* Since the receiver argument to js::SetProperty() is at the end now, it
makes sense for it to be optional. Some callers look nicer.
--HG--
extra : rebase_source : 68cd15627a62728061e663706cb1ff8c7bb292a0
2015-03-01 13:16:19 -06:00
Jason Orendorff
db04193771
Bug 1142784, part 2 - Change ProxyHandler::defineProperty() to make the desc argument a non-mutable handle. r=Waldo.
...
--HG--
extra : rebase_source : 92dd18b10e100e7e2537c151a21d4f3be37e1c08
2015-02-17 11:58:43 -06:00
Ehsan Akhgari
883849ee32
Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
...
This patch was automatically generated using the following script:
function convert() {
echo "Converting $1 to $2..."
find . \
! -wholename "*/.git*" \
! -wholename "obj-ff-dbg*" \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Blake Kaplan
3ae54c5cdb
Bug 1134006 - Avoid IPC for domElement.QueryInterface(nsISupports) and nsIClassInfo. r=billm
...
--HG--
extra : rebase_source : cd3ce71089e89c512c0cc04fb49c666e5fab5117
2015-03-10 14:36:01 -07:00
Carsten "Tomcat" Book
bd447688dc
Backed out changeset 6c7ebb2f5a92 (bug 1134006) for bustage
2015-03-10 12:37:24 +01:00
Blake Kaplan
318dc8ec77
Bug 1134006 - Avoid IPC for domElement.QueryInterface(nsISupports) and nsIClassInfo. r=billm
2015-03-09 15:01:00 +01:00
Boris Zbarsky
dcb007a0d8
Bug 1140573 part 1. Drop the parent argument from JS_NewFunction. r=waldo
2015-03-09 12:50:03 -04:00
Jason Orendorff
f9c659ca6c
Bug 1113369, part 7 - [[SetPrototypeOf]] ObjectOpResult support. r=Waldo, r=bz in dom, r=dvander in js/ipc, r=bholley in js/xpconnect.
...
--HG--
extra : rebase_source : e712f5faf1463a447e52153c556605bb9552e990
2015-02-05 16:36:50 -06:00
Jason Orendorff
29bfe274bb
Bug 1113369, part 6 - [[PreventExtensions]] ObjectOpResult support. r=Waldo, r=bz in dom, r=dvander in js/ipc, r=bholley in js/xpconnect.
...
--HG--
extra : rebase_source : 08631a46c776f6d9e60794ad61308240dde3d94d
2015-02-04 12:01:01 -06:00
Jason Orendorff
cc85989b86
Bug 1113369, part 5 - [[Delete]] ObjectOpResult support. r=Waldo, r=bz in dom, r=dvander in js/ipc, r=bholley in js/xpconnect.
...
--HG--
extra : rebase_source : 64b0e44bbb7673d139fab920243566db4844b517
2015-02-04 10:20:04 -06:00
Jason Orendorff
9a17368e8e
Bug 1113369, part 4 - [[Set]] ObjectOpResult support. r=Waldo, r=bz in dom, r=dvander in js/ipc, r=bholley in js/xpconnect.
...
--HG--
extra : rebase_source : ee44b9a7c933addd7f26643443900843b984587b
2015-02-03 19:51:40 -06:00
Jason Orendorff
de9e3b99dc
Bug 1113369, part 3 - [[DefineOwnProperty]] ObjectOpResult support. r=Waldo, r=bz in dom, r=dvander in js/ipc, r=bholley in js/xpconnect.
...
Add an ObjectOpResult out-param for DefineProperty functions everywhere. We leave a few js::DefineProperty() convenience functions with no *result out-param. These have strict behavior: that is, they automatically check the result and throw if it is false. In bug 1125624 these strict signatures may end up being called DefinePropertyOrThrow, as that is what the spec calls it.
--HG--
extra : rebase_source : 36439a8fa433c453f63b02c93fceaf0d8b9e9626
2015-01-30 11:37:07 -06:00
Jason Orendorff
85abad51f2
Bug 1130576 - Rename JSPropertyOp -> JSGetterOp and JSStrictPropertyOp -> JSSetterOp. r=efaust.
...
--HG--
extra : rebase_source : 44edb174028da6dbd637975e6358112060de535b
extra : amend_source : dd79490550af1370dac037057bdc2c06cb4c71f5
2015-01-30 13:56:15 -06:00
Jan de Mooij
61b1b5c6bb
Bug 1137523 part 2 - Unprefix a few js_* functions I forgot in part 1. r=bhackett
2015-03-03 09:33:22 +01:00
Jan de Mooij
db18ff3df9
Bug 1137523 - Unprefix most js_* functions. r=bhackett CLOSED TREE
2015-02-27 16:08:15 +01:00
Boris Zbarsky
f027a773ea
Bug 1136925 part 3. Stop passing parents to js::NewProxyObject. r=waldo
2015-02-26 15:58:59 -05:00
Wes Kocher
f657cd0135
Backed out 4 changesets (bug 1136925) for potentially busting m-e10s-dt on a CLOSED TREE
...
Backed out changeset 331761aaae22 (bug 1136925)
Backed out changeset 2faa0e91fe23 (bug 1136925)
Backed out changeset a00f2530c911 (bug 1136925)
Backed out changeset d5e658bc0792 (bug 1136925)
2015-02-26 23:17:34 -08:00
Wes Kocher
390b01dc2e
Backed out changeset d7d9bbfa72c5 (bug 674779) for m-bc orange on a CLOSED TREE
2015-02-26 17:55:37 -08:00
David Rajchenbach-Teller
8d0fc0855c
Bug 674779 - Add per-compartment CPU accounting. r=jandem, r=blassey, r=bz
2015-02-26 11:53:41 +01:00
Boris Zbarsky
8552abcc45
Bug 1136925 part 3. Stop passing parents to js::NewProxyObject. r=waldo
2015-02-26 15:58:59 -05:00
Tom Schuster
045b47ab00
Bug 1127475 - Remove unnecessary parent arguments. r=bz
2015-02-13 12:20:02 +01:00
Tom Schuster
728f780bfe
Bug 1125437 - Remove CheckDefineProperty and use StandardDefineProperty instead. r=efaust
2015-02-11 23:40:47 +01: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
Gabor Krizsanits
ceab21eca3
Bug 1090592 - GetPrototypeOf hook for CPOWProxyHandler. r=billm
2015-02-10 16:29:41 +01:00
Bill McCloskey
66061807e0
Bug 1123461 - Rename CpowIdHolder to CrossProcessCpowHolder (r=dvander)
2015-01-26 13:32:31 -08:00
Bill McCloskey
2f3d90830b
Bug 1123461 - Make a real interface for js/ipc (r=dvander)
2015-01-26 13:32:18 -08:00
Tom Schuster
66ad9a2e49
Bug 1125356 - Use JS_NewPlainObject in the browser. r=bz
2015-01-24 16:38:08 +01: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
b8d4206b47
Bug 1123461 - Rename CpowIdHolder to CrossProcessCpowHolder (r=dvander)
2015-01-22 20:00:19 -08:00
Bill McCloskey
e535bf8aa7
Bug 1123461 - Make a real interface for js/ipc (r=dvander)
2015-01-22 20:00:19 -08:00
Kyle Huey
7c82e6dd0a
Bug 1121673: Use move references in IPDL. r=bent
2015-01-16 11:58:52 -08:00
Bill McCloskey
5c867be0e8
Bug 1119753 - Fix CPOW GC crash (r=jonco)
2015-01-16 09:56:30 -08:00
Peter Van der Beken
9d5d3dc23d
Bug 1096328 - Remove nativeOwnership from Bindings.conf, templatize deferred finalization. r=bz.
...
--HG--
extra : rebase_source : 2486e80073d49ffc5ed93676382846fe7c87bd64
2014-11-01 14:48:19 +01:00
Ehsan Akhgari
c50516747c
Bug 1119265 - Mark virtual overridden functions as MOZ_OVERRIDE in JS IPC; r=billm
2015-01-08 23:10:41 -05:00
Chris Peterson
793edf7daf
Bug 1115477 - Fix -Wunused and -Wtype-limits warnings in js/src. r=jandem
2014-12-24 21:06:21 -08:00
Bill McCloskey
a58a3e4621
Bug 1102640 - [e10s] Shouldn't be able to create CPOWs to the inner window (r=mrbkap)
2014-12-18 17:34:24 -08:00
Bill McCloskey
478530b3a3
Bug 1102637 - [e10s] Control CPOW logging with env var (r=mrbkap)
2014-12-18 17:34:24 -08:00
Bill McCloskey
35ea98153d
Bug 1102637 - [e10s] Log the address of objects sent using CPOWs (r=mrbkap)
2014-12-18 17:34:24 -08:00
Tom Schuster
8960d9ef9f
Bug 1094176 - Remove lookup API from browser. r=bholley
2014-12-17 00:28:39 +01:00
Tom Schuster
7ed0e36ad2
Bug 783829 - Remove getEnumerablePropertyKeys. r=efaust,bholley
2014-12-17 00:28:38 +01:00
Tom Schuster
f834688bbc
Bug 783829 - Change from Proxy iterate to enumerate. r=efaust,bholley
2014-12-17 00:28:38 +01:00
Jason Orendorff
92f1bf16c5
Bug 1103368, part 5 - Make Class::getProperty and setProperty nullable instead of needing stub functions. Never store stub functions in JSPropertyDescriptors. r=bhackett.
...
--HG--
extra : rebase_source : a44070dd6155426ef6026c1575116f90b5fdac0c
extra : amend_source : 8d8fcf05dfd5fdf214a39501663347a6d6b56463
2014-11-22 12:23:39 -06:00
Jason Orendorff
1c534dd02f
Bug 1103368, part 4 - Ban stub getter/setter arguments to js::CheckDefineProperty. r=bhackett.
...
--HG--
extra : rebase_source : 407e9adaca3ee23e768f750cd84a0a8f3432e2fa
2014-11-22 08:43:56 -06:00
Brad Lassey
58cc323c20
bug 1104160 - crash in CPOWTimer::~CPOWTimer() r=billm
2014-11-25 13:04:07 -05:00
Bobby Holley
3c1d0fd115
Bug 1102521 - Use AutoEntryScript/AutoJSAPI for CPOW answers. r=billm
2014-11-23 15:23:21 -08:00
Brad Lassey
5bdf9eae23
bug 1074567
- measure time spent processing in sync CPOW calls per compartment r=bholley,billm
...
* * *
try: -b do -p linux64-b2g-haz -u none
2014-11-19 18:54:34 -05:00
Tom Schuster
12ee966a97
Bug 783829 - Rename Proxy enumerate trap to getEnumerablePropertyKeys. r=efaust
2014-11-14 16:21:12 +01:00
Bill McCloskey
546747b785
Bug 1091964 - Avoid spurious rooting hazard on a CLOSED TREE
2014-11-05 17:52:38 -08:00
Bill McCloskey
7cf195d449
Bug 1091970 - [e10s] Cache object tag in add-on shims for remote objects (r=mrbkap)
2014-11-04 17:40:08 -08:00
Bill McCloskey
6ed288e283
Bug 1091964 - [e10s] Cache isCallable and isConstructor for CPOWs (r=mrbkap)
2014-11-04 17:39:34 -08:00
Carsten "Tomcat" Book
055ba5a88c
Backed out changeset 5992aea01aff (bug 1091964)
2014-11-05 10:03:06 +01:00
Carsten "Tomcat" Book
e3f684b7a3
Backed out changeset 38ca6211d1d4 (bug 1091970)
2014-11-05 10:02:59 +01:00
Bill McCloskey
fe30fe6fd9
Bug 1091970 - [e10s] Cache object tag in add-on shims for remote objects (r=mrbkap)
2014-11-04 17:40:08 -08:00
Bill McCloskey
5270447ff4
Bug 1091964 - [e10s] Cache isCallable and isConstructor for CPOWs (r=mrbkap)
2014-11-04 17:39:34 -08:00
Bill McCloskey
2aafde34fc
Bug 1073631 - Add mising waivier outerizing for CPOWs (r=bholley)
2014-11-03 07:10:27 -08:00
Boris Zbarsky
6ee4ab8789
Bug 1088002 part 2. Change JS_DefineElement, JS_DefineProperty, JS_DefineUCProperty, JS_DefinePropertyById, and JS_DefineProperties to default to using JSNative accessors, not JSPropertyOp accessors. r=waldo
2014-10-29 15:06:31 -04:00
Jeff Walden
0855b78393
Bug 1052139 - Reorder the preventExtensions trap just after the [[Prototype]]-access traps. r=code-motion
...
--HG--
extra : rebase_source : ea85bf1daa26ec7a32caf2656ebf99c6e2757cfa
2014-10-21 11:40:04 -07:00
Jeff Walden
777c2ff26e
Bug 1085566 - Make the preventExtensions hook return succeeded/failed rather than always indicate failure by reporting an error. r=efaust
...
--HG--
extra : rebase_source : 487b569d23ce18f39fc53697e5f25cc789885803
2014-10-19 01:18:43 -07:00
Carsten "Tomcat" Book
fcc0eb1e30
Backed out changeset 9e900e87b4bb (bug 1085566)
2014-10-22 08:59:09 +02:00
Carsten "Tomcat" Book
aca347b75c
Backed out changeset 4eee647a5bd4 (bug 1052139)
2014-10-22 08:59:05 +02:00
Jeff Walden
b012538ad3
Bug 1052139 - Reorder the preventExtensions trap just after the [[Prototype]]-access traps. r=code-motion
...
--HG--
extra : rebase_source : 18f69552bad6922c1b602cbf81d6961883e4d5b8
2014-10-21 11:40:04 -07:00
Jeff Walden
1d2a7aa6cd
Bug 1085566 - Make the preventExtensions hook return succeeded/failed rather than always indicate failure by reporting an error. r=efaust
...
--HG--
extra : rebase_source : 3b61c22efe8b5b2b3135b11556b6b329479d3dcd
2014-10-19 01:18:43 -07:00
Bill McCloskey
3b3399bdc4
Bug 1077587 - Handle non-existent properties in CPOW descriptor code (r=mrbkap)
2014-10-20 09:47:27 -07:00
Jason Orendorff
ea94038f6d
Bug 1081280 - Rename BaseProxyHandler::keys -> getOwnEnumerablePropertyKeys. r=efaust.
...
--HG--
extra : rebase_source : 009323b607d53066b77191f9254918b61ea4d594
2014-10-08 22:01:55 -05:00
Jason Orendorff
87d538f309
Bug 1081255 - Rewrite comments in jsproxy.h; reclassify the methods a bit. No change in behavior. r=efaust, r=bz, r=jwalden.
...
--HG--
extra : rebase_source : b3440548322d65b2bd01862fb863e6197eb263c6
2014-10-08 12:09:08 -05:00
Tom Schuster
bfd10d6554
Bug 1071177 - Support symbol keys and throw exception on unique symbols with CPOWs. r=billm
2014-10-16 18:39:38 +02:00
Tom Schuster
bf9324688d
Bug 1069694 - Remove OldDebugAPI from the browser. r=shu
2014-10-12 19:37:41 +02:00
Jason Orendorff
13b8d404bc
Bug 1026918, part 3 - Rename mozilla::jsipc::PJavaScript::GetPropertyNames -> GetPropertyKeys. r=billm.
...
--HG--
extra : rebase_source : 53d0aae8df524ffc9dfc9657908adf00fc9c89a8
extra : amend_source : 13d71e9a8b830e5ecc74586f6e4b616703cfd305
2014-09-26 19:52:45 -05:00
Jason Orendorff
41b9b13312
Bug 1026918, part 2 - Rename js::GetPropertyNames -> GetPropertyKeys. r=efaust.
...
--HG--
extra : rebase_source : 359dceadb4dfcfc9c724d2995c121a56af610c7d
2014-09-26 19:39:35 -05:00
Jason Orendorff
d35e6d1e8d
Bug 1026918, part 1 - Rename BaseProxyHandler::getOwnPropertyNames -> ownPropertyKeys to match the ES6 [[OwnPropertyKeys]] internal method. r=efaust, r=bz.
...
Also renamed in this patch:
ENUMERATE_IF_DEFINED -> ADD_KEYS_IF_DEFINED
XrayEnumerateAttributesOrMethods -> XrayAttributeOrMethodKeys
XrayEnumerateNativeProperties -> XrayOwnNativePropertyKeys
XrayEnumerateProperties -> XrayOwnPropertyKeys
WrapperOwner::getPropertyNames -> getPropertyKeys
These make sense because JSITER_* flags are involved; the functions in
question are not for finding enumerable properties only.
--HG--
extra : rebase_source : 35fb0fa3c8f3d7bc952409ea8c584e58f3c1d78f
2014-09-26 15:16:36 -05:00
Bill McCloskey
2ab547d3ab
Bug 1049879 - Remove urgent and rpc message types and replace with message priorities (r=dvander,bent,ehsan)
2014-10-07 21:32:45 -07:00
Carsten "Tomcat" Book
4985d0ee76
Backed out changeset e56bf4ea89fb (bug 1049879) for bustage in emulator debug builds on a CLOSED TREE
2014-10-08 08:03:57 +02:00
Bill McCloskey
281cb8db91
Bug 1049879 - Remove urgent and rpc message types and replace with message priorities (r=dvander,bent,ehsan)
2014-10-07 21:32:45 -07:00
Tom Schuster
0bf1b2a134
Bug 1071177 - Add support for symbols as a value type. r=billm
2014-10-07 11:29:03 +02:00
Tom Schuster
07191c41f8
Bug 1071177 - Add support for well-known and registered symbols as CPOW jsids. r=billm,jorendorff
2014-10-07 11:29:03 +02:00
Tom Schuster
eec11c26a0
Bug 1071177 - Introduce JSIDVariant type for CPOWs. r=billm
2014-10-07 11:29:02 +02:00
Andrew McCreight
9d6136ff7b
Bug 1073597, part 3 - Lazify creation of the CPOW manager in CpowIdHolder. r=billm
2014-10-06 15:45:42 -07:00
Nicolas B. Pierron
206d7d6d49
Bug 1074911 - Replace JS_ASSERT by MOZ_ASSERT. r=jorendorff
...
Apply the following script
sed -i '
/JS_ASSERT(/ {
s/JS_ASSERT(/MOZ_ASSERT(/;
:b;
s/ \\$/\\/;
/;/ { p; d; };
n;
s/^/ /;
b b;
};
s/JS_ASSERT (/MOZ_ASSERT(/;
'
Except where the JS_ASSERT macro does not end with a semi-colon, where empty
lines are in the middle of the macro, and where the backslahes are always the
same-length after the expression.
2014-10-01 19:17:51 +02:00
Bobby Holley
17638a1eed
Bug 1067009 - Implement regexp_toShared for CPOWs. r=billm
2014-10-01 17:22:15 +02:00
Bobby Holley
8e8a7d28c3
Bug 1065811 - Track Xray waivers with CPOWs. r=billm
2014-09-25 13:13:29 +02:00
Bobby Holley
8b65a1f10b
Bug 1065811 - Clean up ObjectId handling with static type checking. r=billm
...
While adding the CPOW flag for xray waivers, I discovered a bunch of
inconsistency and sloppiness with respect to our handling of object ids,
and a general lack of clarity about when the id included flags or not. Given
the fact that I'm removing static callability for CPOWs, we _could_ just get
rid of the flags, and store the xray waiver state on the answer-side only. But
I eventually decided that these kinds of flags (which are accessible to both
the Answer _and_ the Owner) had enough potential utility that they were worth
cleaning up.
It's worth noting that that utility comes with the large caveat that the flags
can't be trusted for security-sensitive decisions (at least in the parent->child
case), since they could be forged by a compromised child.
2014-09-25 13:13:29 +02:00
Bobby Holley
4f60ec8b3f
Bug 1065811 - Stop statically computing callability/constructibility on CPOWs. r=billm
2014-09-25 13:13:29 +02:00
Bobby Holley
db168e5cde
Bug 1065811 - Expose isCallable()/isConstructor() in JS_PUBLIC_API. r=billm
2014-09-25 13:13:28 +02:00
Jon Coppeard
132fb38dd4
Bug 650161 - Unify the finalization and moving GC callbacks into a weak pointer update callback r=terrence r=bholley
2014-09-24 12:54:11 +01:00
Bobby Holley
2a5e5e2d96
Bug 1052096 - Move CPOW targets into the privileged/unprivileged junk scope of the child/parent. r=billm
2014-09-12 17:41:18 -07:00
Bobby Holley
048a4d28f5
Bug 1052096 - Move CPOWs into the privileged junk scope. r=billm
2014-09-12 17:41:18 -07:00
Jason Orendorff
ddb4e5c560
Bug 1065507, part 3 - Remove special support for js_GetterOnlyPropertyStub from js/ipc.
...
--HG--
extra : rebase_source : cc10de476c7c40324f9ae781c6e06500a53edb1b
2014-09-10 12:54:20 -05:00
Bill McCloskey
41b9d7aba6
Bug 1060042 - CPOWs need a hasInstance hook (r=mrbkap)
2014-09-10 17:15:40 -07:00
Eric Faust
385660b12e
Bug 966518 - Part 0: Make proxy callability into a trap, rather than a class check. (r=bholley, r=djvj, r=peterv)
2014-09-10 15:52:36 -07:00
Chris Peterson
d126c3c24f
Bug 1063962 - Replace jschar typedef with C++11 char16_t type. r=jandem
2014-07-21 21:43:21 -07:00
Jon Coppeard
fbd9cb9af7
Bug 650161 - Add moving GC callback and use it to fix up ipc CPOW tables r=terrence
2014-09-02 11:07:22 +02:00
Ehsan Akhgari
ddca1158ca
Bug 1060988 - Fix more bad implicit constructors in JS IPC code; r=billm
2014-08-31 21:10:16 -04:00
Eric Faust
db3773210b
Bug 1027425 - Make all Proxy handler constructors use MOZ_CONSTEXPR. (r=bz, r=froydnj)
2014-08-28 13:47:16 -07:00
Eric Faust
48b4f73e9f
Bug 1017862 - Remove virtual destructor from BaseProxyHandler. (r=jorendorff)
2014-08-28 13:30:56 -07:00
Eric Faust
11375e15fd
Bug 1027964 - Standardize proxy handler families. (r=jorendorff)
2014-08-27 17:09:06 -07:00
Bill McCloskey
ee028ed085
Bug 1057601 - Use UncheckedUnwrap in CPOW code (r=mrbkap)
2014-08-22 18:18:00 -07:00
Bill McCloskey
d54b9ed617
Bug 1051127 - Add an env var for CPOW logging (r=mrbkap)
2014-08-20 13:01:32 -07:00
Bill McCloskey
14b0872617
Bug 1052093 - Child->parent CPOWs should go through COWs in the parent for security (r=bholley)
2014-08-20 12:49:10 -07:00
Bobby Holley
eaebf58731
Bug 1052089 - Rename JunkScope to PrivilegedJunkScope and remove fallibility of singleton scope access. r=billm
...
These two things ended up getting mushed together in my tree.
2014-08-18 10:57:30 -07:00
Bill McCloskey
55952e99b7
Bug 950745 - Back out assertions that are triggering too often
2014-08-15 16:16:42 -07:00
Bobby Holley
e70ddb7476
Bug 1052052 - Hoist Auto*JSContext into nsContentUtils and kill nsCxPusher.{cpp,h}. r=gabor
2014-08-14 18:47:15 -07:00
Ryan VanderMeulen
30ae466592
Backed out changesets 5b1a3161f614, 17a9673ed782, and a9b8c346d295 (bug 1052052) for B2G non-unified bustage.
2014-08-14 17:23:10 -04:00
Bobby Holley
3e4d70a655
Bug 1052052 - Hoist Auto*JSContext into nsContentUtils and kill nsCxPusher.{cpp,h}. r=gabor
2014-08-14 12:54:34 -07:00
Jon Coppeard
511f6ef1c5
Bug 1052388 - Rename JS_CallHeapFooTracer() functions to JS_CallFooTracer() r=terrence r=smaug
2014-08-13 10:05:22 +01:00
Bill McCloskey
024b67429e
Bug 950745 - Flag when we're processing urgent messages and disallow certain activities (r=bsmedberg,luke)
2014-08-05 21:43:36 -07:00
Bill McCloskey
8bcf32b6ed
Back out bug 950745 for crashes
2014-07-30 16:19:46 -07:00
Bill McCloskey
c87bbeeeda
Bug 950745 - Flag when we're processing urgent messages and disallow certain activities (r=bsmedberg,luke)
2014-07-17 21:09:45 -07:00
Jan de Mooij
8772025bff
Bug 1034689
part 3 - Fix remaining places in Gecko to handle Latin1 strings. r=bz
2014-07-12 09:43:08 +02:00
Bill McCloskey
e03b6322a0
Bug 1029248 - Clean up CPOW unwrapping (r=mrbkap)
2014-07-10 16:47:04 -07:00
Jan de Mooij
44da586636
Bug 1034191 - Make nsDependentJSString users work with Latin1 strings and nursery-allocated strings. r=bz
2014-07-05 17:30:54 +02:00
Ryan VanderMeulen
658554a580
Backed out changesets 4a19dcbc7e7a and 4907115e02e3 (bug 1029248) for non-unified bustage.
...
CLOSED TREE
2014-07-03 13:19:29 -04:00
Bill McCloskey
42d60ab372
Bug 1029248 - Add helpers to simplify CPOW unwrapping (r=mrbkap)
2014-07-03 09:48:21 -07:00
Bill McCloskey
026f5d0e68
Bug 1017109 - Add construct hook for CPOWs (r=mrbkap)
2014-06-30 17:50:58 -07:00
Bill McCloskey
3d9e496beb
Bug 1029202 - Allow CPOW receivers to be non-CPOWs (r=mrbkap)
2014-06-30 17:48:09 -07:00
Eric Faust
04ec29520a
Bug 1027402 - Part 3: Mark all Proxy Handler methods const. (r=jorendorff, r=bz)
2014-06-27 04:44:06 -07:00
Eric Faust
992c8dde5a
Bug 1027402 - Part 2: Mark Proxy Handler instances as const. (r=bholley, r=bz over IRC)
2014-06-27 04:44:04 -07:00
Carsten "Tomcat" Book
cbe01cdaa8
Backed out changeset 346912776f97 (bug 1027402)
2014-06-27 14:21:22 +02:00
Carsten "Tomcat" Book
76beb8d59f
Backed out changeset 285c853fedfa (bug 1027402)
2014-06-27 14:21:20 +02:00
Eric Faust
62d61ccf3f
Bug 1027402 - Part 3: Mark all Proxy Handler methods const. (r=jorendorff, r=bz)
2014-06-27 04:44:06 -07:00
Eric Faust
6091687271
Bug 1027402 - Part 2: Mark Proxy Handler instances as const. (r=bholley)
2014-06-27 04:44:04 -07:00
"Kan-Ru Chen (陳侃如)"
9ed870c153
Bug 879475 - Part 005. Implement ContentBridge r=jlebar
...
Based on original patch by David Zbarsky <dzbarsky@gmail.com>
2014-06-11 13:44:13 +08:00
Bill McCloskey
f634ff5c34
Bug 957742 - Add missing include
2014-05-28 18:28:24 -07:00
Bill McCloskey
e14c2c6ce8
Bug 957742 - Fix compile error
2014-05-28 18:25:06 -07:00
Bill McCloskey
97221e50db
Bug 1014993 - Add special toString method to CPOWs (r=mrbkap)
2014-05-28 18:05:23 -07:00
Tom Schuster
8f9489bd37
Bug 957742 - Logging for CPOWs (r=mrbkap)
2014-05-28 18:05:22 -07:00
Bill McCloskey
b41a921d12
Bug 996785 - Fix CPOW wrapping and compartment ownership (r=mrbkap)
2014-05-16 16:40:37 -07:00
Bill McCloskey
b4170c4e66
Bug 996785 - Bidirectional CPOWs (r=mrbkap)
2014-05-16 16:40:37 -07:00
Bill McCloskey
c9f2d3779d
Bug 996785 - Distinguish local and remote CPOW objects in IPDL (r=mrbkap)
2014-05-16 16:40:36 -07:00
Bill McCloskey
719253d75f
Bug 996785 - Use more descriptive IPDL types for CPOW value variants (r=mrbkap)
2014-05-16 16:40:36 -07:00
Bill McCloskey
88f199c672
Bug 996785 - Move CPOW wrapper answering code (r=mrbkap)
2014-05-16 16:40:36 -07:00
Bill McCloskey
4ea552c328
Bug 996785 - Move CPOW wrapper owner code (r=mrbkap)
2014-05-16 16:40:36 -07:00
Bill McCloskey
60d6a2696c
Bug 996785 - Use separate maps for local and remote CPOW objects (r=mrbkap)
2014-05-16 16:40:36 -07:00
Bill McCloskey
42b76f44bb
Bug 996785 - Rename CPOW makeId/unwrap (r=mrbkap)
2014-05-16 16:40:35 -07:00
Bill McCloskey
29e7a9ce1d
Bug 996785 - Rename CPOW toValue (r=mrbkap)
2014-05-16 16:40:35 -07:00
Bill McCloskey
2c11e044b8
Bug 996785 - Rename CPOW findObject (r=mrbkap)
2014-05-16 16:40:35 -07:00
Bill McCloskey
24e43dd8ca
Bug 996785 - Rename CPOW object map (r=mrbkap)
2014-05-16 16:40:35 -07:00
Bill McCloskey
9ec71fd998
Bug 996785 - Move global CPOW functions to top level (r=mrbkap)
2014-05-16 16:40:35 -07:00
Jon Coppeard
1216544376
Bug 959787 - Handlify remaining JS APIs r=terrence r=bz r=bholley
2014-04-30 10:10:33 +01:00
Rodrigo Rodriguez Jr.
9a92d22f5a
Bug 952650 (part 9) - Remove JSVAL_IS_INT. r=njn.
...
--HG--
extra : rebase_source : dc0c170914c2370c218cdbbe671d2a68628f5a87
2014-04-27 19:47:02 -07:00
Michael Shuen
e76fd87034
Bug 972385 - Make JS::AutoValueVector subscript operator return handles. r=jonco, smaug
2014-04-28 16:53:00 +02:00
Jason Orendorff
6e21c723d2
Bug 547140, part 2 - Remove flags argument from JS_GetPropertyDescriptor and friends. r=Waldo.
2014-04-25 16:11:01 -05:00
Eric Faust
00fc6e1f7e
Bug 978235 - Add missing JSAutoCompartment to JavaScriptChild.cpp. (r=terrence over IRC)
2014-04-15 13:08:41 -07:00
Eric Faust
0aecd9e3d2
Backed out changeset f1660c847ca2 (bug 978235) for landing with random debug code.
2014-04-15 12:56:51 -07:00
Eric Faust
c1c81e010e
Bug 978235 - ES6 Proxies: Implement [[IsExtensible]] trap. (r=jorendorff, terrence over IRC)
2014-04-14 15:52:26 -07:00
Bill McCloskey
7b13759de7
Bug 986317 - Stop exposing urgent semantics in IPDL files (r=bent)
2014-04-03 13:29:11 -07:00
Jon Coppeard
92f0d66be8
Bug 959787 - Handlify remaining JS APIs r=sfink r=bholley r=smaug
2014-04-02 15:28:03 +01:00
Luke Wagner
b1325de739
Bug 797126 - Remove tinyid/shortid/userid (r=terrence)
...
--HG--
extra : rebase_source : d3cee5e71ca02708e91419b209b5914ce9fd2f9f
2014-02-21 10:24:26 -06:00
Chris Peterson
d2c6598a97
Bug 712873 - Part 2: Replace JS_ASSERT with MOZ_ASSERT outside js/src/ directory. r=luke
2014-02-17 22:24:15 -08:00
Daniel Holbert
c516662c22
back out 3a8893b28489 (bug 712939) and 39adab158c17,16add78c43e3,37193db7e15b (bug 712873), for build bustage.
2014-02-19 00:15:51 -08:00
Chris Peterson
58e6c13345
Bug 712873 - Part 2: Replace JS_ASSERT with MOZ_ASSERT outside js/src/ directory. r=luke
2014-02-17 22:24:15 -08:00
Jon Coppeard
735137fc57
Bug 959787 - Handlify arguments for Call APIs r=terrence r=bz
2014-02-13 15:33:04 +00:00
Jon Coppeard
c3759c40ff
Bug 965830 - Convert use of JS_CallFunction and related APIs uses to HandleValueArray r=terrence r=smaug
2014-02-11 10:59:16 +00:00
Bill McCloskey
55fab4d8d9
Bug 962604 - Add ActorDestroy handling to CPOWs (r=mrbkap)
2014-02-05 08:39:59 -08:00
Eric Faust
fc6584c144
Bug 924720 - Part 5: Allow callers of NewProxyObject() to specify a Proxy JSClass. (r=jwalden)
2014-01-29 17:20:16 -08:00
Jon Coppeard
74da1a60c3
Bug 959787 - Handlify JS_Set* APIs r=terrence r=bz
2014-01-25 09:29:12 +00:00
Jon Coppeard
37488975e6
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
Terrence Cole
d902eeddc8
Bug 959787 - Handlify several JSAPI interfaces that can GC, Part 4; r=sfink,r=bz
...
--HG--
extra : rebase_source : 8e1ff566f47795cd82e3f4c0a6fa37b88e7847b4
2014-01-17 10:08:51 -08:00
Josh Aas
31f560c053
Bug 960648: Consistently mark IPDL methods as MOZ_OVERRIDE. Part 2. r=bent
2014-01-17 13:49:39 -06:00
Terrence Cole
6beccf2363
Bug 959787 - Handlify several JSAPI interfaces that can GC, Part 3; r=sfink
...
--HG--
extra : rebase_source : ace7b0fa6ba93acbf0ec8ecaeb68ffa287a33665
2014-01-16 09:48:58 -08:00
Ms2ger
561cae4a0e
Bug 950130 - Move more INCLUDES / LOCAL_INCLUDES to moz.build; r=mshal
2013-12-31 10:06:11 +01:00
Jeff Walden
a51194c4dc
Bug 940033 - js::HashMapEntry::{key,value} fields should be private, with accessors, and the former should expose a const reference. r=jimb
...
--HG--
extra : rebase_source : 439d194ed15bf87e9643c9c09d4512ff7f616fcc
2013-11-25 17:35:09 -08:00
Ehsan Akhgari
dd58d0a554
Bug 944379 - Build js/ipc in unified mode; r=glandium
2013-11-28 08:47:03 -05:00
Mike Hommey
8fd06cf41b
Bug 874266 - Move all DEFINES that can be moved to moz.build. r=mshal
2013-11-27 22:55:07 +09:00
Mike Hommey
b32a4ed166
Backout changeset 3fd4b546eed4 (bug 874266) and changeset a35d2e3a872f (bug 942043) for ASAN build bustage and Windows test bustage
...
--HG--
extra : amend_source : f20d09aeff1c8b5cbd0f1d24c7ce04e86f3aed1d
2013-11-28 14:24:05 +09:00
Mike Hommey
682364d535
Bug 874266 - Move all DEFINES that can be moved to moz.build. r=mshal
2013-11-28 13:08:16 +09:00
Mike Hommey
2812d11fce
Bug 939632 - Remove LIBRARY_NAME for leaf libraries. r=gps
...
Landing on a CLOSED TREE.
2013-11-19 11:50:54 +09:00
Mike Hommey
e06d795c71
Bug 939074 - Remove most LIBXUL_LIBRARY. rs=gps
2013-11-19 11:48:10 +09:00