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

2303 Коммитов

Автор SHA1 Сообщение Дата
Noemi Erli 06a8cd8e3c Backed out changeset bee1c344cb47 (bug 1491909) for failures in browser/components/extensions/test/xpcshell/test_ext_geckoProfiler_control.js 2018-10-24 04:23:13 +03:00
Denis Palmeiro fc930ad16f Bug 1491909 - Add an AllocPolicy to mozilla::JSONWriter r=jwalden,mstange
JSONWriter currently calls new and delete indirectly through mozilla::MakeUnique to allocate a buffer.  Becuase of this, the methods of this class cannot be invoked within Spidermonkey due to https://searchfox.org/mozilla-central/source/config/check_vanilla_allocations.py#6-14.  Therefore, JSONWriter needs an AllocPolicy template parameter so that the allocation and deallocation routines can be changed to match the JS AllocPolicy when invoked within SpiderMonkey.

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

--HG--
extra : moz-landing-system : lando
2018-10-23 20:46:31 +00:00
Jason Orendorff a787b6a30c Bug 1501387 - Handlify Streams.h and avoid using `const JSObject*`. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D9566

--HG--
extra : moz-landing-system : lando
2018-10-23 19:02:04 +00:00
Jan de Mooij 2420688486 Bug 1501229 - Disallow {oom,stack,interrupt}Test functions on shell worker threads. r=jonco,nbp
Differential Revision: https://phabricator.services.mozilla.com/D9524

--HG--
extra : moz-landing-system : lando
2018-10-23 15:37:43 +00:00
Jan de Mooij 1dbada33f5 Bug 1493627 part 2 - Unify OOM testing state variables for different kinds to make AutoEnterOOMUnsafeRegion work for stack checks. r=jonco
Depends on D9253

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

--HG--
extra : moz-landing-system : lando
2018-10-23 01:18:22 +00:00
Steve Fink 2fbae0eae1 Backed out changeset c7b32ffa822e (bug 1321014) on a CLOSED TREE
--HG--
extra : amend_source : 1a8f1a344d56d70673ec9977c62847ebb147f4ca
2018-10-16 14:35:48 -07:00
Steve Fink 04fc511d3d Backed out changeset c22b643cdf51 (bug 1479961, bug 1480129) 2018-10-16 14:35:44 -07:00
Steve Fink 55bdbfc281 Bug 1479961 - Synthesize call edges from Interpret and EnterJit to all JSNatives, r=jonco
--HG--
extra : rebase_source : 87322afa21645ca99ac7948fd8440ba7e46f1d0f
2018-07-24 11:53:42 -07:00
Steve Fink 0db11faae6 Bug 1321014 - Respect MOZ_INHERIT_TYPE_ANNOTATIONS_FROM_TEMPLATE_ARGS for the purpose of identifying GC types and pointers, r=jonco
--HG--
extra : rebase_source : 91efd92b5febca961c2edaeb12ef37770936ee79
2018-07-20 18:36:20 -07:00
Steve Fink 9e8c72fba3 Bug 1321014 - Switch Tag to Annotate, r=nika
--HG--
extra : rebase_source : 644e91673141f7ea7390822ab053a6c5f7fbe28f
2018-07-19 21:16:48 -07:00
Nicolas B. Pierron bf1398f7d2 Bug 1497906 - Add THREAD_TYPE_CURRENT to simulate errors on a single worker thread. r=jonco 2018-10-16 16:40:46 +02:00
Till Schneidereit ext:(%2C%20Jason%20Orendorff%20%3Cjorendorff%40mozilla.com%3E) 2cfba34b8d Bug 1385890 - Fix Streams implementation in multiple-global uses. r=baku,tcampbell,jorendorff
Streams have multiple parts that can be JS objects from different compartments.
For example, the [[reader]] internal slot of a stream can point to a reader
object in another compartment.

This patch makes the ReadableStream implementation robust against mixing and
matching stream-related objects and methods from different globals.

This also removes ReadableStreamBYOBReader and ReadableStreamBYOBRequest for
now, with a view toward enabling basic ReadableStream features by default in
bug 1389628.

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

--HG--
extra : rebase_source : 71d73bed5bc82557efcb6b1ecb231275fd3e1189
extra : amend_source : de29f663b9929eb2858b23cc6f4e7ba97b23a28c
extra : source : f91eb962df6a06d5f51ad13caa2a4a9c2947f293
2018-10-11 14:18:43 -05:00
Jan de Mooij 0811112d77 Bug 1489242 - Add {} to example code in comments. r=jorendorff
I didn't change some similar comments that were pseudo code or JS code.

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

