Commit Graph

61744 Commits

Author SHA1 Message Date
Ted Campbell
d09e551152 Bug 1398601 - Add testcase for loading subscripts within a JSM r=kmag
MozReview-Commit-ID: I09eoUnQYCG

--HG--
extra : rebase_source : b0950f8b5e98ee3bc52fa03067d904687feefcf5
2017-09-10 14:57:04 -04:00
Ted Campbell
ff55566d27 Bug 1398601 - Fix subscript loader when using JSM global sharing r=kmag
When using the subscript loader with JSM global sharing, it was possible
that subscript would pollute the global of all JSMs in the sharing.

MozReview-Commit-ID: 1ah5JUAZwBA

--HG--
extra : rebase_source : 5fecf7dc61019431d67bcee4199e40a8278c8c64
2017-09-10 14:23:32 -04:00
Ted Campbell
7286a2a7db Bug 1398601 - Support target objects in js::ExecuteInJSMEnvironment r=jorendorff
This allows js::ExecuteInJSMEnvironment to take a target object argument
as used by the subscript loader. This adds WithEnvironments with a
corresponding lexical on top of the ordinary NonSyntacticVariablesObject
environment chain.

MozReview-Commit-ID: JhHEfV92Zpv

--HG--
extra : rebase_source : d1ef9564d30a25fd9e1cf1ca7e95bf40c780dcdf
2017-09-10 14:03:42 -04:00
Mike Hommey
0d8ed2b1a5 Bug 1396723 - Simplify the trait users of DoublyLinkedList need to define. r=froydnj
While the flexibility of the current trait is nice, it's actually not
used to its fullest anywhere, and is boilerplate-y. While it is useful
to be able to put the links anywhere, there's not much usefulness from
being able to split mNext and mPrev.

So instead of a trait that allows to get/set mNext and mPrev
independently, we just use a trait that tells how to get a reference to
a DoublyLinkedListElement from a list element itself.

--HG--
extra : rebase_source : 674277bac4fc979f2e483a77b5ef1495baccc7fe
2017-09-02 08:09:58 +09:00
Wes Kocher
05c4aba599 Merge m-c to autoland, a=merge CLOSED TREE
MozReview-Commit-ID: 2dRRh6JLTIL
2017-09-11 15:21:36 -07:00
Andrew McCreight
f89c72edb7 Bug 1377587, part 2 - Rename ExposedPropertiesOnly to OpaqueWithSilentFailing. r=krizsa
This class doesn't have anything to do with __exposedProps__ any more,
so give it a more descriptive name. We'd still like to remove it
entirely eventually.

MozReview-Commit-ID: 87KCpG6f8rI

--HG--
extra : rebase_source : 98a51a6af0fc8446dbcd8efa083d6c79286279d3
2017-09-07 11:17:16 -07:00
Andrew McCreight
2b68b38709 Bug 1377587, part 1 - Always act like __exposedProps__ is missing. r=krizsa
This patch gently removes support for __exposedProps__ by changing
ExposedPropertiesOnly::check() to always return false, while still
failing silently in deny for some kinds of access.

The tests that I changed all involve testing the behavior with
__exposedProps__. I adjusted them to expect it to fail, or to adjust
the error message they get when they fail. That seemed better than
deleting them entirely.

Note that test_bug1065185.html had a bug, so that it never executed
the first case. I fixed that, and then fixed up the test to work when
__exposedProps__ is not supported.

This also removes various bits of the test framework that use
__exposedProps__, but don't actually need to.

MozReview-Commit-ID: 8fvkAmITmXY

--HG--
extra : rebase_source : ef7e2c55adc12511f17f3865ebb46c343875f0b3
2017-08-22 14:24:11 -07:00
Kris Maglione
1b2f22b34a Bug 1396366: Make sure the URLPreloader cache is only written once. r=erahm
MozReview-Commit-ID: FA1BPQ5c6nP

--HG--
extra : rebase_source : 68137a0378cfb2138144c8f53b6b25352c21233d
2017-09-08 13:44:32 -07:00
Kannan Vijayan
b849368e30 Bug 1376717 - Do not crash on failed profiler table lookups for jitcode during report generation. r=mstange 2017-09-11 16:21:03 -04:00
Jason Orendorff
51b4fbde26 Bug 1363200 - JSAPI for realms: Move XPCWrappedNativeScope::mIsAddonScope to CompartmentPrivate. r=mrbkap
--HG--
extra : rebase_source : e4407cea6fe0b1c87ed00c0c93123b43cb64ad69
2017-07-12 16:41:57 -05:00
Jason Orendorff
ce74f6c158 Bug 1363200 - JSAPI for realms: Move mIsContentXBLScope to the CompartmentPrivate. r=mrbkap
In the new order, it will be a compartment-level bit rather than a
realm-level bit, so it does not belong on the Scope.

