Граф коммитов

2429 Коммитов

Автор SHA1 Сообщение Дата
Boris Zbarsky 1fa4aa00d2 Bug 1521907 part 1. Add a version of CheckedUnwrap that can do a dynamic security check. r=jandem,sfink
We're going to need this because we will have multiple Realms in the same
compartment which want different CheckedUnwrap behavior in some cases.  So we
need to be able to check which Realm we're in.

Differential Revision: https://phabricator.services.mozilla.com/D17881

--HG--
extra : moz-landing-system : lando
2019-02-02 03:22:29 +00:00
Gurzau Raul 44e4d42e8a Backed out 7 changesets (bug 1521907) for failing at unit/test_bug1151385.js on a CLOSED TREE.
Backed out changeset ef04359ccf0d (bug 1521907)
Backed out changeset ac1c61bf61e9 (bug 1521907)
Backed out changeset df09b7be63c5 (bug 1521907)
Backed out changeset 585fa0024d46 (bug 1521907)
Backed out changeset e593c29aaff4 (bug 1521907)
Backed out changeset ac2e180a35b6 (bug 1521907)
Backed out changeset 270b1db9ea81 (bug 1521907)
2019-02-02 00:58:16 +02:00
Boris Zbarsky 511978c370 Bug 1521907 part 1. Add a version of CheckedUnwrap that can do a dynamic security check. r=jandem,sfink
We're going to need this because we will have multiple Realms in the same
compartment which want different CheckedUnwrap behavior in some cases.  So we
need to be able to check which Realm we're in.

Differential Revision: https://phabricator.services.mozilla.com/D17881

--HG--
extra : moz-landing-system : lando
2019-02-01 22:00:10 +00:00
André Bargull 6b7d6152d7 Bug 1522465 - Part 3: Remove remaining users of JSCLASS_IS_ANONYMOUS. r=jorendorff 2019-01-24 05:46:03 -08:00
Tom Schuster 35523d50cc Bug 1156077 - Remove the non-standard Proxy getPropertyDescriptor trap. r=bzbarsky,jorendorff
I am bit surprised myself, but just removing the getPropertyDescriptor trap seems to mostly work.
The only real special case here is the XPC Sandbox, which I changed to keep using its getPropertyDescriptorImpl.

testSetPropertyIgnoringNamedGetter.cpp didn't even really need its getPropertyDescriptor implementation.

Differential Revision: https://phabricator.services.mozilla.com/D17386

--HG--
extra : moz-landing-system : lando
2019-01-25 16:41:34 +00:00
Jeff Walden 59aaefa333 Bug 1522350 - Move JS::ContextOptions{,Ref} to a new js/public/ContextOptions.h header to further slim jsapi.h. r=arai
--HG--
rename : js/src/jsapi.h => js/public/ContextOptions.h
2019-01-23 16:56:56 -08:00
Jeff Walden c52204b560 Bug 1520878 - Process '-e foo' arguments to the JS shell as UTF-8, not Latin-1, in order to remove JS::EvaluateLatin1, the last public Latin-1-consuming compilation API in SpiderMonkey. r=jandem 2019-01-14 23:01:14 -05:00
Oana Pop Rus 82553cc5f6 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-01-24 19:10:46 +02:00
Jon Coppeard de2d55ee8b Bug 1521524 - Replace some uses of the 'API' GC reason with more informative ones r=sfink 2019-01-24 12:34:55 +00:00
Jon Coppeard 38c7ae49bd Bug 1521524 - Remove some unused GC reasons r=sfink 2019-01-24 12:34:55 +00:00
Andy Wingo eff6f7d841 Bug 1507520 - Make BigInt parsing dependent on run-time feature flag r=jandem,terpri
Differential Revision: https://phabricator.services.mozilla.com/D17349

--HG--
extra : moz-landing-system : lando
2019-01-24 09:06:41 +00:00
Dorel Luca 5bbf8df2a2 Backed out changeset 647e4cfc0eb4 (bug 1507520) for Spidermonkey failures 2019-01-23 19:40:54 +02:00
Andy Wingo 514415e0a0 Bug 1507520 - Make BigInt parsing dependent on run-time feature flag r=jandem,terpri
Differential Revision: https://phabricator.services.mozilla.com/D17349

--HG--
extra : moz-landing-system : lando
2019-01-23 16:55:32 +00:00
Andy Wingo 887bf9200b Bug 1502797 - Reimplement BigInt using V8/JSC code instead of GMP r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D10046

--HG--
extra : moz-landing-system : lando
2019-01-23 11:13:51 +00:00
Razvan Maries 299b5e79f7 Merge mozilla-inbound to mozilla-central a=merge 2019-01-21 19:50:56 +02:00
Sylvestre Ledru 755a1a7c2f Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D17063

