Commit Graph

62321 Commits

Author SHA1 Message Date
Rofael Aleezada
111c53a000 Bug 1310971 - Change |HandleValueArray(const RootedValue& value)| to |HandleValueArray(HandleValue value)|. r=jonco
--HG--
extra : amend_source : aa9e8520e679b5fcca691a3f36cccf3086b8557b
2017-10-18 11:48:00 -04:00
André Bargull
6e8e617ff4 Bug 1398780 - Part 2: Remove unnecessary rooting in SpeciesConstructor and some Array methods. r=till
--HG--
extra : rebase_source : 27ee10c9710b9eb78763e9de679178b3e5719be5
2017-10-18 09:24:06 +01:00
André Bargull
15dbd9ec35 Bug 1398780 - Part 1: Add a fast path when Array.prototype.slice is called with an arguments object. r=till
--HG--
extra : rebase_source : b02ccaf4d1718fa5c412a53601b65da3d7f8f3e6
2017-10-17 22:57:40 +01:00
Tom Schuster
fdc329472a Bug 1378186 - Implement super.property in Ion. r=jandem 2017-10-18 20:47:29 +02:00
Tom Schuster
cb997a8576 Bug 1378186 - Fix GetElemSuper stack handling in baseline. r=jandem 2017-10-18 20:46:41 +02:00
Jan de Mooij
7929e1f927 Bug 1409441 part 4 - Inline some more methods. r=bbouvier 2017-10-18 17:13:07 +01:00
Jan de Mooij
1030d1700b Bug 1409441 part 3 - Inline some Activation/JitActivation methods. r=bbouvier 2017-10-18 17:12:47 +01:00
Jan de Mooij
bfbd5dfb58 Bug 1409441 part 2 - Move null check from clearRematerializedFrames to JitActivation dtor. r=nbp 2017-10-18 17:12:21 +01:00
Jan de Mooij
88e88d7bf9 Bug 1409441 part 1 - Inline ActivationEntryMonitor constructor/destructor. r=fitzgen 2017-10-18 17:11:41 +01:00
Jason Orendorff
c51aa0ae1e Bug 1407414 - Crash in js::GetOwnPropertyDescriptor. r=bz
--HG--
extra : rebase_source : 809c17494fa0aafcc0964593510457d1b3712ddc
2017-10-17 16:25:40 +01:00
Nicholas Nethercote
7f098bdb9c Bug 1409227 (part 4) - Replace nsMemory::Clone(id, sizeof(nsID)) with nsID::Clone(id). r=mccr8.
This change requires introducing nsID::Clone(). Because it's infallible, the
patch also removes some redundant failure-handling code. (nsMemory::Clone() is
also infallible, so this code was redundant even before this change.)

--HG--
extra : rebase_source : ef22757d3fa814320490bf7e19e822b8f0c4bdc3
2017-10-18 10:39:20 +11:00
Nicholas Nethercote
1fdf1c46d3 Bug 1409227 (part 3) - Replace nsMemory::Clone(s, sizeof(s)) with moz_xstrdup(s). r=froydnj.
The new code is slightly less efficient because it requires measuring the
string length, but these strings are all short so it shouldn't matter.

Note that the case in DataToString() is a little different. The std::min() that
was there appears to be excessive caution -- this code is always printf'ing
some kind of number, so 32 chars should never be reached -- but it was bogus
anyway, because if 32 was exceeded then (a) we would have overflowed `buf`, and
(b) we'd be returning a non-null-terminated string.

--HG--
extra : rebase_source : b666ad72c09d8c32b98bb9abc9dce1bd0c912c9b
2017-10-17 13:28:40 +11:00
Nicholas Nethercote
3076238153 Bug 1409227 (part 2) - Replace nsMemory::Clone(s, strlen(s)+1) with moz_xstrdup(s). r=erahm.
They are equivalent -- both infallible, both requiring measuring the length of
the string -- but moz_xstrdup is much more readable. (One place deals with
16-bit strings and so uses NS_strdup instead, which is also infallible.)

The patch also removes some failure-path code that will never execute due to
the infallibility.

--HG--
extra : rebase_source : 115574cf55db90b60e6bee59e5dc6ee409374159
2017-10-17 13:09:29 +11:00
Sebastian Hengst
f3f32c7851 merge mozilla-central to mozilla-inbound. r=merge a=merge
--HG--
rename : media/libstagefright/binding/include/mp4_demuxer/ByteReader.h => media/libstagefright/binding/include/mp4_demuxer/BufferReader.h
extra : rebase_source : 98d9275bf6065bc701881aed6c4635f1da9ea642
2017-10-18 00:05:25 +02:00
Sebastian Hengst
34714cebde merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 2KL1o3EPUk
2017-10-17 23:52:28 +02:00
Sean Stangl
031b782d8e Bug 1340532 - Limit number of SharedArrayBuffers in normal JS code. r=lth 2017-10-17 11:18:42 -04:00
Luke Wagner
70c9a6e4aa Bug 1406421 - Baldr: allow parallel compilation to proceed until finish() (r=bbouvier)
MozReview-Commit-ID: 4qjAeC668Mp

--HG--
extra : rebase_source : 4b1b238f0732cda0abd33c08ac676c495d9347f1
2017-10-17 08:55:36 -05:00
Luke Wagner
584ea5e01a Bug 1406421 - Remove invalid assert from ~BufferStreamState() (r=till)
MozReview-Commit-ID: 6f1xRdHoLWL