--HG--
extra : rebase_source : 44aa4620f7fd7f8d253c8c7f09bf8c97c00ff061
extra : source : 5a9c01720d7929e43aa70341d3821bfaa2479592
2017-07-12 15:00:47 -05:00
Jason Orendorff
d438b03787 Bug 1363200 - JSAPI for realms: Clone hasInterposition bit from the scope to the CompartmentPrivate. r=mrbkap
The entire purpose of this patch is to support accessing this bit from
WrapperFactory (see the last hunk) without going through a particular
scope.

--HG--
extra : rebase_source : d2952e981f4b277e6ca565077c6e6d18c69c8df5
2017-06-27 11:06:42 -07:00
Tom Schuster
afb3c8fd44 Bug 1317394. Fix bustage on CLOSED TREE by changing an old test. 2017-09-11 19:04:20 +02:00
Steve Fink
b9d0c4ca17 Bug 1389974 - Remove the implication that killing a value overrides using it, r=bhackett
--HG--
extra : rebase_source : 4b865d6b89b007c3fb086c3d6db8854609200eb3
extra : histedit_source : 618528289cb44533d2e02fcdbc15bebb4efdbdaf
2017-09-01 09:56:15 -07:00
Steve Fink
f7a600dd87 Bug 1389974 - Do not require ffi_call to exist, r=jonco
--HG--
extra : rebase_source : 979c355c2ac5031eef76eeee9e0bb943a8c672f5
extra : histedit_source : 7fa9b820a7f5f849b8d0ecaa895c730caf438007
2017-08-31 11:53:53 -07:00
Steve Fink
bfdb04f583 Bug 1389974 - Annotate nsIScriptSecurityManager.IsSystemPrincipal, r=jonco
--HG--
extra : rebase_source : df7f6cfa22e58dd4e5599a8e34157f79249aa0f6
extra : histedit_source : 7f258938bbb65ebf1235e14edc3de4ae0f74e227
2017-08-30 16:17:39 -07:00
Steve Fink
a81be745e7 Bug 1389974 - Avoid taking reference to temporary Value because it hides from hazard analysis, r=jonco
--HG--
extra : rebase_source : 364ab0b1b980cf2c0be6adad54f0314310887e61
extra : histedit_source : 136a8920019838d5f659595a2dee82af2ef15fe4
2017-08-30 16:35:34 -07:00
Steve Fink
806b4e7219 Bug 1389974 - "Fix" false positive rooting hazard in ArrayInfo(), r=jonco
A hazard is reported where on one iteration through the loop over the arguments, obj is set to a JSObject*. Then on the next iteration, the analysis incorrectly things that the if test could skip overwriting obj, and instead call as() on the previous iteration's value. This turns out to be impossible because reaching as() requires the if condition to be false, which means that both branches of the or are evaluated, and the second branch assigns to obj.

It seems like the call to as() should be dominated by the obj assignment, but in practice the compiler assigns to a temporary boolean variable and then tests it, so in terms of control flow only the as() call is *not* dominated by the obj assignment.

This patch just roots obj.

