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

4312 Коммитов

Автор SHA1 Сообщение Дата
Mike Shal ad087668b7 Bug 1339182 - Remove OSX universal support in the build system; r=glandium
This removes the UNIFY_DIST and UNIFIED_BUILD variables, as well as the
--unify flag from the packager and UnifiedBuildFinder from mozpack. As a
result the STAGEPATH variable is never defined anymore, so its uses can
be removed as well.

test_unify.py is currently the only mozbuild/mozpack test that fails
without running configure first, and there isn't much point in fixing
tests for things that we don't actually use anymore.

MozReview-Commit-ID: F5q1FPW3Did

--HG--
extra : rebase_source : cadbd237f51c23ea1983135294521d628d16f0df
2017-02-10 16:52:17 -05:00
Wes Kocher 0240235e36 Merge m-c to inbound, a=merge
MozReview-Commit-ID: 2KYT7x0b6I1
2017-02-15 19:17:03 -08:00
Phil Ringnalda 8f2ba061cd Backed out changeset 63d0ef447e81 (bug 1224528) for Android permaorange in test_blocklist_certificates.js 2017-02-15 19:07:26 -08:00
Wes Kocher 017c515285 Merge inbound to m-c a=merge
MozReview-Commit-ID: IKI0zVtF1n9
2017-02-15 16:18:13 -08:00
Wes Kocher 3797956aa6 Merge m-c to inbound a=merge
MozReview-Commit-ID: BemR756HJnR
2017-02-15 16:33:03 -08:00
Nicholas Nethercote c0c235319e Bug 1339695 (part 6) - Remove some B2G-only code in profiler_register_thread(). r=mstange.
--HG--
extra : rebase_source : ea47de5243533578fd24b51c2c22023bbde1fe93
2017-02-15 16:26:23 +11:00
Nicholas Nethercote 822c7d5ac0 Bug 1339695 (part 5) - Introduce PROFILE_JAVA. r=mstange.
This factors out some common preprocessor conditions.

--HG--
extra : rebase_source : 93d5a9ab1f32adcd62826d9710c1790dff2a787e
2017-02-15 16:25:22 +11:00
Nicholas Nethercote 2947c72043 Bug 1339695 (part 4) - Remove a stray, misspelled SPS_STANDALNOE use. r=mstange.
SPS_STANDALONE was removed in bug 1317771.

--HG--
extra : rebase_source : b98aef0ab8080dcb517c4b7667922804e560c2c1
2017-02-15 16:24:37 +11:00
Nicholas Nethercote 0b2102e7db Bug 1339695 (part 3) - Introduce USE_FAULTY_LIB. r=jseward.
This factors out some common preprocessor conditions.

--HG--
extra : rebase_source : 444ce4fbccdeb130c604ed12e36ea9c6496a3c85
2017-02-15 16:24:35 +11:00
Nicholas Nethercote bf2a7f555a Bug 1339695 (part 2) - Reorder PlatformMacros.h.h. r=mstange.
This change increases consistency:

- Each OS is dealt with one at a time (no more interleaving).

- For each OS, x86 is now the first listed architecture.

The patch also adds the missing "#undef SPS_PLAT_x86_android".

--HG--
extra : rebase_source : 6ab278ff2523269424aa6dc872ec35ca6dc735a4
2017-02-15 16:24:33 +11:00
Nicholas Nethercote 8eb85b796e Bug 1339695 (part 1) - Remove LUL_{ARCH,OS,PLAT}_* macros. r=jseward.
They duplicate the equivalent SPS_* macros. (The SPS_* macros have already
crept into use in some places within LUL.)

--HG--
extra : rebase_source : 65ed6e6e147189814511b0ca38342fec118478b9
2017-02-15 16:13:01 +11:00
Deepa 31c56b8f1f Bug 1280572 - Add layout/tools/reftest to flake8 linter r=ahal
MozReview-Commit-ID: Cqllz9BeV7X

--HG--
extra : rebase_source : 862709bfe8600a0761467cc79cfa9dadb4e66e62
2017-02-15 01:20:56 +05:30
Mark Banner d28d6df424 Bug 1338249 - Improve eslint-plugin-mozilla's handling of workers when dealing with globals and imports. r=mossop
MozReview-Commit-ID: 7UdgstbYNlB