--HG--
extra : moz-landing-system : lando
2018-10-03 14:41:29 +00:00
Paul Bone 6485ea0dfe Bug 1496623 - Rename and comment GeckoProfilerThread::installed() r=njn
--HG--
extra : rebase_source : 2478d8e26f702c9bdbd933a18e36df5232353dc8
extra : histedit_source : 95df9357a34d2c3b1a96856d2df0f63de407e4cc
2018-10-05 10:52:43 +10:00
Jon Coppeard 6c612a4a15 Backed out changeset ba122021b8b5 (bug 1481196) 2018-10-04 11:50:55 +01:00
Paul Bone bf9c377e3d Bug 1495643 - Remove unused declaration r=jonco
--HG--
extra : rebase_source : 4de2c48e3d1b62a9f3a3c191b2606479894585b5
extra : histedit_source : 42204cc35b588eaf800c063507899802d323807e
2018-10-02 15:42:27 +10:00
Denis Palmeiro 61cbbb8612 Bug 1480104: Provide an API for the gecko profiler, introduce a string hash table to remove duplicate data, and add necessary locks and changes to support the profiler start/stop routines r=sfink
There are a number of changes involved here which I'll try to summarize below:
1.  Provide API calls to start & stop the tracelogger.  These will enable and disable a set of events to trace.
2.  Provide API calls to reset the tracelogger.  This will empty the data structures used by the trace logger so that a new tracing session can occur without previous data corrupting it.
3.  Provide API calls to write out the trace logger data in JSON.  This will write out an array of strings which acts as the trace logger event dictionary, and an array of events with timestamps.
4.  Implement a new way of storing the event strings.  Previously, all strings were saved in the format "script:line:column".  However, this led to a lot of duplication because many events would use the same script at different locations.  Instead, we now save only the script string into a vector, and then hash it and save that into a table for reuse.  The line and column will be saved as part of the text id payloads.  Overall, this saves us about 100-150 MB of data for about a 10 second trace.
5.  Add some necessary locks for when the gecko profiler calls some of the API routines from another thread.

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

--HG--
extra : moz-landing-system : lando
2018-09-30 17:39:10 +00:00
Dorel Luca 5e538e879e Backed out changeset eae95de0eabe (bug 1480104) for spidermonkey failure 2018-09-25 09:17:02 +03:00
Denis Palmeiro 484340a143 Bug 1480104: Provide an API for the gecko profiler, introduce a string hash table to remove duplicate data, and add necessary locks and changes to support the profiler start/stop routines r=sfink
There are a number of changes involved here which I'll try to summarize below:
1.  Provide API calls to start & stop the tracelogger.  These will enable and disable a set of events to trace.
2.  Provide API calls to reset the tracelogger.  This will empty the data structures used by the trace logger so that a new tracing session can occur without previous data corrupting it.
3.  Provide API calls to write out the trace logger data in JSON.  This will write out an array of strings which acts as the trace logger event dictionary, and an array of events with timestamps.
4.  Implement a new way of storing the event strings.  Previously, all strings were saved in the format "script:line:column".  However, this led to a lot of duplication because many events would use the same script at different locations.  Instead, we now save only the script string into a vector, and then hash it and save that into a table for reuse.  The line and column will be saved as part of the text id payloads.  Overall, this saves us about 100-150 MB of data for about a 10 second trace.
5.  Add some necessary locks for when the gecko profiler calls some of the API routines from another thread.

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

--HG--
extra : moz-landing-system : lando
2018-09-23 21:51:44 +00:00
Jason Orendorff dfbcb7c596 Bug 1492872 - Remove JSProto_Iterator. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D6405

--HG--
extra : moz-landing-system : lando
2018-09-20 18:04:41 +00:00
Logan F Smyth 486d98a2d8 Bug 888390 - Expose a get/setProperty function on Debugger.Object instances. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D5915