--HG--
extra : moz-landing-system : lando
2019-01-21 14:49:22 +00:00
Jon Coppeard a96229ddb3 Bug 1512749 - Convert JS::gcreason::Reason to enum class JS:GCReason r=jonco r=mccr8 2019-01-21 13:09:12 +00:00
Jon Coppeard f731989df0 Bug 1519140 - Add AddRef/Release hooks for embedding's script or module private value and set this script source object where appropriate r=jandem 2019-01-18 13:37:43 +00:00
Ehsan Akhgari e5e885ae31 Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre
# ignore-this-changeset

--HG--
extra : amend_source : 7221c8d15a765df71171099468e7c7faa648f37c
extra : histedit_source : a0cce6015636202bff09e35a13f72e03257a7695
2019-01-18 10:16:18 +01:00
Paul Bone 793ed8be23 Bug 1520357 - Rename the JSON formatting entry points r=jonco
I'm always forgetting which code path is which.  So give both these
functions clearer names that say if they're used by profiling or telemetry.

--HG--
extra : rebase_source : 8edcabba510bcf7170b7e071f7cb3a21be23b0e4
2019-01-17 14:08:30 +11:00
Tarek Ziadé c9ddafea1f Bug 1406872 - Remove perf monitoring code - r=jandem,Gijs
This patch removes the StopWatch code that was used in the first version of
about:performance, and not being used anymore.

Differential Revision: https://phabricator.services.mozilla.com/D7453

--HG--
extra : moz-landing-system : lando
2019-01-14 14:09:09 +00:00
Jeff Walden d64076ac48 Bug 1518812 - Redo the fix for bug 1516567 atop the moving of the relevant code to js/public/PropertySpec.h in bug 1517624. r=jandem 2019-01-09 08:45:05 -08:00
Brian Hackett 655a9a04fe Bug 1517167 Part 1 - Set introduction information for dynamically generated <script> elements, r=jorendorff.
--HG--
extra : rebase_source : 6a2080d724ccac7ccc5f1c45191a1f46ceed6c56
2019-01-03 06:27:01 -10:00
Jan de Mooij 5b05f372ab Bug 1518077 part 1 - Fix MEMORY_JS_COMPARTMENTS_{USER,SYSTEM} telemetry to count number of compartments instead of realms. r=njn
Differential Revision: https://phabricator.services.mozilla.com/D15808

--HG--
extra : moz-landing-system : lando
2019-01-08 15:11:08 +00:00
Jeff Walden 7883beee5b Bug 1517674 - Rename JS_NewDateObject and JS_ObjectIsDate to JS:: versions of the same, and move their declarations to js/public/Date.h and their implementations to js/src/jsdate.cpp. r=arai
--HG--
extra : rebase_source : 581fa2b7831ab09c33801f8e9a52a78566973ff4
2019-01-04 11:43:31 -06:00
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
Jeff Walden beebbf9f0b Bug 1516796 - Move property-descriptor APIs into a minimal js/public/PropertyDescriptor.h header, that (at least for now) jsapi.h #includes because it still contains some property-definition stuff. r=arai
--HG--
extra : rebase_source : a6e9db9dfd96e75b1990b443cec40baa240aad90
2018-12-29 13:47:29 -06:00
Jeff Walden 1a7499e4a1 Bug 1516742 - Move {js::,JS_}{{Strictly,Loosely}Equal,SameValue} into js/public/Equality.h and js/src/vm/EqualityOperations.{cpp,h}. r=arai
--HG--
extra : rebase_source : 1e54339bf579befc38f0155e107da3d192fb6a78
2018-12-29 00:06:21 -06:00
Jeff Walden 72773f1fd6 Bug 1516713 - Move buildId-related stuff out of jsapi.h into a new js/public/BuildId.h header. r=arai
--HG--
extra : rebase_source : 62ed8aa652e577c108a83351fba5d71b6c97da40
2018-12-28 21:00:58 -06:00
Jan de Mooij cdbd8647b5 Bug 1516237 - Fix FixWaiverAfterTransplant to nuke CCWs for oldWaiver in the new compartment. r=bholley
This case can come up with same-compartment realms. Keeping these CCWs
would confuse RemapWrapper because it'd be called with the CCW and target
in the same compartment.

Differential Revision: https://phabricator.services.mozilla.com/D15491

--HG--
extra : moz-landing-system : lando
2019-01-03 09:04:02 +00:00
Sylvestre Ledru cccdda3c2a Bug 1516555 - Reformat everything to the Google coding style r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D15426

--HG--
extra : moz-landing-system : lando
2018-12-28 15:48:06 +00:00
Jeff Walden 4f1eec4171 Bug 1515801 - Remove JS::CompileLatin1{ForNonSyntacticScope} now that both are unused. r=jandem
--HG--
extra : rebase_source : d092af0c2f7337fae899e1bc55e6551ff44830cb
2018-12-14 14:34:16 -08:00
inspiro b8d53fc5d2 Bug 1320105 : Convert JSID_IS_INT to PropertyKey::isInt() r=jandem
Convert JSID_IS_INT to PropertyKey::isInt()