--HG--
extra : rebase_source : 21aa5213b3f0fdab67f43c18d2b6fb6cfa2ca8b8
2017-10-17 08:54:17 -05:00
Luke Wagner
8425b460cd Bug 1406421 - Fix js::Thread race on windows (r=till)
MozReview-Commit-ID: 32MrHVeATH5

--HG--
extra : rebase_source : 2306fd91f8ebee0d2d23d0ce93f8e1af3c4865eb
2017-10-17 08:52:40 -05:00
André Bargull
7bd6ecd055 Bug 1398185 - Part 2: Remove more unnecessary rooting from Intl code. r=Waldo 2017-10-16 14:04:18 +02:00
André Bargull
f2192cca53 Bug 1398185 - Part 1: Use null prototype for default options in Intl objects. r=Waldo 2017-10-16 22:45:57 +01:00
Jon Coppeard
79dd57964d Bug 1408375 - Split zone and runtime malloc counters r=sfink 2017-10-17 19:54:28 +01:00
Lars T Hansen
34d21b7e9e Bug 1404683 - introduce wasmCompileMode in testing functions, only run a baseline oom test when baseline-only compilation is enabled. r=bbouvier
--HG--
extra : rebase_source : 8a681e996b635503f47a4ce28fe4eadd9a74c2e6
extra : source : f09dacc89e47828354e7b07f484af958711bd57b
2017-10-10 13:06:05 +02:00
Lars T Hansen
355570f338 Bug 1388785 - also force rabaldr to be tested. r=bbouvier
--HG--
extra : rebase_source : bf2b599665b0c3a609cd0612850c5c84ef607364
extra : source : 3e90d14cce888eb426cfb739857c9c9318d44147
2017-10-10 13:49:20 +02:00
Lars T Hansen
3f402ae78d Bug 1336027 - wasm baseline, move platform functionality into MacroAssembler layer. r=nbp
--HG--
extra : rebase_source : 9a79fc2b7631a142a5ce0792d520f5be7f54df02
extra : intermediate-source : b0cea1505a204dca0d9ce68820653a3c57b08dd7
extra : source : 55842d0468fc8fcc7d7d3964a3ecdc83cb1990b6
2017-10-13 07:59:54 +02:00
Koki Takahashi
6b9e774ce9 Bug 1405943 - Part 2: Add tests for pipeline operator. r=arai 2017-10-17 00:10:00 -04:00
Hiroaki Karasawa
24b109a6bc Bug 1405943 - Part 1: Implement Pipeline Operator |>. r=arai 2017-10-17 00:10:00 -04:00
Jon Coppeard
24a661aec0 Bug 1407314 - Fix remaning rooting hazards by telling the analysis that the object moved hook can't GC r=me on a CLOSED TREE 2017-10-17 11:53:43 +01:00
Sylvestre Ledru
6d1f8863a7 Bug 1409284 - js::atomics_wait: Remove unnecessary parentheses in declaration of 'addr' r=bbouvier
MozReview-Commit-ID: 9PidKoEWpOf

--HG--
extra : rebase_source : cd6e1b453b29f925a1f385d2a52b5ab4278fff79
2017-10-17 09:59:26 +02:00
Andi-Bogdan Postelnicu
55f3b13f1b Bug 1409285 - Avoid using memcpy on HeapSlot that is not trivially copyable. r=jandem
MozReview-Commit-ID: IdM3RHAIFin

--HG--
extra : rebase_source : fc8b15e756f35cfe2dbec008a6729f36916a8b68
2017-10-17 11:50:31 +03:00
Jon Coppeard
e5dab55342 Bug 1408375 - Remove unnecessary treatment of malloc bytes count now this is no longer stored as a ptrdiff_t r=sfink 2017-10-24 09:24:08 +01:00
Jon Coppeard
4bb0c07049 Bug 1408375 - Also update JIT memory counters on GC r=sfink 2017-10-24 09:23:16 +01:00
Sylvestre Ledru
5cc6cb2b49 Bug 1408750 - allocateForDefinition: Remove unused variable 'from' r=nbp
MozReview-Commit-ID: H9X1NAiYNny

--HG--
extra : rebase_source : 608e7c2e5d21394c2ca7110bb4f4c61e649a23e1
2017-10-15 16:24:31 +02:00
Kris Maglione
bd6d63772a Bug 1407428: Hand out a const array reference for expanded principal whiteList. r=krizsa
The current API makes the life time and ownership of the result array unclear
without careful reading. The result array is always owned by the principal,
and its lifetime tied to the lifetime of the principal itself. Returning a
const array reference makes this clear, and should prevent callers from
accidentally modifying the returned array.

MozReview-Commit-ID: 3f8mhynkKAj

--HG--
extra : source : 237acf2879f6222bc4b076c377bf026d18a6ebef
extra : amend_source : dfaf6e88e3c4758f7fdcf7fb422d457edafab1b7
2017-10-10 15:00:16 -07:00
Nicholas Nethercote
c2c63f9811 Bug 1408275 - Teach the write hazard analysis about more heap allocator functions. r=sfink.
This bit me in bug 1407494 part 5, where I replaced some NS_strdup() calls with
moz_xstrdup().

MozReview-Commit-ID: 7LnlCJDvgm5