--HG--
extra : rebase_source : bedc87a91756dcf9a57a7a2c36b98537c6fdd590
extra : histedit_source : 7b9cb11887aa01b927c3623bddb4069be01817f3
2017-08-30 12:53:09 -07:00
Tom Schuster
3b99827d5c Bug 1385278 - Move the rest of IonCaches.h to Assembler-shared.h. r=jandem
--HG--
rename : js/src/jit/IonCaches.cpp => js/src/jit/shared/Assembler-shared.cpp
2017-09-11 18:35:00 +02:00
Tom Schuster
8468764895 Bug 1317394 - Make DataView getters throw for detached array buffers in Nightly. r=anba 2017-09-11 18:35:00 +02:00
Jon Coppeard
c811ddba77 Bug 1396156 - Fix unused private field error when building AutoAssertNoGC as Beta. r=sfink 2017-09-04 02:25:00 -04:00
Jon Coppeard
a2c208aafe Bug 1396156 - Define MOZ_DEV_EDITION for js/src. r=ted 2017-09-08 04:27:00 -04:00
Jan de Mooij
85296b8b20 Bug 1398140 - Remove Ion helper thread pausing mechanism. r=luke 2017-09-11 16:53:38 +02:00
Lars T Hansen
b26492a59b Bug 1206770 - Add --cpu-count with correct documentation, make --thread-count an alias of --cpu-count. r=luke
--HG--
extra : rebase_source : c7fa090c9aebad8e7f6b4d25b4337a37d5343ae6
extra : histedit_source : 62098ffba98b2b52c6e4ec92f4e77784cfe922a8%2C6d78b27794d56bae0d85ab25e9f99954d4ccb45a
2017-09-08 15:41:02 +02:00
Lars T Hansen
f7893bda4c Bug 1146817 - Improve implementation of non-access-atomic safe-for-races accesses. r=sstangl
--HG--
extra : rebase_source : 7a37a8c70cc93d9adaa08a5af81c0b04116e58e4
extra : histedit_source : 61b56328493d67dedce3e09463852d7e973d9cf8
2017-09-08 14:24:04 +02:00
Nicholas Nethercote
50c7852f4d Bug 1397628 - Don't auto-atomize strings passed from script. r=kmag.
If you pass a string from script to an IDL method that takes an nsIAtom,
XPConnect will automagically atomize the string for you.

But nsIAtom is no longer scriptable (see the blockers for bug 1392883,
especially bug 1396694). So the code to convert can be removed.

--HG--
extra : rebase_source : af85fa48c1988348d3a9a81b05ed43403d3b730a
2017-09-07 14:37:56 +10:00
Sebastian Hengst
d71460b2ca merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: LcNJ6RoBeCm
2017-09-10 10:07:00 +02:00
Kris Maglione
8c91f29845 Bug 1398499: Part 3 - Add Marionette tests for global sharing. r=mccr8
This tests both that the settings have the desired effect and that switching
between sharing enabled and sharing disabled without a startup cache flush
does not cause any issues.

Tests for user pref changes are currently non-fatal, since they're known not
to work reliably.

MozReview-Commit-ID: 1ZFwyiNf3da

--HG--
extra : rebase_source : c38bd92d2137c90f8c4d202b7009612b45ff4be9
2017-09-09 17:33:01 -07:00
Kris Maglione
60e49ffdd4 Bug 1398499: Part 2 - Add MOZ_LOADER_SHARE_GLOBAL env var to toggle global sharing. r=mccr8
User preference changes currently don't reliably take effect before component
loader initialization, which means they can't be used to write reliable tests.
Environment variables don't have this problem, so adding an environment
variable override makes testing much easier. It's also fairly convenient
during development, when we need to switch between different configurations
for testing.

MozReview-Commit-ID: 8PufRQNRnoU

--HG--
extra : rebase_source : c5ca2f3cb18a8398c95bbbf86e2cd27430f5161a
2017-09-09 14:59:45 -07:00
Kris Maglione
8b676de4b0 Bug 1398499: Part 1 - Use separate cache paths for shared/unshared scripts. r=mccr8
Scripts for use in shared globals need to be compiled for non-syntactic
scopes, while scripts for standalone globals should be compiled as global
scripts for better performance.

Since the startup cache and script preloader store scripts as they were
compiled in the last session, when global sharing settings may have been
different, it can lead to a mismatch, and a crash, due to loading the wrong
type of script.

Using a separate cache path for each type of script fixes this problem, since
it ensures that the cached script will always be of the type we expect.

MozReview-Commit-ID: DnNb2Xi6KeL

--HG--
extra : rebase_source : d2474d1da3f8e1066c21a7c65693ea09ec5b8074
2017-09-09 14:59:00 -07:00
Sylvestre Ledru
1f29c0843a Bug 1398513 - IsTokenSane: Remove an useless comparison: < 0 with an unsigned is always false r=arai
MozReview-Commit-ID: 42pjZIGID4L