--HG--
extra : moz-landing-system : lando
2018-09-21 22:14:31 +00:00
Jeff Walden 9725076b9b Bug 1491137 - Remove the two setUTF8(bool) CompileOptions functions now that the underlying field they alter is gone. r=jandem
--HG--
extra : rebase_source : c06e34549bd3b895d34cad93c5c3113ed4748390
2018-09-18 08:41:41 -07:00
Jeff Walden 1bea00125f Bug 1491137 - Remove TransitiveCompileOptions::utf8, because its value is now only ever used to assert consistency with the correct one of a UTF-8/Latin-1 API being used. r=jandem
--HG--
extra : rebase_source : 69e2dc190133bf0fdbafe45644731f279c8baccd
2018-09-18 08:41:22 -07:00
Jeff Walden 67740b3d17 Bug 1491137 - Rename JS::CompileFunction that takes const char*/size_t for function text to JS::CompileFunctionUtf8 that asserts consistent |options.utf8|. r=jandem
--HG--
extra : rebase_source : b4c051e8d3c78d7c16c29c5d9f299ead08e479a6
2018-09-17 11:24:41 -07:00
Jeff Walden 389643b114 Bug 1491137 - Remove JS::Evaluate that takes const char*/size_t, rewriting all callers to use JS::Evaluate{Latin1,Utf8}, including opting some callers in to UTF-8 where they had not used it before. r=jandem
--HG--
extra : rebase_source : f3ec0fbca691474981a1366b744da48a61006edc
2018-09-17 11:24:37 -07:00
Jeff Walden 2ee9a81cf4 Bug 1491137 - Split the JS::Evaluate that takes const char*/size_t source data into JS::EvaluateUtf8 and JS::EvaluateLatin1 that assert |options.utf8| has consistent value, plus a JS::Evaluate that delegates to one of those two as appropriate. r=jandem
--HG--
extra : rebase_source : 04752f513d1531812efc2ba1a378da3f859e6b70
2018-09-15 20:24:31 -07:00
Jeff Walden 72377a3e87 Bug 1491137 - Rename the JS::Evaluate that accepts a filename and is always used to process UTF-8 source text to JS::EvaluateUtf8Path. r=jandem
--HG--
extra : rebase_source : 8c0f5c82ae87deb2973ecfdbea0391e2be9424cd
2018-09-14 14:48:23 -07:00
Jeff Walden 9667f8bf7d Bug 1491137 - Remove JS_Compile{,UC}Script, because except for argument ordering they're exactly identical to existing JS::Compile* functions. r=jandem
--HG--
extra : rebase_source : 89ae632dbc654f1f29f8186955042d4586aeeeff
2018-09-13 16:41:00 -07:00
Jeff Walden c1d9c9d203 Bug 1491137 - Rename JS_BufferIsCompilableUnit to JS_Utf8BufferIsCompilableUnit, consistent with how it already interprets that data, and propagate that presumption of UTF-8-ness a little bit further along into callers. r=jandem
--HG--
extra : rebase_source : e2ab50b48d4faf12a6791b0925b080818334421d
2018-09-13 13:30:38 -07:00
Jeff Walden 4d270165a9 Bug 1491137 - Rename the JS::Compile function that accepts const char* path to JS::CompileUtf8Path, because every caller of it indicates the file contents should be interpreted as UTF-8. r=jandem
--HG--
extra : rebase_source : 21b543539690d3276563f67fcfeeddeabb0c8a52
2018-09-13 13:30:34 -07:00
Jeff Walden 54fb5f82fc Bug 1491137 - Remove the JS::CompileForNonSyntacticScope overloads that accept FILE* or a filename because they're unused. r=jandem
--HG--
extra : rebase_source : 0fcda2da3fb716c104d64662df87f89ace725cd4
2018-09-13 01:21:58 -07:00
Jeff Walden a3dc828570 Bug 1491137 - Rename the JS::Compile function that accepts FILE* to JS::CompileUtf8File, because every caller passes a file with UTF-8 content. r=jandem
--HG--
extra : rebase_source : 7abe623b622ba5433ff85aafa691c9a3f0e16eea
2018-09-13 01:21:52 -07:00
Jeff Walden 8f587a8aa5 Bug 1491137 - Split the JS::Compile that takes const char*/size_t into JS::CompileUtf8 and JS::CompileLatin1 that assert |options.utf8| has consistent value, and a JS::Compile that delegates to one of those as appropriate -- a step toward having entirely separate compilation functions that do direct parsing of UTF-8 without inflating first. r=jandem
--HG--
extra : rebase_source : 4fbc10a7e5e221da4c68c02dc155d925e7a7367d
2018-09-12 20:48:44 -07:00
Jeff Walden 1b48d2350b Bug 1490136 - Move off-thread compilation out of jsapi.cpp as well. r=jandem
--HG--
rename : js/src/jsapi.cpp => js/src/vm/OffThreadScriptCompilation.cpp
extra : rebase_source : b33ead12cba53607ca4de71b414ea37f3c5e7007
2018-09-10 15:50:32 -07:00
André Bargull c76bfd0158 Bug 1490609: Add JS_EncodeStringToASCII to CharacterEncoding.h. r=Waldo 2018-09-13 01:34:06 -07: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
Jason Orendorff 1e230788e6 Bug 1442587 - Part 4: Ban js::Vector<Value>. r=sfink 2018-08-30 15:30:50 -05:00
Jeff Walden 327a90245e Bug 1487136 - Make OwningCompileOptions::setFile(JSContext*, const char*) MOZ_MUST_USE. r=kmag on fixing the one user requiring any changes, r=me on the obviously-justified attribute-addition
--HG--
extra : rebase_source : 53f22d0cb6f68fcdf93bd9cbf7e5e3b559a50611
2018-08-28 14:54:20 -05:00
Daniel Varga 73bcb55c27 Backed out 4 changesets (bug 1442587) for SM build bustages on a CLOSED TREE
Backed out changeset 7e7d80003930 (bug 1442587)
Backed out changeset 217ce4f92eb9 (bug 1442587)
Backed out changeset 60a28b2e2493 (bug 1442587)
Backed out changeset f88b838fa1b4 (bug 1442587)
2018-09-08 01:19:55 +03:00
Jason Orendorff e60a9b6fa5 Bug 1442587 - Part 4: Ban js::Vector<Value>. r=sfink
--HG--
extra : histedit_source : 2a8dcb014e5b453fb8d6eaaba348f3303138f99b
2018-08-30 15:30:50 -05:00
André Bargull 41b44b69c0 Bug 1485066 - Part 12: Change the decompiler to return UTF-8 encoded strings. r=Waldo 2018-09-05 01:25:12 -07:00
André Bargull 94cab79237 Bug 1485066 - Part 9: Additional miscellaneous clean-ups around EncodeString callers. r=Waldo 2018-09-05 01:25:11 -07:00
André Bargull ed962c63e5 Bug 1485066 - Part 8: Rename JS_EncodeString to JS_EncodeStringToLatin1. r=Waldo 2018-09-05 06:05:03 -07:00
André Bargull e4d1d98f88 Bug 1485066 - Part 1: Remove JSAutoByteString. r=Waldo 2018-09-05 02:25:42 -07:00
Cosmin Sabou 1f0a42def4 Backed out 14 changesets (bug 1485066) for build bustages on MessageManagerFuzzer. CLOSED TREE
Backed out changeset e40f67f15bf1 (bug 1485066)
Backed out changeset f09bc4d5fdcc (bug 1485066)
Backed out changeset 939e27aa2d59 (bug 1485066)
Backed out changeset d50fcf82556c (bug 1485066)
Backed out changeset 5cbc0ae0117a (bug 1485066)
Backed out changeset 09b5382e0baf (bug 1485066)
Backed out changeset 6676e8fedcb3 (bug 1485066)
Backed out changeset 28e7e61c11ec (bug 1485066)
Backed out changeset b08b0cfc1dbe (bug 1485066)
Backed out changeset 8defc9eabfac (bug 1485066)
Backed out changeset bf167b0a3af3 (bug 1485066)
Backed out changeset 4f89260d5e30 (bug 1485066)
Backed out changeset c22fc17c9d87 (bug 1485066)
Backed out changeset d35bb63dbc1d (bug 1485066)
2018-09-05 15:54:03 +03:00
André Bargull f5787fc732 Bug 1485066 - Part 12: Change the decompiler to return UTF-8 encoded strings. r=Waldo 2018-09-05 01:25:12 -07:00
André Bargull 2d594ec24f Bug 1485066 - Part 9: Additional miscellaneous clean-ups around EncodeString callers. r=Waldo 2018-09-05 01:25:11 -07:00
André Bargull 89416b7fd4 Bug 1485066 - Part 8: Rename JS_EncodeString to JS_EncodeStringToLatin1. r=Waldo 2018-09-05 02:26:49 -07:00
André Bargull 775b7277cc Bug 1485066 - Part 1: Remove JSAutoByteString. r=Waldo 2018-09-05 02:25:42 -07:00
Jeff Walden 0dc91d3099 Bug 1486577 - Make all users of the various *CompileOptions classes #include "js/CompileOptions.h" so that nothing but that file has to know about these classes having a JS_PUBLIC_API on them, that would have to be present in forward-declarations. r=jandem
--HG--
extra : rebase_source : 432d66f1a88f85568510739917b7ab2871f22da6
2018-08-24 21:25:15 -05:00