--HG--
extra : rebase_source : 332c6615d8731e9cd8e122f6f98b9f2f43f97121
2017-10-13 15:24:21 +11:00
Sebastian Hengst
11a2b8ef67 Backed out changeset 237acf2879f6 (bug 1407428) for frequent crashes, e.g. in xpcshell's test_bug248970_cookie.js. r=backout on a CLOSED TREE
--HG--
extra : amend_source : 1ccac4fb953566239cba8db7d6f8bdca4ce48b35
2017-10-16 00:00:15 +02:00
Kris Maglione
7d8f8ea3d6 Bug 1407428: Hand out a const array reference for expanded principal whiteList. r=krizsa
The current API makes the life time and ownership of the result array unclear
without careful reading. The result array is always owned by the principal,
and its lifetime tied to the lifetime of the principal itself. Returning a
const array reference makes this clear, and should prevent callers from
accidentally modifying the returned array.

MozReview-Commit-ID: 3f8mhynkKAj

--HG--
extra : rebase_source : d2a5e0862f8c964fb5a3e46b50c2e9629b218699
extra : amend_source : 27d7a7ef5da6fe2aa1104009b6ee067465db73e1
2017-10-10 15:00:16 -07:00
Jan de Mooij
ffe7770ccf Bug 1407607 followup - Fix rooting hazard. r=red
--HG--
extra : rebase_source : 1eef543c0461c601c47cbfb96a3ae3309b4221c1
2017-10-14 14:22:15 +02:00
Jan de Mooij
0ca4fd5841 Bug 1407607 - Use a single entry point for C++ -> JIT calls. r=nbp
--HG--
extra : rebase_source : 8aab46bd17472a0e5f88cd3255d152453f7648c2
2017-10-14 12:45:54 +02:00
Leo Balter
86d755f783 Bug 1374290 - Update the skip list. r=sfink
--HG--
extra : rebase_source : ca994ba99f9dedd5f87a3a1c29d478bc3dd6e758
2017-10-12 16:41:38 -07:00
Leo Balter
7e7212e4ce Bug 1374290 - Test the local import script. r=sfink
--HG--
extra : rebase_source : ae03ea7cd4c28c2614cf66825c215804d0954dcb
2017-09-12 13:45:00 -07:00
Leo Balter
9a433cb44f Bug 1374290 - Test262 export script. r=shu
--HG--
extra : rebase_source : aba4978548759eac0793e9bc04aaa4454864b457
2017-10-13 14:40:01 -07:00
Leo Balter
f107cf6e6c Bug 1374290 - Import diff contents from a local Test262 folder. r=shu
--HG--
extra : rebase_source : 727a4b653cb5909a727475bb29f1f45a38df599e
2017-08-18 15:58:00 -07:00
Steve Fink
67d7e8dcdc Bug 1406570 - Rooting improvements, r=jonco,bz
--HG--
extra : rebase_source : 48d6fd63e016abe7a6ce22e621d25858560e61f1
2017-10-09 10:59:02 -07:00
Steve Fink
04e342c3ba Bug 1305005 - Remove race on TypeString() char buffers, r=jonco
--HG--
extra : rebase_source : 400e68078258f455e2645dca4c81eaa4783498f7
extra : source : 3d4353f7c8b7d4a8672fe6b0a5572d9393ee8026
2017-10-12 17:39:59 -07:00
Steve Fink
4a0ee43977 Bug 1402582 - Make shell's EnvironmentPreparer grab cx from TLS. r=bhackett
--HG--
extra : rebase_source : d0e1fab3aa25fd33bc77e192314535bd7a7b7b59
2017-10-10 16:16:21 -07:00
Benjamin Bouvier
e3ff926fb2 Bug 1408356: Add missing NativeABIPrologueClobberable in none builds; r=luke
MozReview-Commit-ID: LH56gtrjyji

--HG--
extra : rebase_source : a45f1774e4fba0b9b508e149b9166fbe9f997907
extra : amend_source : ad6e104fc8d84475ee530b44373e83bbff376f35
2017-10-13 14:41:43 +02:00
Nicolas B. Pierron
7ddabbc5c9 Bug 1407822 - Remove BumpChunk::magic_ value when the assertion are removed. r=jandem 2017-10-13 13:44:01 +00:00
Jon Coppeard
3d3f30bbe6 Bug 1405980 - Dump debugging information if zones are not scheduled as expected r=sfink 2017-10-13 11:20:54 +01:00
Sebastian Hengst
1c1a5cef77 Merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 5oI3jfNbQVt
2017-10-13 11:12:47 +02:00
yuyin
0005d455fc Bug 1407867 - MIPS64: Add missing save/restore registe fp. r=lth
fp use as Assembler::FramePointer, also see Bug 1393723.
2017-10-11 18:49:00 -04:00
Sebastian Hengst
87cd48824a merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE 2017-10-13 00:53:56 +02:00
Benjamin Bouvier
e1285cf36b Bug 1406879: Skip wasm frames when when enabling profiler and setting profiling FP; r=jandem
MozReview-Commit-ID: EIjjda2AorV

--HG--
extra : rebase_source : 826c31104983b0207ff4ce1f9a7a89ea75f2630c
2017-10-11 16:03:47 +02:00
Jon Coppeard
5537b2c136 Bug 1407505 - Relax assertion in ExecutableAllocator destructor if the embedding leaked r=jandem 2017-10-12 13:34:56 +01:00
Benjamin Bouvier
74c8c8384a Bug 1406883: Make the constructing of MutableHandleValue explicit in CoerceInPlace calls; r=luke, r=jonco
MozReview-Commit-ID: 5Xfc8W9TR6v

