Commit Graph

62 Commits

Author SHA1 Message Date
Jeff Walden
a128f0c35c Bug 1517624 - Move JSPropertySpec and JSFunctionSpec definitions into a new js/public/PropertySpec.h header. r=arai
--HG--
extra : rebase_source : b80911e01f984ee9f99fbbc6c4552ef3d2178587
2019-01-03 15:37:01 -06:00
Jon Coppeard
6f81506124 Bug 1463462 - Make gray marking assertions call a JSAPI function r=sfink 2018-12-06 16:28:10 -05:00
Boris Zbarsky
c734e83c48 Bug 1511401 part 4. Use CallArgs::requireAtLeast in the DOM. r=nbp,qdot 2018-12-10 14:13:06 -05:00
Boris Zbarsky
d28b50be98 Bug 1511401 part 3. Inline the fast (no error) path of requireAtLeast. r=nbp
We don't want to pay the cost of a function call here in DOM bindings.
2018-12-10 14:13:05 -05:00
Tooru Fujisawa
7983faeb5d Bug 1511393 - Use c-basic-offset: 2 in Emacs mode line for C/C++ code. r=nbp 2018-12-01 04:52:05 +09:00
Benjamin Bouvier
a7f1d173a0 Bug 1511383: Update vim modelines after clang-format; r=sylvestre
- modify line wrap up to 80 chars; (tw=80)
- modify size of tab to 2 chars everywhere; (sts=2, sw=2)

--HG--
extra : rebase_source : 7eedce0311b340c9a5a1265dc42d3121cc0f32a0
extra : amend_source : 9cb4ffdd5005f5c4c14172390dd00b04b2066cd7
2018-11-30 16:39:55 +01:00
Sylvestre Ledru
265e672179 Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset

--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Jan de Mooij
bccfe7c569 Bug 1508065 - Change JS_PUBLIC_{API,DATA} and JS_FRIEND_{API,DATA} to be more like similar macros to avoid confusing clang-format. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D12256