--HG--
extra : rebase_source : 63005f09ce96135ea239db2de7bcffa924ae03ef
2017-02-07 11:14:49 +00:00
Nicholas Nethercote 912ba37deb Bug 1339435 - Fix bogus assertion in both profiler_time() variants. r=jseward.
--HG--
extra : rebase_source : e752a0bf0b8ea8282bc8f0b477d178325e247397
2017-02-15 14:36:10 +11:00
Nicholas Nethercote 9e451d32b5 Bug 1339327 (part 8) - Move the LUL printing check out of SignalSender()'s inner loop. r=jseward.
Instead of calling MaybeShowStats() every 16th time around the inner loop we
now check every time around the outer loop. Because there are typically 20--50
threads running at once, this results in a slightly lower freqency of printing,
but that seems fine because this is debug-only code.
2017-02-15 14:26:23 +11:00
Nicholas Nethercote ab80c09137 Bug 1339327 (part 7) - Rename some things in platform-linux.cc. r=mstange.
The new names are more consistent, and I find them clearer.

The patch also inlines and removes the horribly-named ProfilerSignalThread()
function.
2017-02-15 14:26:23 +11:00
Nicholas Nethercote 154f14f8b1 Bug 1339327 (part 6) - Remove v8-support.h. r=mstange.
It's entirely unused, except for DISALLOW_COPY_AND_ASSIGN, which is easy to
replace.
2017-02-15 14:26:23 +11:00
Nicholas Nethercote 334f89c567 Bug 1339327 (part 5) - Rename some profiler functions related to sleeping. r=mstange.
The new names make it clearer that these actions apply to just one thread.

- profiler_sleep_start() --> profiler_thread_sleep()
- profiler_sleep_end()   --> profiler_thread_wake()
- profiler_is_sleeping() --> profiler_thread_is_sleeping()
- GeckoProfilerSleepRAII --> GeckoProfilerThreadSleepRAII
- GeckoProfilerWakeRAII  --> GeckoProfilerThreadWakeRAII
2017-02-15 14:26:23 +11:00
Nicholas Nethercote 74eeaa5980 Bug 1339327 (part 4) - Rename some globals in the profiler. r=mstange.
The 'g' prefix is for global variables. The 's' prefix is for static class
members.
2017-02-15 14:26:23 +11:00
Nicholas Nethercote 27345fed25 Bug 1339327 (part 3) - Remove ToStreamAsJSON(). r=mstange.
This is possible because profiler_shutdown() can call
profiler_save_profile_to_file() to do the saving.
2017-02-15 14:26:23 +11:00
Nicholas Nethercote b495b1b745 Bug 1339327 (part 2) - Tweak platform-*.cc files. r=mstange.
This patch:

- Improves some comments.

- Adds some assertions.

- Removes unnecessary differences between some Mac and Windows code.

- Removes the unnecessary SamplerThread::mStackSize on Windows.
2017-02-15 14:26:22 +11:00
Nicholas Nethercote 7e180ba10e Bug 1339327 (part 1) - Fix profiler_get_features(). r=mstange.
"unwinder" and "jank" are never checked for via hasFeature(), and are not
mentioned anywhere else in the profiler. This patch removes them from
profiler_get_features().

"restyle" *does* have a hasFeature() call and is handled by
profiler_feature_active(). This patch adds it to profiler_get_features().
2017-02-15 14:26:22 +11:00
Jeff Walden ca2e1ac4c0 Bug 1287006 - Don't pass Maybe by value in miscellaneous places. r=froydnj
--HG--
extra : rebase_source : 145f2fc605ff917d3067826a9daebdce07bde02a
2017-02-13 09:07:40 -08:00
Matthew Noorenberghe 82d2407ee9 No bug - Follow-up to fix eslint 'max-len' failure.
MozReview-Commit-ID: AoyUSqODG3b

--HG--
extra : rebase_source : 68b24cda681f6479758d65c47a321cbfd5169bab
2017-02-14 23:11:53 +08:00
Sean Lee 60e157bd14 Bug 1300989 - Part 1: Fill the autofill profile that the user selects from autocomplete; r=MattN
MozReview-Commit-ID: 5oMgvdO5RD1

--HG--
extra : rebase_source : 629a34ec404f9c426857172644b4ae8003ac1b70
extra : histedit_source : 1aeddb96261a8da9058fe65412e8ba9944f93fb2
2017-01-07 09:22:19 +08:00
Mathieu Leplatre 870ef630b6 Bug 1224528 - Load initial JSON files for blocklist r=mgoodwin
MozReview-Commit-ID: D53xoTa0PZu