--HG--
extra : amend_source : a8689c5e2206ec6bd06ab5455a638f19427f854f
2017-10-09 12:08:46 +02:00
Jon Coppeard
5f676753c0 Bug 1395744 - Save scheduled zones at the start of GC in case begin callback changes them r=sfink 2017-10-12 10:32:24 +01:00
Jan de Mooij
b39bc4656a Bug 1407058 - Fix isDataProperty to return false for accessors with nullptr getter/setter. r=evilpie 2017-10-12 11:06:55 +02:00
Jan de Mooij
4f3b63ae99 Bug 1406957 part 4 - Remove now-dead InterpreterFrame createSingleton flag. r=tcampbell 2017-10-12 11:04:46 +02:00
Steve Fink
3d3cc368d4 Bug 1407236 - Use allow-oom instead of error: out of memory for racy test, r=jonco
--HG--
extra : rebase_source : e238f94daaa01f46198e192c7fc58f3297b6b91f
2017-10-11 16:28:55 -07:00
Steve Fink
9a54469366 Bug 1406570 - "Root" compartment while entering it, r=jonco
--HG--
extra : rebase_source : 71cf95cb8dc7c561787a9d93162bcc63c610ef88
2017-10-11 17:19:24 -07:00
Brian Hackett
7e6045a916 Bug 1402836 - Avoid racing while destroying JS shell contexts, r=jandem.
--HG--
extra : rebase_source : b1d7ab23e9a347fae3efbea0b00aab8dfb3a6202
extra : histedit_source : 09d44a28f35289aad0195c29d6f5d1442baa7913
2017-10-12 05:23:29 -07:00
Jason Orendorff
2db41f075d Bug 1396466 - Remove Xray expando chains from the weakmap when transplanting nodes. r=bz
--HG--
extra : rebase_source : aa90385160666b155cc8dbad63bcfa34d3e50d32
extra : amend_source : 6b9ebda268a6198f5e0143e5449f9d62ef1aed76
2017-10-10 10:42:18 -05:00
Ted Campbell
810352b6f4 Bug 1402596 - Init Promise job queue on cooperative threads (jsshell) r=till
MozReview-Commit-ID: 6ikd7yZyIRk

--HG--
extra : rebase_source : 97c356490a938d98a1daaae3cdc28809b9f8ef94
2017-10-11 11:32:32 -04:00
Dustin J. Mitchell
c673307b64 Bug 1403322 - schedule jsreftests inclusively; r=ahal
This is just one flavor of the "reftets" suite, so we need to add a distinct
scheduling component for it.

MozReview-Commit-ID: AtKuvuUCk1l

--HG--
extra : rebase_source : 3f316f0293e8d1245fc6e891bbcd044586ab6c06
2017-10-11 17:31:20 +00:00
Dustin J. Mitchell
0b3b170dce Bug 1403322 - schedule jittests inclusively; r=ahal
MozReview-Commit-ID: JcvMSTBJ83p

--HG--
extra : rebase_source : d51581a5418fdf5b119b8670ccf89cafcc0743ae
2017-10-11 17:21:11 +00:00
Brian Hackett
ed36a3172e Bug 1355109 - Add IC for property reads on xrays, r=jandem,bz.
MozReview-Commit-ID: 942dk0gNh23
2017-07-21 07:49:53 -07:00
Benjamin Bouvier
6d0c96ad81 Bug 1406041: Add a fast-path for wasm code segment lookup; r=luke
MozReview-Commit-ID: L6LXvOOaNKs

--HG--
extra : rebase_source : c6efebdeba448366dd6f8adf740cbc167edadbbd
extra : amend_source : 07625d42aaadf3dc2e13176a66ad09bd7d705ea0
2017-10-11 19:01:57 +02:00
André Bargull
f5a7cfc81b Bug 1407674 - Shrink extlangMappings by removing redundant "preferred" fields. r=Waldo 2017-10-12 05:30:19 -07:00
André Bargull
46b0925912 Bug 1407551 - Allow any printable ASCII characters in time zone names for Date.prototype.toString. r=Waldo 2017-10-12 05:33:18 -07:00
Steve Fink
7a34436b57 Bug 1406508 - Allow fuzzers to set binary clone buffer data, r=jorendorff
--HG--
extra : rebase_source : a336fba8c49ed474fd6334a4d79eec038fb32bc1
2017-10-09 17:41:01 -07:00
Nicolas Auvray
b85b90d54f Bug 1285917 - Add tests for JS::InformalValueTypeName. r=jorendorff
--HG--
extra : rebase_source : b8d242611174ac1ceaf3761b47c654ee657ab524
extra : amend_source : a098f77e902d9d8248dab06a950faf5726270e01
2016-12-11 20:05:59 +01:00
André Bargull
ee940f786b Bug 1407584 - Part 3: Update test262 skip list. r=Waldo
--HG--
extra : rebase_source : 8d51cab94744f8a3dc698b4fae08a56a786b1162
2017-10-11 05:36:42 -07:00
André Bargull
c234564550 Bug 1407584 - Part 2: Update test262 files. rs=Waldo
--HG--
extra : rebase_source : 9f4b567d79e1a9f6b12704378523a3fdf92891c8
2017-10-11 05:36:38 -07:00
André Bargull
daef1c9317 Bug 1407584 - Part 1: Update the list of supported and unsupported features for the test262 importer. r=Waldo
--HG--
extra : rebase_source : b1dbe0c67ebff6e8c9ab768a2a9bc9b8f8f2370f
2017-10-11 05:36:21 -07:00
Brian Hackett
731824c92b Bug 1405820 - Remove ReportUsageErrorASCII assertions that are invalid when used with shell clone() function, r=waldo. 2017-10-11 10:31:10 -07:00
André Bargull
ffdab4fa13 Bug 1405284 - Avoid extra copying of property keys when calling js::GetOwnPropertyKeys. r=jandem
--HG--
extra : rebase_source : 1bcf4acbf4db018e403b82d724da50297a5470a7
2017-10-11 06:50:59 -07:00
André Bargull
f5c8496af4 Bug 830304 - Compute correct time zone offsets for Date methods. r=Waldo
--HG--
extra : rebase_source : 480e087c1e19771f18ccb7146b55f063f347b817
2017-10-11 06:54:44 -07:00
Benjamin Bouvier
ffd821fe46 Bug 1406041: Make testTypedArrayInit temporarily faster to run in ARM sim to fix bustage on a CLOSED TREE; rs=luke
--HG--
extra : amend_source : 480a8dc09e76a1b825218ff758e311426f31e411
2017-10-11 18:34:55 +02:00
Benjamin Bouvier
7a5082e0d1 Bug 1406897: use quit() instead of top-level return in test to fix bustage on a CLOSED TREE; r=me 2017-10-11 18:27:53 +02:00
Jon Coppeard
f665a1c133 Bug 1384049 - Trigger an incremental GC based on malloc memory counters r=pbone 2017-10-04 15:45:30 +01:00
Benjamin Bouvier
c4b8fd08c0 Bug 1406897: Use JitFrameIter::operator++ in OnlyJSJitFrameIter::settle; r=luke
--HG--
extra : rebase_source : b26122993792502ad0f30f63abccc41a7abd853e
extra : amend_source : e718b2e5469a8dd7ae9e489a1626c37b80ae771b
2017-10-11 16:45:32 +02:00
Benjamin Bouvier
dbd7908b4d Bug 1406041: Implement process-wide wasm code lookup; r=luke
--HG--
extra : rebase_source : 78f074a8aa470014276f77bda151d3165588fa4d
2017-10-11 11:40:30 +02:00
Jason Orendorff
7b5f4b93ca Bug 1405760 - Don't set the op field of array literal and object literal nodes. r=Waldo
--HG--
extra : rebase_source : 59251498af17b43d3146fdbd6db13e0c23090a79
2017-10-04 15:08:20 -05:00
Jason Orendorff
e899cc8b59 Bug 1405760 - Remove ParseHandler::newBinary from the interface. Don't set the op field of assignment nodes. r=Waldo
FullParseHandler::newBinary remains as a private method.