--HG--
extra : moz-landing-system : lando
2018-11-19 17:02:47 +00:00
Jan de Mooij
ab644b087f Bug 1488698 - Always use braces for if/for/while statements in js/public. r=jandem
--HG--
extra : rebase_source : 075f0747c9256fee67925853b501b7a3549cebba
2018-09-06 12:11:07 +02:00
Ted Campbell
ab67c3fb81 Bug 1471272 - Add [SMDOC] tags for in-source documentation. r=jandem,nbp
MozReview-Commit-ID: I038aYgvwe4
2018-06-28 15:23:25 -04:00
Tom Schuster
72acf485fb Bug 1255800 - Make computeThis return a boolean for easier error handling. r=jorendorff
--HG--
extra : rebase_source : 1b4d227aba2fd0e1a458849addb634df9d72111c
extra : histedit_source : 29e8c520ae4d3644131b05794a447a0e7a32796f
2018-03-23 13:09:04 +01:00
Tom Schuster
6eddb18596 Bug 1255800 - Remove JS_THIS_OBJECT from js. r=jorendorff
--HG--
extra : rebase_source : ec366038f9619c8c4e8465b9c8ac5b9bc9971086
2018-03-22 16:38:30 +01:00
Nick Fitzgerald
34f4a8d184 Bug 1277338 - Part 2: Refactor CallArgs to avoid zero-sized base classes; r=sfink
Zero-sized base classes are a particular pain point for bindgen. When used as a
base class they can be truly zero sized, but when used directly they have to
have a byte inserted to enable C++'s distinct-objects-have-distinct-addresses
rule. Bindgen could generate two different struct definitions for such cases,
but then users need to know which to use at which time and its simpler to just
avoid zero sized base classes.
2017-04-13 13:22:20 -07:00
Tooru Fujisawa
7f556ef14e Bug 1344477 - Part 1: Add JSOP_CALL_IGNORES_RV for function call that ignores return value. r=jandem 2017-03-05 03:17:22 +09:00
Boris Zbarsky
746467862d Bug 1346389. Make --enable-shared-js link again, at least for an opt mac build with intl api disabled. r=sfink, a=waldo on the gcc-specific bits. 2017-03-10 23:52:55 -05:00
Boris Zbarsky
d6b2fc9b4d Backed out changeset c1978f7d49c4 for build failures.
MozReview-Commit-ID: FOwcGtykkXR
2017-03-11 00:10:36 -05:00
Boris Zbarsky
160b2e80e9 Bug 1346389. Make --enable-shared-js link again, at least for an opt mac build with intl api disabled. r=sfink
MozReview-Commit-ID: 264vsCvhh9Z
2017-03-10 23:52:55 -05:00
Jon Coppeard
e37c8ad5d4 Bug 1343590 - Improve CallArgs gray marking assertions r=sfink 2017-03-02 10:23:15 +00:00
Jon Coppeard
82cbd987a2 Bug 1338623 - Add a slower but more exact gray marking check for checking correctness r=sfink r=mccr8 2017-03-02 10:22:47 +00:00
Jan de Mooij
158805801d Bug 1325075 - Fix Value::isGCThing footgun, stop returning true for NullValue. r=jonco,baku 2016-12-26 16:40:21 +01:00
Tooru Fujisawa
a18c43b831 Bug 1290337 - Part 3: Replace Value parameter to const Value& in simple case. r=shu 2016-09-11 18:15:22 +09:00
Terrence Cole
f782b9ec74 Bug 1291776 - Assert that we don't create gray arguments; r=sfink
--HG--
extra : rebase_source : 6d27a748f0eafe6e1995a54c2820dd0519ca5850
2016-09-15 13:50:03 -07:00
Jeff Walden
a7cb086da3 Bug 1270076 - Make CallArgs's JS_DEBUG-only handling of asserting proper rval()/calleev() sequencing work without using enumerated types, for Servo bindings. r=nox/r=jwalden tag-team effort 2016-06-07 16:55:49 -07:00
Jeff Walden
70329fa4a6 Bug 1270977 - Remove JS::CallReceiver. r=efaust
--HG--
extra : rebase_source : c63656746559d41816e77baa8f12238882bca395
2016-05-26 20:14:39 -07:00
Jeff Walden
c9af593ee4 Bug 1270977 - Modify BoxNonStrictThis to not use CallReceiver. r=efaust
--HG--
extra : rebase_source : f8db060e368df96982a688dd6f71279e876904c9
2016-05-26 14:49:46 -07:00
Till Schneidereit
36af475fe5 Bug 1198193 - Change all functions taking CallArgs to take const CallArgs& instead. r=Waldo
--HG--
extra : rebase_source : b7cd505c80b34d33d98e336490b117792030d9d5
2015-08-27 21:18:37 +02:00
Eric Faust
7180509ffe Bug 1141865 - Part 2: Plumb new.target on the stack and make it accessible to JSNatives. (r=jorendorff, r=jandem, r=shu) 2015-06-03 02:01:14 -07:00
Carsten "Tomcat" Book
916a61c26f Backed out changeset d038c5da19b0 (bug 1141865) 2015-06-03 12:44:59 +02:00
Eric Faust
e8c9b4486c Bug 1141865 - Part 2: Plumb new.target on the stack and make it accessible to JSNatives. (r=jorendorff, r=jandem, r=shu) 2015-06-03 02:01:14 -07:00
Wes Kocher
0ee8be2a55 Backed out 7 changesets (bug 1141865) for assertion failures in various test suites CLOSED TREE
Backed out changeset 3796a4c827e4 (bug 1141865)
Backed out changeset 41a10ac99656 (bug 1141865)
Backed out changeset 027bba006fbb (bug 1141865)
Backed out changeset fc9d645f55b3 (bug 1141865)
Backed out changeset 6b87d4ed5d30 (bug 1141865)
Backed out changeset fcbf3e53cce6 (bug 1141865)
Backed out changeset 4a9a06c26be7 (bug 1141865)
2015-06-01 18:25:38 -07:00
Eric Faust
aa42eef2a3 Bug 1141865 - Part 2: Plumb new.target on the stack and make it accessible to JSNatives. (r=jorendorff, r=jandem, r=shu) 2015-06-01 15:03:32 -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
Lars T Hansen
692ba33ebb Bug 1119230 - remove lingering JIT code for PJS. r=shu 2015-01-14 09:21:59 +01:00
Nick Fitzgerald
87b69e2b9e Bug 993085 - Part 1: Add the Debugger.Memory.prototype.trackingAllocationSites accessor property r=jimb 2014-07-21 18:16:13 -07:00
Nicholas Nethercote
1c5751ac95 Bug 952650 (part 13) - Remove JSVAL_IS_PRIMITIVE. r=till.
--HG--
extra : rebase_source : 450ba0261ef5a8546c81f9f645605e312585d6c6
2014-04-27 20:27:54 -07:00
Nicholas Nethercote
530542eecd Bug 952650 (part 12) - Remove JSVAL_TO_OBJECT. r=till.
--HG--
extra : rebase_source : 60dcaa2b778d3cf6eb7dc1a4949aab010ed8c130
2014-04-27 19:58:52 -07:00
Birunthan Mohanathas
e1727be24a Bug 845478 - Part 9: Remove JS_{CALLEE,ARGV,RVAL,SET_RVAL}. r=evilpie 2014-03-25 14:42:34 -04:00
Shu-yu Guo
40089fb9be Bug 966181 - Rename ForkJoinSlice to ForkJoinContext. (r=pnkfelix) 2014-01-31 14:57:57 -08:00
Sean Stangl
33cecd91b2 Bug 939505 - Use JS_DEBUG in public headers. r=jorendorff 2013-12-06 15:03:08 -08:00
Wes Kocher
e6ca9fe89a Backed out changeset e807ddf2965f (bug 688852) for test bustage 2013-10-11 18:07:40 -07:00
Terrence Cole
9352d36b34 Bug 688852 - Rewrite Array.prototype.concat to use spec steps; r=Waldo
--HG--
extra : rebase_source : b82607aabd4f959e7c204073a440225c6a12da6c
2013-01-03 17:34:34 -08:00
Shu-yu Guo
8175bc3b2a Bug 921325 - Return bool from PJS VM functions and use the fatal bit on ForkJoinSlice to signal fatal vs retry. (r=nmatsakis) 2013-10-10 20:02:32 -07:00
Nicholas Nethercote
01c70c8c97 Bug 911020 - Introduce js/TypeDecls.h, which holds very commonly used type declarations from the JS engine. r=luke.
--HG--
extra : rebase_source : 008ef689989f93b46627b8be8608bdbc544ca3a2
2013-08-27 19:59:14 -07:00
Nicholas Nethercote
d8f824e34e Bug 898914 (part 1) - Remove JSBool.
--HG--
extra : rebase_source : 2d202e0e5005a7f54724b1540481c15cde3ad52e
2013-08-08 15:53:04 -07:00
Nicholas Nethercote
9624be5713 Bug 901750 - Change return type of |JSNative| from |JSBool| to |bool|. code=nnethercote,jandem. r=luke,bz.
--HG--
extra : rebase_source : 5b3d7cc339af6d93bde078322e25c6e740d1b617
2013-08-02 00:41:57 -07:00
Terrence Cole
28afcc4d1d Bug 887563 - Convert CallArgs::operator[] to return a Handle; r=Waldo,bz
--HG--
extra : rebase_source : a06130820b34f6e1f5bc317e89c087cf0db9eeb8
2013-06-26 16:26:45 -07:00
Shu-yu Guo
0d4f5ea743 Bug 891946 - Rename ThreadSafeContext variables from tcx -> cx. (r=bhackett) 2013-07-10 18:25:42 -07:00
Shu-yu Guo
638b9c7b72 Bug 881988 - Support calling natives in parallel. (r=djvj) 2013-07-10 18:25:33 -07:00