--HG--
extra : rebase_source : ffe64dab7afdd1a63c4d0997097e7c8db0a71aea
2017-09-09 20:38:34 +02:00
André Bargull
eab7196d33 Bug 1395927 - Part 5: Inline RegExpInstanceOptimizable when called with MIRType::Value. r=jandem
--HG--
extra : rebase_source : b0478233159ef5610cf8bb47ecb23f28e5049041
extra : histedit_source : 9496db6a8b328f232ad5b2568f9a84d6b5a86b40
2017-09-08 16:41:11 +02:00
André Bargull
aec411f2fd Bug 1395927 - Part 4: Inline IsRegExpObject when called with MIRType::Value. r=jandem
--HG--
extra : rebase_source : 42b2aa61f0c50317d6b6ce81c94fd6186d93bde0
extra : histedit_source : 50760e65417eeebf3d307395043f229a5027a69f
2017-09-08 16:41:07 +02:00
André Bargull
45f1b766fd Bug 1395927 - Part 3: Inline IsRegExpObject with HasClass. r=jandem
--HG--
extra : rebase_source : 8af7d19768b888c91047785da6b45161430652e2
extra : histedit_source : 7f9d13f74ac3eb6c537f06a0182603902aa35b32
2017-09-08 16:41:03 +02:00
André Bargull
a85ce91fd8 Bug 1395927 - Part 2: Replace old type checks to use current expected types. r=jandem
--HG--
extra : rebase_source : 827508a8805bd1bb9b641d7e5881fa454c174015
extra : histedit_source : c1265551a5bb8a007a301a48c9d429d750f6a713
2017-09-08 16:40:59 +02:00
André Bargull
a6c5c3b763 Bug 1395927 - Part 1: Replace argument count tests with assertions in MCallOptimize for intrinsic functions. r=jandem
--HG--
extra : rebase_source : 3840be288a48983b5474bf2f8e2b4f3c2bc17b47
extra : histedit_source : 06e3d957def16701bbde3c50d50cc37b1daf3c6f
2017-09-08 16:40:55 +02:00
André Bargull
6a30343505 Bug 1395954 - Avoid unnecessay rooting in IsConstructor intrinsic function. r=till
--HG--
extra : rebase_source : 2f00521531fa0f9236905fa4bd89e0a2d5bd8c72
extra : histedit_source : 532d535e8eaa632a013df6e6332c9fb6bd852f77
2017-09-08 16:40:28 +02:00
André Bargull
ee2a40edf8 Bug 1396261 - Don't treat array/object literals with property accessors as nested destructuring assignment targets. r=arai
--HG--
extra : rebase_source : 2ad68b921e96994cfdb9969b0ba9ce32e98415f0
extra : histedit_source : a219135c17084df97dfb699acc112d3c1aeca47e
2017-09-08 16:37:49 +02:00
André Bargull
aa75b0997a Bug 1398113 - Use NameToId for known property names to avoid the indexed property check in AtomToId. r=jandem
--HG--
extra : rebase_source : 1f475f02d98d6696c85207cdafb9e713743984ab
extra : histedit_source : 99612f2c6174d4d76914ea0f0fd76b9f6299fe5e
2017-09-08 16:18:25 +02:00
André Bargull
0e71aaaadf Bug 1398086 - Remove unused functions and classes. r=till
--HG--
extra : rebase_source : 6970905f0b554b2ba0c8ef6d503ead7d18977392
extra : histedit_source : a55bd9e16c7d0c041960d9ab622a3ec2ecdf39f2
2017-09-08 16:14:14 +02:00
Wes Kocher
b5fe3d1dc7 Merge m-c to autoland, a=merge
MozReview-Commit-ID: zTrDLmRmnn
2017-09-08 13:42:01 -07:00
Wes Kocher
2a30786cad Merge inbound to central, a=merge
MozReview-Commit-ID: 4FEkd1x2GD
2017-09-08 13:36:31 -07:00
Tom Schuster
2e1f0b3cfe Bug 1385278 - Move GetReturnAddress into IonCacheIRCompiler. r=jandem 2017-09-08 18:54:04 +02:00
Paul Bone
8e940f47be Bug 1397314 - Revert to original calculation for sizing the nursery. r=jonco 2017-09-08 12:22:49 +10:00
Lars T Hansen
8e076b1e86 Bug 1146817 - Specialize for uint8_clamped for ARM hardware, to benefit clang. r=sstangl
--HG--
extra : rebase_source : b0a8ad739da00e626a76e24328fb3b1e10221c52
2017-09-06 15:11:38 +02:00
Ted Campbell
bc4240f456 Bug 1395360 - Add ExecuteInNonSyntacticGlobal to jsfriendapi r=jorendorff
This API is for use by mozJSComponentLoader to load JSMs into a
NonSyntacticVariablesObject with a shared global.

MozReview-Commit-ID: LtGdY4ULy45