--HG--
extra : rebase_source : f51fe8f1a3357e826d05c8afc3fad4139eceec3a
2017-10-04 11:51:14 -05:00
Jason Orendorff
13fc4dd2ea Bug 1405760 - Remove op argument from ParseHandler::newList signatures. r=Waldo
Several kinds of list nodes still have a pn_op set, even with this change.

--HG--
extra : rebase_source : a64aeef176f93363e0be477e2a4a036f40c8d6a2
2017-10-04 11:17:18 -05:00
Jason Orendorff
dc98eca3a4 Bug 1405760 - Don't set the op field for other unary nodes either. r=Waldo
--HG--
extra : rebase_source : 644aef19dedc9901eb65d3ad6c3e68660ce870f5
2017-10-04 10:41:54 -05:00
Jason Orendorff
7de5fe074e Bug 1405760 - Don't set the op field of nodes for unary operators. r=Waldo
--HG--
extra : rebase_source : 5ffb6696f69e8ecf4725af2333d2bc239a7eeea8
2017-10-04 10:21:46 -05:00
Jason Orendorff
5bf23340aa Bug 1405760 - Change add{Class,Object}MethodDefinition not to take a JSOp argument. r=Waldo
The ParseNodes still store a JSOp, though, for now.

--HG--
extra : rebase_source : 59483bcf080699e5631d32cc800036ff9091b632
2017-10-04 09:43:16 -05:00
Jason Orendorff
d7a3eb23e0 Bug 1405760 - Remove ParseHandler::newTernary. r=Waldo
This also removes the (already-obsolete) op argument from TernaryNode constructors.

--HG--
extra : rebase_source : 0fd68ea1da8b90bfd289dca2ba19c179023e48a3
2017-10-04 09:21:39 -05:00
Jason Orendorff
e7b835b2c0 Bug 1405760 - Don't set the op field of nodes for binary operators. r=Waldo
--HG--
extra : rebase_source : 90a217fabcf960c3c12ac3fae8de56863d4ae1af
2017-10-04 10:23:25 -05:00
Jason Orendorff
c80673f70b Bug 1405760 - Remove ParseHandler::newNullary, replacing the one use with a new method. r=Waldo
--HG--
extra : rebase_source : 7ef6ca92e439e815e7352102b8e4fe9be11b3ed4
2017-10-04 08:50:05 -05:00
Jason Orendorff
a9b8193313 Bug 1405760 - Remove the JSOp argument from ParseHandler::newDeclarationList. r=Waldo
This changes these ParseNodes to have pn_op=JSOP_NOP, but the field is
already ignored downstream for these node kinds.