Differential Revision: https://phabricator.services.mozilla.com/D14011

--HG--
extra : moz-landing-system : lando
2018-12-22 14:17:44 +00:00
Jim Blandy 7b8d7ae83a Bug 1145201: Document OffThreadPromiseTask. r=luke
Differential Revision: https://phabricator.services.mozilla.com/D14927

--HG--
extra : moz-landing-system : lando
2018-12-20 17:27:51 +00:00
Jan de Mooij 2104ae00bb Bug 1514672 part 1 - Move XPCWrappedNativeScope from RealmPrivate to CompartmentPrivate. r=bzbarsky
This needs to be on the compartment to prevent creating duplicate wrapped natives.
We now also allocate these objects in the compartment's first global for
consistency and to prevent leaks.

XPCWrappedNativeScope also stores the content XBL scope. I considered moving
this to RealmPrivate, but given the fate of in-content XBL I went with the
simpler option of keeping it on XPCWrappedNativeScope and release-asserting we
have a single realm in the XBL case.

Because XPCWrappedNativeScope no longer stores a global object, we no longer
need XPCWrappedNativeScope::TraceSelf, XPCWrappedNativeProto::TraceInside and
XPC_WN_Proto_Trace.

Differential Revision: https://phabricator.services.mozilla.com/D14849

--HG--
extra : moz-landing-system : lando
2018-12-20 08:23:31 +00:00
arthur.iakab f1762a3667 Merge mozilla-central to mozilla-inbound 2018-12-18 07:36:08 +02:00
Jim Blandy 689eea27da Bug 1510768: Move SpiderMonkey promise interface into its own header. r=arai
Move js/src/jsapi.h declarations related to promises and job queues into their
own public header file, js/public/Promise.h. Change the compilation units that
need these declarations to #include the new header.

There should be no changes to the actual functionality here, simply moving the
code to a new file, and removing the "JS" prefix from some typedefs which are
now in the JS namespace.

Differential Revision: https://phabricator.services.mozilla.com/D13345

--HG--
extra : moz-landing-system : lando
2018-12-17 23:21:04 +00:00
Paul Bone 6299b00e1f Bug 1507377 - Add tunables for pretenure thresholds r=jonco
--HG--
extra : rebase_source : 68ce83adde9f0387de89ce09eea167f37ee5820d
2018-12-14 11:25:10 +11:00
Steve Fink 10953d54c2 Bug 1513108 - Remove the separate class extension hook for getting a weakmap key delegate, r=jonco
Replace with just unwrapping the key, since there are no users that return anything else for a delegate.

--HG--
extra : rebase_source : e72b825121ca3493364c9347f65e5dddd1ef53e0
2018-12-07 14:38:01 -08:00
Razvan Maries a8f2202396 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-12-14 18:35:20 +02:00
Razvan Maries 87aca70b7f Merge mozilla-inbound to mozilla-central a=merge 2018-12-14 18:22:09 +02:00
Jan de Mooij 5a4109cbb9 Bug 1469082 - Always allocate CCWs in the compartment's first realm. r=jonco
CCWs are not really associated with a single realm and we assert code doesn't
enter/request the realm or global of a CCW. However they currently still have an
ObjectGroup that's associated with a single realm. Using the same realm avoids
some potential memory usage issues.

Differential Revision: https://phabricator.services.mozilla.com/D14531

--HG--
extra : moz-landing-system : lando
2018-12-14 11:00:48 +00:00
André Bargull 564dc6c495 Bug 1435829 - Part 1: Implement String.prototype.matchAll proposal. r=jorendorff 2018-12-13 08:04:00 -08:00
Jon Coppeard e56208cb40 Bug 1463462 - Delay gray marking assertions when we are doing incremental gray marking r=sfink 2018-12-06 16:28:14 -05:00
Jon Coppeard 6f81506124 Bug 1463462 - Make gray marking assertions call a JSAPI function r=sfink 2018-12-06 16:28:10 -05:00
Jon Coppeard 5967a9aebd Bug 1463462 - Change Zone marking states to MarkBlackOnly and MarkBlackAndGray r=sfink 2018-12-06 16:27:21 -05:00
Margareta Eliza Balazs 502c1c64cb Backout 2c48655b33ca (Bug 1510607) for causing regression in Bug 1513471, requested by allstars.chh 2018-12-12 18:24:47 +02:00
Jeff Walden e5132ffa4b Bug 1492932 - Load JS components and modules as UTF-8, not as Latin-1. r=kmag
--HG--
extra : rebase_source : d09627655e9c72e674356e996f936ec65a80b6f0
2018-12-04 17:01:06 -05:00
Brindusan Cristian 989d78f3d0 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-12-11 00:10:08 +02: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