--HG--
extra : rebase_source : 48481994fc4aa6afcd7ef46ac62861fc1ad6b281
2016-12-11 14:37:22 -10:00
Carsten "Tomcat" Book 433f1f5ec7 Backed out changeset 03bfb1ccd33f (bug 1338249) for test failures in test_loading.xul 2017-02-15 15:24:32 +01:00
Mark Banner cd234e0642 Bug 1338249 - Improve eslint-plugin-mozilla's handling of workers when dealing with globals and imports. r=mossop
MozReview-Commit-ID: 7UdgstbYNlB

--HG--
extra : rebase_source : e8eb9718da9bf378b293aca5211c53dd063d4f7a
2017-02-07 11:14:49 +00:00
Matthew Noorenberghe 1c46be9433 Bug 1333682 - Split FormAutofillContent.js into a few JSMs shared for the process. r=seanlee
MozReview-Commit-ID: BpnLzuI1DvW

--HG--
rename : browser/extensions/formautofill/content/FormAutofillContent.js => browser/extensions/formautofill/FormAutofillContent.jsm
rename : browser/extensions/formautofill/content/FormAutofillContent.js => browser/extensions/formautofill/FormAutofillHandler.jsm
rename : browser/extensions/formautofill/content/FormAutofillContent.js => browser/extensions/formautofill/FormAutofillHeuristics.jsm
rename : browser/extensions/formautofill/content/FormAutofillContent.js => browser/extensions/formautofill/content/FormAutofillFrameScript.js
2017-02-14 14:18:32 +08:00
Wes Kocher c8fa3242ab Merge m-c to inbound, a=merge
MozReview-Commit-ID: Lt0WpWkto4h
2017-02-13 17:07:33 -08:00
Wes Kocher 252dae269a Merge inbound to central, a=merge
MozReview-Commit-ID: Gx7IszkCDZ4
2017-02-13 17:04:20 -08:00
Sylvestre Ledru 5941aa8f13 Bug 1337358 - Converts for(...; ...; ...) loops to use the new range-based loops in C++11 in tools/ r=froydnj
MozReview-Commit-ID: GdeCzDXjzzg

--HG--
extra : rebase_source : b00971238ff78d23d9bcec31f905ec268a614527
2017-02-08 12:04:50 +01:00
Carsten "Tomcat" Book 3ed98bee2a merge mozilla-inbound to mozilla-central a=merge 2017-02-10 13:49:56 +01:00
Wes Kocher 30d9ef4d29 Merge m-c to autoland, a=merge
MozReview-Commit-ID: D76dMYwFRUQ
2017-02-09 17:06:59 -08:00
Wes Kocher e27ab18a24 Merge autoland to central, a=merge
MozReview-Commit-ID: Cu9iXbDAS7t
2017-02-09 16:36:11 -08:00
Nicholas Nethercote 609674c984 Bug 1337189 (part 12) - Move s{,Last}FrameNumber from Sampler.cpp to platform.cpp. r=mstange.
--HG--
extra : rebase_source : 95bc147a4a8e750ee3c0dbd92b55cca194a93639
2017-02-07 15:56:48 +11:00
Nicholas Nethercote 1ad49d6d4d Bug 1337189 (part 11) - Move the Linux-specific fields out of Sampler. r=mstange.
--HG--
extra : rebase_source : 09797087c38c99be18e59abdfff170115e7fbba6
2017-02-07 15:47:01 +11:00
Nicholas Nethercote aaa8c223f7 Bug 1337189 (part 10) - Move entrySize_ out of Sampler. r=mstange.
--HG--
extra : rebase_source : 599be59343311c421b00c6bd7e0674175dc57445
2017-02-07 15:22:52 +11:00
Nicholas Nethercote 5be61e6eca Bug 1337189 (part 9) - Move mThreadNameFilters and mFeatures out of Sampler. r=mstange.
Doing so made it clearer that gThreadNameFilters was being accessed from
multiple threads without synchronization, so I added a Mutex for it.