--HG--
extra : rebase_source : e9d58d22dd116de134e3e36e6c8f3754511bc735
2017-10-04 08:42:50 -05:00
Jason Orendorff
c30e5830c0 Bug 1402456 - Document that entering a compartment roots the global. r=sfink
--HG--
extra : rebase_source : 229cc90fcb5bc93b1e4f39be5f7d95bbabe9ccc3
2017-09-22 15:01:52 -05:00
Jason Orendorff
fe9baf1ed1 Bug 1277734 - Null test after dereference in CompartmentChecker::check. r=billm
--HG--
extra : rebase_source : e9e52309c12b7d27c388aaf10200dda4ed80ab33
2017-10-03 09:57:13 -05:00
Kartikaya Gupta
0998110100 Bug 1407578 - Fix build error due to unused variable. r=jorendorff
MozReview-Commit-ID: 6tpEC7i3Mgh
2017-10-11 10:17:28 -04:00
Jan de Mooij
1c2dea7b92 Bug 1406957 part 3 - Get rid of some code duplication in jit::CreateThis and MaybeCreateThisForConstructor. r=tcampbell 2017-10-11 14:55:17 +02:00
Jan de Mooij
da26f3886d Bug 1406957 part 2 - Rewrite this-creation to be simpler and more consistent. r=tcampbell 2017-10-11 14:54:31 +02:00
Jan de Mooij
0278bed6ce Bug 1406957 part 1 - Remove Maybe<InvokeState> in Interpret. r=tcampbell 2017-10-11 14:53:10 +02:00
Jon Coppeard
fa34bb9ca6 Bug 1406065 - Make JSGC_MAX_MALLOC_BYTES param the same in the shell as the browser r=sfink 2017-10-11 13:22:09 +01:00
Sebastian Hengst
051f888cef Backed out changeset 759a43ebc6bf (bug 1405541) for asserting in devtools/client/performance/test/browser_perf-console-record-03.js on Windows 7. r=backout
--HG--
extra : amend_source : 3df3e75c561cbc42db104ec1a6f6026ef021e3c7
2017-10-11 13:15:26 +02:00
Nicholas Nethercote
add7e65972 Bug 1405541 - Split AUTO_PROFILER_LABEL_DYNAMIC into three macros. r=mstange.
It's easy to mess up the scoping so that (a) the label is pushed and then
immediately popped, and/or (b) the string doesn't live long enough. It's also
easy to do a utf16-to-utf8 conversion unnecessarily when the profiler is
inactive.

This patch splits that macro into three new ones that are harder to mess up.

- AUTO_PROFILER_LABEL_DYNAMIC_CSTR: same as current.
- AUTO_PROFILER_LABEL_DYNAMIC_NSCSTRING: for nsCStrings.
- AUTO_PROFILER_LABEL_DYNAMIC_LOSSY_NSSTRING: for nsStrings.

--HG--
extra : rebase_source : 53c8b43b6a1be06d00618a133e28bf95c46a3ba3
2017-10-11 13:03:34 +02:00
Lars T Hansen
8b81bfc9d4 Bug 1361526 - merge from upstream test262 to kill intermittents. r=me
--HG--
extra : rebase_source : af91036a74264ff546c164e69b8ff6b5988d9506
2017-10-11 11:16:49 +02:00
Lars T Hansen
6feb402ed2 Bug 1402257 - use some fraction of physical cores for tier-2 compiles. r=luke
--HG--
extra : rebase_source : 7a09d8ba264cc9ff21d8dbd2bb9c3d31ba561fcb
extra : histedit_source : 95ce64a768b6140b425cc8218e795178eac99cf9
2017-10-09 19:37:22 +02:00
Jan de Mooij
bca78a439b Bug 1385843 - Handle nested eval-in-frame better in ThrowUninitializedThis. r=tcampbell 2017-10-11 10:57:41 +02:00
Jan de Mooij
3bb67d4f17 Bug 1404306 - Set ION_COMPILING_SCRIPT in AutoLockHelperThreadState scope to avoid a shell-only race. r=jonco 2017-10-11 10:56:03 +02:00
Jan de Mooij
763bc6ef8d Bug 1406888 - Inline GeckoProfilerEntryMarker ctor/dtor. r=anba 2017-10-11 10:30:00 +02:00
Jan de Mooij
cc66552944 Bug 1406900 - Devirtualize RunState methods. r=luke 2017-10-11 10:29:05 +02:00
Phil Ringnalda
bd5ca8f40d Backed out changeset 901a16fec9fc (bug 1405541) for Windows assertion failures
MozReview-Commit-ID: DRGWXU4Tbfk
2017-10-10 23:28:33 -07:00
Nicholas Nethercote
b23fb68ae3 Bug 1405541 - Split AUTO_PROFILER_LABEL_DYNAMIC into three macros. r=mstange.
It's easy to mess up the scoping so that (a) the label is pushed and then
immediately popped, and/or (b) the string doesn't live long enough. It's also
easy to do a utf16-to-utf8 conversion unnecessarily when the profiler is
inactive.

This patch splits that macro into three new ones that are harder to mess up.

- AUTO_PROFILER_LABEL_DYNAMIC_CSTR: same as current.
- AUTO_PROFILER_LABEL_DYNAMIC_NSCSTRING: for nsCStrings.
- AUTO_PROFILER_LABEL_DYNAMIC_LOSSY_NSSTRING: for nsStrings.

--HG--
extra : rebase_source : 59f77df0124249bfd11fee3585420a17b4201d37
2017-10-04 13:44:24 +11:00
Sebastian Hengst
044775ad49 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-11 00:01:28 +02:00
Sebastian Hengst
01cd7f3d0f merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: GbmY183Epi2
2017-10-10 23:56:11 +02:00
Luke Wagner
cf897d6fcb Bug 1347644 - Baldr: implement ConsumeStreamCallback in browser (r=bkelly)
MozReview-Commit-ID: DXv2MegefDw

--HG--
extra : rebase_source : aca4d6e40ae9af03e05520ec8bdef92889e44acc
2017-10-10 14:41:24 -05:00
Luke Wagner
e5a32cf225 Bug 1347644 - Baldr: shell WebAssembly.compileStreaming and instantiateStreaming (r=till)
MozReview-Commit-ID: 9b6RH95tqUI