--HG--
extra : rebase_source : 8d71718b567d7a00c4bfc4514ed342b9ab56c7b0
2017-09-02 13:00:20 -04:00
Ted Campbell
512b08d6d4 Bug 1395360 - Factor out ExecuteInNonSyntacticGlobalInternal r=jorendorff
MozReview-Commit-ID: AMISJPCKqw9

--HG--
extra : rebase_source : 5a72ed6c0a4b28a604f58c296a131a32364ddae8
2017-09-02 12:45:25 -04:00
Ted Campbell
abc2b498f1 Bug 1397385 - Simplify js::GetThisValue r=jandem
Remaining uses should only require it to outerize globals and perform
sanity checks.

MozReview-Commit-ID: JGq3gp3tAbY

--HG--
extra : rebase_source : 974ab7f0cb9a6a17aec499f7bf7fc1a8e770ccd5
2017-09-08 00:29:08 -04:00
Ted Campbell
3f15e1f704 Bug 1397385 - Fixup js::ComputeImplicitThis to not leak environments r=jandem
It was possible to leak environments to script and debugger. This patch
simplifies the logic and removes confusing helper functions.

MozReview-Commit-ID: 4jEuYE4Q7bi

--HG--
extra : rebase_source : 8618e74bf2c67c096d540eed70bedce6928596ee
2017-09-07 19:51:42 -04:00
Ted Campbell
7fcbf04f33 Bug 1397385 - Refactor js::GetThisValue r=jandem
Split GetThisValue into three concerns:
    1) Sanity check |this| and convert Window to WindowProxy
    2) Find the |this| of an extensible LexicalEnvironmentObject
    3) Find the target of a WithEnvironmentObject

MozReview-Commit-ID: I2U54IxClSy

--HG--
extra : rebase_source : 3257c79af0517aba2ec343d209945f10815eaf54
2017-09-07 23:40:26 -04:00
Kris Maglione
e872679b9f Bug 1381976: Part 2 - Cleanup private/protected members and mark class final. r=mccr8
MozReview-Commit-ID: Kn9NfKC4GL8

--HG--
extra : rebase_source : 521043472a824fbcc07288e030f9c36601082c20
2017-08-25 13:29:51 -07:00
Kris Maglione
3529438886 Bug 1381976: Part 1 - Use the shared module global for script pre-compilation. r=mccr8
When we pre-compile scripts for a different global than they are eventually
executed in, we need to clone them into the new global before we can execute
them, which can be expensive. This also prevents us from using lazy parsing,
since lazy functions are currently eagerly compiled when cloned.

Since the vast majority of the scripts compiled by the preloader are executed
in the shared modules scope, initially compiling them there removes a lot of
startup overhead. For the few that aren't, we don't lose anything by compiling
them in the shared module global, but we also don't gain anything over
compiling them in the XPConnect compilation scope.

MozReview-Commit-ID: CEh42BmIMhL

--HG--
extra : rebase_source : 93f639022375dd3f0b8e06533e829ce4089d46b7
2017-08-25 19:36:44 -07:00
Till Schneidereit
78bcfac00d Bug 1386534 - Use a C++ version of SpeciesConstructor when calling from C++. r=anba,rs=jonco
MozReview-Commit-ID: qyU0pqt0tV

--HG--
extra : source : b83ec454fdc83c3b14f11d0b27aa57e1ec6c125b
2017-08-01 16:14:05 +02:00
Sebastian Hengst
ec5336561d merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 3DvwIgw2ORU
2017-09-07 23:59:58 +02:00
Ryan VanderMeulen
4d504e0608 Backed out 3 changesets (bug 1393230) because it touches the servo directory.
Backed out changeset 9115364cd4aa (bug 1393230)
Backed out changeset f762f605dd83 (bug 1393230)
Backed out changeset c366bfc13e86 (bug 1393230)
2017-09-07 09:33:53 -04:00
Eric Rahm
986f3bbc5e Bug 1393230 - Part 3: Convert the xpcom string classes to be templated on char type. r=njn, r=fitzgen, r=sfink
This removes the double-include macro hackery that we use to define two
separate string types (nsAString and nsACString) in favor of a templated
solution.

Annotations for Valgrind and the JS hazard analysis are updated as well as
the rust binding generations for string code.
2017-08-14 14:22:50 -07:00
Nicolas B. Pierron
e3bca1c862 Bug 966743 - Inline Array.prototype.push with more than one argument. r=jandem 2017-09-07 13:01:13 +00:00
Jan de Mooij
15de1c0cb3 Bug 1394835 part 4 - Split js::DefineProperty/DefineElement in separate accessor vs data functions. r=anba 2017-09-07 14:59:24 +02:00
Eric Rahm
030b39d813 Bug 1393230 - Part 3: Convert the xpcom string classes to be templated on char type. r=njn, r=fitzgen, r=sfink
This removes the double-include macro hackery that we use to define two
separate string types (nsAString and nsACString) in favor of a templated
solution.