--HG--
extra : rebase_source : 60d9f4df76ed04cb5ce1b8232bbeb9c795b66535
2017-02-07 15:22:27 +11:00
Nicholas Nethercote 0b9183e6ac Bug 1337189 (part 8) - Move mGatherer out of Sampler. r=mstange.
--HG--
extra : rebase_source : a366d877712b3b5761c4fd699bc39bd8ecbd4757
2017-02-07 14:24:39 +11:00
Nicholas Nethercote a198b373b1 Bug 1337189 (part 7) - Move Startup(), Shutdown(), RegisterCurrentThread(), UnregisterCurrentThread() out of Sampler. r=mstange.
This is a good example of code that's in Sampler for no particular reason.

--HG--
extra : rebase_source : 29436e650a154c519029c05cad379e5226043af9
2017-02-07 14:24:33 +11:00
Nicholas Nethercote 52ef6d2984 Bug 1337189 (part 6b) - Move declarations of gSampler. r=mstange.
--HG--
extra : rebase_source : 03ec3604f8e54aa501142cf218c4673504caf34a
2017-02-07 17:27:54 +11:00
Nicholas Nethercote a76c2d28fe Bug 1337189 (part 6) - Move sRegisteredThreads{,Mutex} out of Sampler. r=mstange.
They don't particularly belong there, and Sampler will be going away eventually
anyway.

--HG--
extra : rebase_source : 4faab111925848215f7e8db8244b33ee46c5396c
2017-02-07 14:16:26 +11:00
Nicholas Nethercote e52a6ab24b Bug 1337189 (part 5) - #include Sampler.cpp from platform.cpp. r=mstange.
I am planning to merge Sampler into platform.cpp, so Sampler.cpp will
disappear. This change will make that easier, because things that temporarily
need to be visible in both files won't need to be declared in a header.

--HG--
extra : rebase_source : f0fa4751f6ead945c1a00a17dbc9a7d3dc870e4b
2017-02-07 14:15:30 +11:00
Nicholas Nethercote b20ef2d766 Bug 1337189 (part 4) - #include platform-*.cc from platform.cpp. r=mstange.
platform-*.cc and platform.cpp belong together conceptually, and combining them
into a single compilation unit makes it easier to share things and avoids the
need for some declarations in headers.

The patch also removes old_sigsave_signal_handler_ which is a long-dead field
that clang now detects and complains about.

--HG--
extra : rebase_source : 092a7ca608415b888607dba38ad5296787af824e
2017-02-07 16:09:39 +11:00
Nicholas Nethercote 4b5d7166d9 Bug 1337189 (part 3) - Remove profiler_responsiveness. r=mstange.
All it does is set sLastTracerEvent, which is never read.

--HG--
extra : rebase_source : 13182caaa8d6e38967c7b667992a9d64029e38d7
2017-02-07 14:15:10 +11:00
Nicholas Nethercote f130ae80cb Bug 1337189 (part 2) - Add more threadedness assertions and comments to the profiler. r=mstange.
This patch adds NS_IsMainThread() assertions to all main-thread-only
profiler_*() functions that currently lack them, and adds comments to those
that run on multiple threads. As a result, it's now clear for every
profiler_*() function which threads it runs on.

--HG--
extra : rebase_source : 9a1b00f040a7bfc477ceee701ad6af165b468f4e
2017-02-06 14:31:38 +11:00
Nicholas Nethercote 445a4a42de Bug 1337189 (part 1) - Add a comment about sStartTime. r=mstange.
--HG--
extra : rebase_source : ab709feba5a3551514079c9212ab98b32cd293f7
2017-02-06 14:30:33 +11:00
Nicholas Nethercote b22d13f689 Bug 1126576 (part 2) - Remove redundant check from profiler_init(). r=mstange.
--HG--
extra : rebase_source : 24b458b51352cdd578812c8db8c3fb245e72bf42
2017-02-03 10:34:36 +11:00
Nicholas Nethercote b59f5ef845 Bug 1126576 (part 1) - Remove refcounting from PseudoStack. r=mstange.
PseudoStack lifetimes are predictable because they match thread lifetimes.
There is no need for refcounting.

This patch:

- Removes the refcounting, along with StackOwningThreadInfo.

- Makes PseudoStack's ctor and dtor public, and removes the Create() method.

- Changes popAndMaybeDelete() to pop().

- Removes PseudoStack::isEmpty(), which is dead.

- Adds various comments to make clear how things now work.

--HG--
extra : rebase_source : 3a135fcf137997a6fbc09b408ff28ee846217e63
2017-02-03 10:34:35 +11:00