--HG--
extra : rebase_source : 00ea4341d70b0defcc3b3e5db46b07c82a9de17e
2017-10-10 14:17:50 -05:00
Jan de Mooij
9d1f02bc43 Bug 1405994 part 2 - Use arguments rectifier when entering JIT code instead of a Vector. r=nbp
--HG--
extra : rebase_source : 474d7454f92d0fff92a1b38403b3ba68fe31c0e8
2017-10-10 14:04:46 +02:00
Jan de Mooij
6fefbc439b Bug 1405994 part 1 - Handle rectifier frames following c++ entry frame in profiler code. r=bbouvier
--HG--
extra : rebase_source : 6380e4cdde9268b59f20571ac557c175b51d08b5
2017-10-10 14:03:24 +02:00
Jon Coppeard
4ee603a0a2 Backed out changeset 3b19f13cf22a (bug 1406746) for rooting hazards 2017-10-10 13:03:36 +01:00
Jon Coppeard
74f1c6ece5 Bug 1406455 - Disallow OOM simulation on worker threads r=jandem 2017-10-10 12:07:08 +01:00
Jon Coppeard
a830e07d00 Bug 1406452 - Check for errored modules in builtin testing functions r=evilpie 2017-10-10 12:07:08 +01:00
Jon Coppeard
3c1db04027 Bug 1406746 - Fix ctypes error handling when creating FunctionInfo r=sfink 2017-10-10 12:07:08 +01:00
Jon Coppeard
d3627867f2 Bug 1406438 - Ensure GC lock held when iterating all non-empty chunks r=sfink 2017-10-10 12:07:08 +01:00
Jason Orendorff
65e620a4eb Bug 1404107 - Refactor: Move some reparenting complexity into XPConnect. r=mrbkap,r=bz
--HG--
extra : rebase_source : 817ef532b2fe67bc901339aa19d84bf571adfc71
2017-10-05 11:49:43 -05:00
Sebastian Hengst
4a6ee59701 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-10 06:22:33 -03:00
Jan de Mooij
fbc62f7c52 Bug 1406882 - Remove AutoGCIfRequested in InternalCallOrConstruct. r=jonco 2017-10-10 10:51:06 +02:00
Benjamin Bouvier
c37fd4a59d Bug 1406902: Remove the magic value check in the wasm->jit import exit; r=luke
MozReview-Commit-ID: 9VSmjn5PCCi

--HG--
extra : rebase_source : f98c9a2c7d7d3eac8cb8f70499b82ca5fce3890f
extra : amend_source : 1af48afd80af9c1de30de049bd550c735dedbd79
2017-10-09 12:28:10 +02:00
Lars T Hansen
3c25329700 Bug 1406336 - JS Jits: Fix load64() on 32-bit platforms, and centralize address arithmetic. r=nbp
--HG--
extra : rebase_source : bfab775d897ae279b7402938b9bf20faf8b3a7d2
extra : source : 0453ca60f120c23de4a255cf8c1b2e5f77dd4554
2017-10-06 11:01:08 +02:00
Phil Ringnalda
7c0362997d Backed out changeset 3d4353f7c8b7 (bug 1305005) for static bustage
MozReview-Commit-ID: FM7WuKUXedk
2017-10-09 22:35:32 -07:00
Zibi Braniecki
c14c88b4c3 Bug 1270140 - Add Intl.RelativeTimeFormat. r=Waldo
MozReview-Commit-ID: GqetnVVmXXL

--HG--
extra : rebase_source : 131c125e73e2132d6b1abb2489ecf8e96412b8a5
2017-10-06 07:00:08 -07:00
Phil Ringnalda
e4dbaefed7 Backed out changeset 024ce7dd2f65 (bug 1270140) for check_spidermonkey_style.py failures
MozReview-Commit-ID: KyttCEkmYSo
2017-10-09 21:06:15 -07:00
Boris Zbarsky
9b33c6899d Bug 1404107 - Test that Xray expandos are not lost when reparenting wrappers. r=mrbkap
--HG--
extra : rebase_source : de76f4d214c758301b4e174f699b84a7d0d61a4e
2017-10-03 08:53:13 -05:00
Steve Fink
b79407d6ef Bug 1305005 - Remove race on TypeString() char buffers, r=jonco
--HG--
extra : rebase_source : a00a3ec77f86cf556931f56cec844b752973c579
extra : amend_source : b3c24e8d395db8f2e802e3a1de676c179d9f95d8
2017-10-02 15:12:04 -07:00
Jason Orendorff
f719f95f29 Bug 1404107 - Fix cloning expando chains when reparenting DOM objects. r=bz,r=mrbkap
--HG--
extra : rebase_source : fac045a54af8fba9e3ac46012aaf3b8a4b7b480c
extra : source : 53838f13462feb5db5542ee6d5bc7e24172fb51f
2017-09-29 10:33:13 -05:00
Jason Orendorff
49b9ec94b3 Bug 1405316 - Rewrite documentation for JS_TransplantObject. r=bz
--HG--
extra : rebase_source : 898c6591e84180c5d8860f5426910e0f8115145f
2017-09-28 13:46:21 -05:00
Jason Orendorff
484551fc85 Bug 1405316 - Add assertions in JS_TransplantObject. r=bz
Assert that the target object to JS_TransplantObject is not already known
to other compartments.

Also, assert that the two object arguments are the same class. This is a
conservative way of ensuring the two object allocations in the GC heap are
the same size.