Annotations for Valgrind and the JS hazard analysis are updated as well as
the rust binding generations for string code.

--HG--
extra : rebase_source : 63ab2c4620cfcd4b764d42d654c82f30f984d016
extra : source : 9115364cd4aa078c49bba7911069f8178e55166f
2017-08-14 14:22:50 -07:00
Sebastian Hengst
8eb249afcc merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: JSRVc5yW6Kx
2017-09-07 12:39:12 +02:00
Bobby Holley
52ba410a6e Bug 1397052 - Don't update |result| after the acquire fence in nsThreadSafeRefCnt::operator--. r=froydnj
MozReview-Commit-ID: 1Yp4kFXA5gV
2017-09-06 21:55:12 -07:00
Phil Ringnalda
bc78097d88 Backed out 2 changesets (bug 1396723) for !ElementAccess::Get(mHead).mPrev assertion failures
Backed out changeset 4f17343164b6 (bug 1396723)
Backed out changeset b744eba9ca78 (bug 1396723)

MozReview-Commit-ID: JbvM6oMxEFl
2017-09-06 21:39:20 -07:00
Mike Hommey
b16f4035ba Bug 1396723 - Simplify the trait users of DoublyLinkedList need to define. r=froydnj
While the flexibility of the current trait is nice, it's actually not
used to its fullest anywhere, and is boilerplate-y. While it is useful
to be able to put the links anywhere, there's not much usefulness from
being able to split mNext and mPrev.

So instead of a trait that allows to get/set mNext and mPrev
independently, we just use a trait that tells how to get a reference to
a DoublyLinkedListElement from a list element itself.

--HG--
extra : rebase_source : f84c5799c305a4a3b7dc5deb727a05d4d537bb15
2017-09-02 08:09:58 +09:00
Wes Kocher
f66c96f2c8 Backed out 2 changesets (bug 1396723) for build failures in TestDoublyLinkedList.cpp a=backout
Backed out changeset 1c0f9d069ade (bug 1396723)
Backed out changeset 6ca94a450b81 (bug 1396723)

MozReview-Commit-ID: 2w3WTvhpg6J
2017-09-06 14:30:41 -07:00
Mike Hommey
9a3dd41f50 Bug 1396723 - Simplify the trait users of DoublyLinkedList need to define. r=froydnj
While the flexibility of the current trait is nice, it's actually not
used to its fullest anywhere, and is boilerplate-y. While it is useful
to be able to put the links anywhere, there's not much usefulness from
being able to split mNext and mPrev.

So instead of a trait that allows to get/set mNext and mPrev
independently, we just use a trait that tells how to get a reference to
a DoublyLinkedListElement from a list element itself.

--HG--
extra : rebase_source : b7d502754a764670e291acdd56726948db935497
2017-09-02 08:09:58 +09:00
Sebastian Hengst
9c8a09d458 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: KLssMPhSQ0O
2017-09-06 11:26:13 +02:00
Kris Maglione
e8446ea313 Bug 1396570: Null check getter/setter when JSPROP_GETTER/JSPROP_SETTER is set. r=bholley f=jandem
These flags don't guarantee that the getter and setter functions are defined.

MozReview-Commit-ID: GBcoRYoKHqL

--HG--
extra : rebase_source : 1234ec91cf05566a3130360b152bf2cb986ec1c3
2017-09-04 17:27:31 -07:00
Kris Maglione
b3ba0520ee Bug 1396449: Part 1 - Use WebExtensionPolicy objects in extension content principals. r=krizsa
Going through the extension policy service rather than using
WebExtensionPolicy objects directly adds a lot of unnecessary overhead to
common operations on extension principals, and also makes the code more
complicated than it needs to be.

We also use weak references to policy objects here, since principals should
ideally lose as much of their elevated privileges as possible once the
extension instance that created them has been destroyed (which is something we
couldn't handle easily when we simply tracked ID strings).

MozReview-Commit-ID: KDNvVdvLkIt

--HG--
extra : rebase_source : 1b567919d2461bd0315d1a7d89f330cbd585f579
2017-09-05 11:04:43 -07:00
Philip Chimento
addeeddf9d Bug 1379540 - Don't preserve timestamp when copying configure.in to configure. r=RyanVM 2017-09-05 15:47:44 -07:00
Sebastian Hengst
4d2231acf0 merge mozilla-central to autoland. r=merge a=merge 2017-09-05 23:58:08 +02:00
Andrew McCreight
521ca7e3b6 Bug 1394496 - Evaluate's envChainObject should throw if passed a global. r=tcampbell
MozReview-Commit-ID: 7PBHQkvJigD

--HG--
extra : rebase_source : 113d54cac8ee0072f9ef11169ad0f51f68bca0da
2017-09-05 13:40:01 -07:00
Miran.Karic
85f9cd60a7 Bug 1396767 - MIPS: Fix MOVF in simulator. r=lth
When reading cc field for MOVF instruction, incorrect bits were
accessed. This caused the test asm.js/testMathLib.js to fail.
2017-09-05 03:16:00 -04:00
Nick Fitzgerald
d793c1e4c1 Bug 1277338 - Part 11: Add js/rust to standalone JS source packages; r=sfink
This commit ensures that we copy the js/rust crate into the resulting source
tarball whenever we make standalone JS releases.
2017-09-05 09:26:21 -07:00
Nick Fitzgerald
8f99cd3071 Bug 1277338 - Part 9: Move the servo/rust-mozjs crate providing bindings to SpiderMonkey to js/rust; r=sfink 2017-09-05 09:26:21 -07:00
Lars T Hansen
c2f47ff414 Bug 1146817 - Correct order of arguments to _InterlockedCompareExchange in AtomicOperations. Align test data. Add alignment assertions to x86 and x64. r=me
--HG--
extra : amend_source : ecfc69774ba1355ad2889b4f0f432149b1331628
2017-09-04 16:04:56 +02:00
Lars T Hansen
5d265af2d1 Bug 1396557 - Make JS::StringIsUTF8 stricter. r=luke 2017-09-04 13:36:25 +02:00
Lars T Hansen
97a0e2dd24 Bug 1396342 - Wasm baseline, fix division-by-64-bit constant bug. r=luke 2017-09-04 12:50:35 +02:00
Paul Bone
4798617792 Bug 1392511 - Report the correct information for used bytes. r=jonco
Only use the promotion rate to make pre tenuring and nursery size decisions
(now that it is calculated correctly and not under-estimated) if the nursery
is at least 90% full.
2017-08-25 15:03:24 +10:00
Miran.Karic
11d2b6b69e Bug 1341292 - MIPS: Remove redundant asserts. r=lth
Asserts in MoveEmitterMIPS[32|64]::emitDoubleMove cause failures in some
tests, but they are redundant. The asserts check if the source or
destination register is scratch register, however scratch register is
actually used only for memory to memory move.
2017-09-05 05:42:00 -04:00
Olli Pettay
2e8b602108 Bug 1377131 - Try to trigger collector slices at times which disturb page js less (at least with iframes loaded after the top level page has been loaded), r=mccr8,bz
When triggering an iframe load or starting to parse a document for an iframe, the main thread may often have some time before the new page has been created. Try to trigger CC/GC slice at such point in order to avoid collector later when page is already executing its JS

--HG--
extra : rebase_source : 806df0af1dbaefb1761134eca0bb7c6ade6ac1a9
2017-09-06 18:18:11 +01:00
Ted Campbell
3d936e31cf Bug 1394490 - Javascript loader environments test. r=kmag
This are some unit tests to track regressions in the environment
behavior exposed to embeddings for various javascript loaders inside
Gecko.

MozReview-Commit-ID: 8pn56Skwbat
2017-09-06 13:43:55 -04:00
Jan de Mooij
cd78cf9ad4 Bug 1394835 part 3 - Remove unused flags argument and an unnecessary root. r=anba
--HG--
extra : rebase_source : a6507ddf2973532c0d7094247aab9fc19b92abdb
2017-09-06 16:56:54 +02:00
Jan de Mooij
bffdb727b3 Bug 1394835 part 2 - Split static DefineProperty helpers in jsapi.cpp in data vs accessor functions. r=anba
--HG--
extra : rebase_source : c4e3eae978b67d920705aabda62e68e840704fbf
2017-09-06 16:56:20 +02:00
Luke Wagner
868e49e32b Bug 1395587 - Baldr: allow multiple concurrent, parallel compilations (r=lth)
MozReview-Commit-ID: I8CUt271hdf

--HG--
extra : rebase_source : 1f941f9052916272a3a2715990fcb355e388f992
2017-09-06 08:31:27 -05:00
Luke Wagner
36b63a570d Bug 1395587 - Baldr: remove FunctionGenerator (r=lth)
MozReview-Commit-ID: 4MIQEVy94OU

--HG--
extra : rebase_source : 97559c214a4e325f6ea16719aa2586f509438fdf
2017-09-06 08:31:02 -05:00
Luke Wagner
4cc7b26afd Bug 1395587 - Baldr: shrink the ModuleGenerator interface (r=lth)
MozReview-Commit-ID: DdVvMrtpEIl

--HG--
extra : rebase_source : 6768dbd541689345c120991524de62ff89f6d93c
2017-09-06 08:30:35 -05:00
Nathan Froyd
473735f6b7 Bug 1396862 - eliminate -Wunused-private-field warning in AutoFlushICache; r=jandem
The `name_` field of AutoFlushICache is only ever passed to JitSpew* on
ARM, and on non-debug builds, JitSpew* essentially disappears, so clang
claims `name_` is unused.  It is annoying to jump through hoops to
satisfy clang here, but that's life with fatal warnings.
2017-09-06 08:57:09 -04:00
Sebastian Hengst
3c4740b43a merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-06 11:29:25 +02:00
Jon Coppeard
75d4b3dbc8 Bug 1395366 - Fix bustage caused by missing explicit keyword r=me 2017-09-06 09:18:16 +01:00
Jan de Mooij
0fa0f6ed76 Bug 1395900 part 4 - Add JSOP_ITERNEXT to improve iterator key type information in Ion. r=tcampbell
--HG--
extra : rebase_source : cd6832321a89ee45638944a378ac229dd9a82f6d
2017-09-06 10:03:25 +02:00
Jan de Mooij
73b3db4df0 Bug 1395900 part 3 - Remove unused IonBuilder::nonStringIteration_. r=tcampbell
--HG--
extra : rebase_source : a7b49e36146766c936d2ee068ce248f7cf704efd
2017-09-06 10:02:09 +02:00
Jan de Mooij
e0a93920a4 Bug 1395900 part 2 - Teach analyzeNewLoopTypes about for-in iterator value slot. r=tcampbell
--HG--
extra : rebase_source : 4249cb67860227705d50d85600e8704a4c6405b7
2017-09-06 10:01:46 +02:00
Jan de Mooij
406236a491 Bug 1395900 part 1 - Try to get new loop types in analyzeNewLoopTypes even if the previous header is dead. r=tcampbell
--HG--
extra : rebase_source : 8c60048b3c6b63e495a4b29380e66e1174d7cf57
2017-09-06 10:00:47 +02:00
Jon Coppeard
d992871fbb Bug 1396936 - Simplify tenuring of objects with unique IDs and remove hash table lookup for every tenured object r=sfink 2017-09-06 09:07:10 +01:00
Jon Coppeard
6505902d8d Bug 1396932 - Remove unncessary rekeying of watchpoint map r=sfink 2017-09-06 09:07:10 +01:00
Jon Coppeard
8a6867261a Bug 1396931 - Simplify sweeping of dictionary mode objects allocated in the nursery r=sfink 2017-09-06 09:07:09 +01:00
Jon Coppeard
dd357608a2 Bug 1395366 - Extend zone group's state to cover those intended for future use by helper threads and disallow GC of such groups r=sfink 2017-09-06 09:07:09 +01:00
Lars T Hansen
7692df0ca3 Bug 1146817 - Add float and double test cases for loadSafeWhenRacy / storeSafeWhenRacy. r=sstangl
--HG--
extra : source : bdd79a98de6a8d1bb3248d6e857ed4c3e875bf1e
extra : amend_source : 0fa9f4c1b135c8f7cb5dc3fe2b45c353aa752796
2017-09-05 13:48:53 +02:00
Lars T Hansen
6fa93e8121 Bug 1146817 - Clean up assertions for tier-1 platforms. r=sstangl
--HG--
extra : source : 18f1fb6113eb6c880e02e509f67d3469b277a3f5
extra : amend_source : 7e8a273fade81bf431383264db9c0f0d38d85a0d
2017-09-05 11:06:17 +02:00
Jan de Mooij
1c43dd975e Bug 1395919 - Don't copy the unknown-properties flag in AddPropertyTypesAfterProtoChange. r=bhackett 2017-09-07 12:51:45 +02:00