--HG--
extra : rebase_source : f1b541ec3b12efaf46f2b2421f18dbdf458620c6
2017-09-28 14:19:58 -05:00
Tooru Fujisawa
373aeee3ba Bug 1394530 - Stop using optimized path for non PromiseObject. r=till 2017-09-17 19:52:04 +09:00
Miran.Karic
ee6e7153ed Bug 1403635 - MIPS: Add MIPS R1 support. r=bbouvier
Many tests fail on MIPS R1 boards because R2 instructions are emitted.
This patch adds architecture detection for R2, along existing one for
Loongson. Instruction sequences that are emitted for R1 instead of R2
instructions are added to macro assembler.
2017-10-04 09:50:00 -04:00
Dragan Mladjenovic
79ec9daa80 Bug 1406858 - [MIPS] Remove uses of ArgumentsRectifierReg. r=jandem
--HG--
extra : amend_source : e5a069a5e90010a14611b7adc848402884e01f1e
2017-10-09 01:24:00 -04:00
Benjamin Bouvier
b4627e9a7c Bug 1347740: Use a rectifier frame when calling from wasm to jit; r=jandem, r=luke
MozReview-Commit-ID: IvkmE7GX8CJ

--HG--
extra : rebase_source : 7256257b71c4969c3349b95df38851b8f18c76d3
extra : amend_source : 910f55958c1aa958de598b17c77e0f7ac518e53d
2017-10-05 11:40:00 +02:00
Sebastian Hengst
6ea9396481 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-09 11:29:05 +02:00
Jon Coppeard
3a810c3d63 Bug 1259222 - Add more assertions to hopefully catch bad pointers when collecting the nursery r=sfink 2017-10-09 10:22:44 +01:00
Jon Coppeard
a05866a727 Bug 1402473 - Relax RegExpShared assert to ignore shutdown leaks r=jandem 2017-10-09 10:22:44 +01:00
Sebastian Hengst
aa78440a09 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: EE6DcCgHufi
2017-10-09 11:19:20 +02:00
Jon Coppeard
b6270c9da7 Bug 1400003 - Mark Heap<T> and barrier classes as MOZ_NON_MEMMOVABLE r=sfink r=froydnj 2017-10-09 10:03:20 +01:00
Jan de Mooij
e145c72b50 Bug 1405999 part 4 - Optimize and clean up NewNativeFunction and related functions. r=anba 2017-10-09 10:03:14 +02:00
Jan de Mooij
d3f2375ac6 Bug 1405999 part 3 - Inline AutoGCRooter constructors and add MOZ_ALWAYS_INLINE to some functions. r=jonco 2017-10-09 10:01:54 +02:00
Jan de Mooij
0d4bbe0707 Bug 1405999 part 2 - Optimize CreateResolvingFunctions. r=till 2017-10-09 09:57:28 +02:00
Jan de Mooij
9daa5cbca0 Bug 1405999 part 1 - Optimize CreatePromiseObjectInternal. r=till 2017-10-09 09:56:48 +02:00
Nicholas Nethercote
8a68e6fb83 Bug 1403868 (part 4) - Reduce tools/profiler/public/*.h to almost nothing in non-MOZ_GECKO_PROFILER builds. r=mstange.
Currently the Gecko Profiler defines a moderate amount of stuff when
MOZ_GECKO_PROFILER is undefined. It also #includes various headers, including
JS ones. This is making it difficult to separate Gecko's media stack for
inclusion in Servo.

This patch greatly simplifies how things are exposed. The starting point is:

- GeckoProfiler.h can be #included unconditionally;

- everything else from the profiler must be guarded by MOZ_GECKO_PROFILER.

In practice this introduces way too many #ifdefs, so the patch loosens it by
adding no-op macros for a number of the most common operations.

The net result is that #ifdefs and macros are used a bit more, but almost
nothing is exposed in non-MOZ_GECKO_PROFILER builds (including
ProfilerMarkerPayload.h and GeckoProfiler.h), and understanding what is exposed
is much simpler than before.

Note also that in BHR, ThreadStackHelper is now entirely absent in
non-MOZ_GECKO_PROFILER builds.
2017-10-04 09:11:18 +11:00
Nicholas Nethercote
d225f7151b Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro.
(Path is actually r=froydnj.)

Bug 1400459 devirtualized nsIAtom so that it is no longer a subclass of
nsISupports. This means that nsAtom is now a better name for it than nsIAtom.

MozReview-Commit-ID: 91U22X2NydP

--HG--
rename : xpcom/ds/nsIAtom.h => xpcom/ds/nsAtom.h
extra : rebase_source : ac3e904a21b8b48e74534fff964f1623ee937c67
2017-10-03 09:05:19 +11:00
Kris Maglione
30d4691c07 Bug 1404741: Don't call mozJSComponentLoader::CompilationScope during URLPreloader critical section. r=mccr8
The URLPreloader's initialization code accesses the Omnijar cache off-main
thread. It can do so safely only as long as the main thread is blocked, or
running code which is guaranteed never to touch Omnijar, while its critical
section runs.

While that was guaranteed for previous versions of the code, some invariants
changed when we began using the component loader's shared global for initial
compilation. Once the global is created, we can safely use it to initialize
compilation. But creating the global invokes a large amount of Gecko code,
some of which touches Omnijar in the process.

MozReview-Commit-ID: 48WoIZtGPTo

--HG--
extra : rebase_source : 9bd5d884e32cfa59c022edb00078aac050acb20b
2017-10-06 15:09:11 -07:00
Jan de Mooij
dafafd391d Bug 1406340 - Remove ArgumentsRectifierReg and just load argc from the stack. r=bbouvier 2017-10-07 19:18:26 +02:00