Commit Graph

54810 Commits

Author SHA1 Message Date
Nicolas B. Pierron
1f1e7822f3 Bug 1261826 part 1 - JSScript::fullyInitFromEmitter explicitly use 'main' instead of 'current'. r=jorendorff 2016-05-17 17:15:52 +00:00
Nicholas Nethercote
a36723b8a8 Bug 1267551 (part 8) - Use MOZ_MUST_USE more in js/src/gc/. r=terrence.
--HG--
extra : rebase_source : bb87bee366dcc3c5f14f15532a902ac0b5e430a5
2016-05-09 11:17:26 +10:00
Chris Peterson
8a9e2d2bd4 Bug 1272513 - Part 2: Remove redundant -Wshadow CXXFLAGS from moz.build files. r=glandium 2016-05-14 00:54:55 -07:00
Chris Peterson
353ee65255 Bug 1272513 - Part 1: Suppress -Wshadow warnings-as-errors in some directories. r=glandium 2016-05-11 00:00:01 -07:00
Hannes Verschore
8f9524759e Bug 1270108 - IonMonkey: Only keep a certain amount of IonBuilder waiting to get linked alive, r=jandem 2016-05-14 11:52:01 +02:00
Hannes Verschore
9c6551efdd Bug 1270816 - Tracelogger: Add more hooks to log items, r=bbouvier 2016-05-14 11:50:38 +02:00
Ehsan Akhgari
73f2ed803a Bug 1271854 - Part 3: Avoid saving the GC zeal string inside the JS shell; r=terrence
This will ensure that the GC zeal argument won't get truncated needlessly.
2016-05-13 19:55:32 -04:00
Ehsan Akhgari
7345ba362b Bug 1271854 - Part 2: Allow specifying zeal modes by name as well; r=terrence 2016-05-13 19:55:30 -04:00
Ehsan Akhgari
bbc3fcfd84 Bug 1271854 - Part 1: Allow specifying multiple GC zeal levels; r=terrence
This affects both the environment variable JS_GC_ZEAL, and the --gc-zeal
argument to the JS shell.
2016-05-13 19:55:27 -04:00
Nick Fitzgerald
2ba7e55616 Bug 1211723 follow up - Explicitly delete implicitly deleted copy constructors for VS2013; r=Waldo 2016-05-13 15:18:59 -07:00
Hannes Verschore
ccde528f1c Bug 1272269: IonMonkey - Reintroduce template object on the VM variant of MNewArray And MNewObject, r=efaust 2016-05-13 23:52:30 +02:00
Nick Fitzgerald
1fffb8d53b Bug 1271507 - Ensure the SourceCompressionTask becomes inactive on OOM; r=jimb 2016-05-13 14:35:03 -07:00
Myk Melez
eeab058709 Bug 1271014 - test DeflateStringToUTF8Buffer; r=jandem 2016-05-17 08:31:14 -07:00
Myk Melez
88f158a792 Bug 1271014 - return partial result and num bytes/chars written from DeflateStringToUTF8Buffer; r=jandem 2016-05-17 08:31:14 -07:00
Jon Coppeard
376fae1833 Bug 1273451 - Fix some unified build errors r=bbouvier 2016-05-17 16:12:47 +01:00
Steve Fink
7b4060b171 Bug 1272720 - Remove redundant SM-generational variant, r=me
--HG--
extra : rebase_source : 6df65d0a64526bc85a7ac5adcb43e5319e18cf28
2016-05-11 14:53:21 -07:00
Terrence Cole
7d0d6daa29 Bug 956899 - Use js::Thread for js::ExclusiveData tests; r=fitzgen 2016-05-11 18:02:55 -07:00
Terrence Cole
069ed68aab Bug 956899 - Support fallible thread creation; r=froydnj 2016-05-11 18:02:38 -07:00
Andi-Bogdan Postelnicu
feeb57b27c Bug 1273480 - avoid dead code on |status| assignment. r=jorendorff
MozReview-Commit-ID: 7I4wqGSBe64

--HG--
extra : rebase_source : 0fdca792cc58fad2643ce10a343cfde8d8289589
2016-05-17 15:33:25 +03:00
Andi-Bogdan Postelnicu
22c0d057c1 Bug 1273103 - initialize |lineno_|, |column_|. r=jorendorff
MozReview-Commit-ID: KbluCZJMbNy

--HG--
extra : rebase_source : 3def2f61e9a6bcfe7f0f46794ede835dd26d6cca
2016-05-17 15:21:59 +03:00
Terrence Cole
f452b33559 Bug 1257387 - Annotate OOM allocation sizes where possible; r=jonco
--HG--
extra : rebase_source : 91d74e18238554d71452498bd25860e78993c7a0
2016-04-22 11:55:34 -07:00
Eddy Bruel
9ee056940b Bug 1271653 - Fix SPIDERMONKEY_PROMISE errors in Debugger.cpp;r=till 2016-05-13 16:07:48 +02:00
Benjamin Bouvier
99ae1434d1 Bug 1271972: Don't give ranges to int64 instructions, to fix a bustage on a CLOSED TREE; irc r=jandem
MozReview-Commit-ID: 5xv1A4ZcLDr

--HG--
extra : rebase_source : b24d926a89a0bc778a0214f7a6ab22800d733dce
2016-05-13 10:39:07 +02:00
Benjamin Bouvier
b9431febe8 Bug 1272393: Don't reorder Int64 subtract operands; r=jandem
MozReview-Commit-ID: 9frTHT1W6jU

--HG--
extra : rebase_source : f37f8748fd85e1fe24fdf5bbfcb948a736ac8529
extra : histedit_source : ed28e63185fbddf7220a6868c43706f878a85e7c
2016-05-12 18:19:22 +02:00
Benjamin Bouvier
39a6c3aec5 Bug 1271972: Hoist popcnt64 in the MacroAssembler; r=lth
MozReview-Commit-ID: 17miFg4tkBp

--HG--
extra : rebase_source : a511251addc6588dc671fd6b083cc4fd639b52bb
extra : histedit_source : 1985c864b33f1abcaa90a4111abfecaf603547ba
2016-05-11 18:33:05 +02:00
Benjamin Bouvier
88fbb75f4c Bug 1271972: wasm: Implement i64.ctz, i64.clz, i64.popcount; r=sunfish
MozReview-Commit-ID: 2XXloMWmbjV

--HG--
extra : rebase_source : a332d6b5c3e0cfe3d5018cdc53e4c20b80b6a52a
extra : histedit_source : d413c95a2d1bc56f8d6f0deacecf37190a612397
2016-05-11 19:00:53 +02:00
Benjamin Bouvier
3d15937d38 Bug 1271972: Add infra for Int64 temporaries; r=jandem
MozReview-Commit-ID: BGEhahzoKJy

--HG--
extra : rebase_source : e0b5319262403f0721562ded5c6570c9a70cfda7
extra : histedit_source : 56616651201558b536955f9f016cffa0fa085d0e
2016-05-11 18:06:14 +02:00
Benjamin Bouvier
666a5b84fd Bug 1271972: Implement I64.eqz; r=sunfish
MozReview-Commit-ID: HkoDdeRcmAO

--HG--
extra : rebase_source : 7609ed9c9d86902c1b17d1e626ec555ad3fde47f
extra : histedit_source : 0f795594e78b50805abb4cd9d36ce56a13ed692b
2016-05-11 19:06:37 +02:00
Benjamin Bouvier
bc87ec2e24 Bug 1265461: Enhance spec.js to make it a wast interpreter; r=mbx
MozReview-Commit-ID: 3FdPHpo0TiR

--HG--
extra : rebase_source : d4a7c9ed2d1d690fbbee0941552588abb91c464c
extra : histedit_source : fa6256ec2a1e09f2884fd4cfe8ff286b4c1ccace
2016-05-11 18:45:01 +02:00
Benjamin Bouvier
b687699fa6 Bug 1265461: Import wast files; r=mbx
MozReview-Commit-ID: 6ad3QkZMYkS

--HG--
extra : rebase_source : a9e6048bffa86dd17c41eb8c421244219bf30983
extra : histedit_source : ed1625830738716b40bdc1db882edf42da9240b1
2016-05-10 12:38:20 +02:00
Benjamin Bouvier
50e90e1537 Bug 1265461: Baldr: have if/else accept then/else plus an expression list; r=luke
MozReview-Commit-ID: B3vo0kFF6j9

--HG--
extra : rebase_source : b2bdc703eeba3deedcbbcaa2cdda2f1c5715aa7f
extra : histedit_source : 8eb9dede653dd7a3b042e67d5750a9c674322ce0
2016-05-10 12:37:53 +02:00
Benjamin Bouvier
27d6ab2516 Bug 1265461: allow imports to reference signatures by types; r=luke
MozReview-Commit-ID: 79muf5vUYGD

--HG--
extra : rebase_source : fb7b267760ab2657a75193f53e74e6eaa2a382e5
extra : histedit_source : 3d8e5c876192d9381b7d83887ca876eeca0646c3
2016-05-09 16:37:39 +02:00
Benjamin Bouvier
0f4a310f4c Bug 1265461: tweak the overrecursion error message for wasm; r=jorendorff
MozReview-Commit-ID: IyElAXoBoTu

--HG--
extra : rebase_source : e393d32cfd2389a2c075a6c4d2c9d4ca848a0866
extra : histedit_source : 94868a67d46d824f9819c238805d9ef44b71a622
2016-05-09 16:10:55 +02:00
Benjamin Bouvier
626916bd57 Bug 1265461: Accept several types in a local list; r=luke
MozReview-Commit-ID: D3h0bus2MFJ

--HG--
extra : rebase_source : f80200fd5c8ee35a50b37df36008951ea5f32d25
extra : histedit_source : 5e6729c10a8bdfd4ef10457fff1a3b18040683a6
2016-05-11 12:29:12 +02:00
Benjamin Bouvier
f69e9865b8 Bug 1265461: Simple fixes to get a few tests working; r=luke
MozReview-Commit-ID: 3UwJUw5S6Y

--HG--
extra : rebase_source : d1d3f0bd025560b9a9ac19288c8a73b9016b76f0
extra : histedit_source : 21a2ba5c875c1fb697c4e88203fafe6cd28dc6e9
2016-04-28 14:20:57 +02:00
Benjamin Bouvier
57a22ea911 Bug 1268910: Don't fold unsigned div/mod which should trap; r=sunfish
MozReview-Commit-ID: 9s0nYOlEcdf

--HG--
extra : rebase_source : 6ba157e0cf51fd94873cb8f666df9de49dc1cd26
extra : histedit_source : b277b0ee0784030f3ee6b4d8c07b53f4071eeb95
2016-05-09 14:49:30 +02:00
Carsten "Tomcat" Book
a4479d7bc0 Backed out changeset c25321772280 (bug 956899) causing bustage on Mac Builds 2016-05-13 07:01:21 +02:00
Carsten "Tomcat" Book
354d99e932 Backed out changeset 3f157424acc7 (bug 956899) 2016-05-13 07:00:56 +02:00
Carsten "Tomcat" Book
0a97856245 Backed out changeset c71165b9f120 (bug 956899) 2016-05-13 07:00:55 +02:00
Jon Coppeard
e77f483725 Bug 1273180 - Trigger major GC if necessary after minor GC r=terrence 2016-05-17 10:20:00 +01:00
Bob Owen
e809e9f918 Bug 1035125 Part 9: Link Chromium sandbox into firefox.exe instead of having a separate DLL. r=aklotz,glandium
MozReview-Commit-ID: 1vgDPjpcwz3

--HG--
extra : rebase_source : 40966d98ca6c37f30884639d648907b4760ae240
2016-05-15 16:41:40 +01:00
Bob Owen
2447fbb7fa Bug 1035125 Part 1: Back out changeset 1910714b56c6 and associated subsequent changes. r=bsmedberg
The original changeset that is being backed out had comment:
Bug 1023941 - Part 5: Loader hook to redirect the missing import.

The changes made in bug 1023941 were to work around the fact that with VS2013, msvcr120.dll imports kernel32!GetLogicalProcessorInformation, which is not available on Windows XP SP2.
In VS2015, the GetLogicalProcessorInformation requirement has moved into concrt140.dll (concurrency runtime), which we don't use.
So, now that our build infra is building with VS2015, we can remove the hooking and static runtime linking required to get the VS2013 fix to work.

In addition we need to do that to be able us to link the Chromium sandbox code into firefox.exe and get it to build and run with both VS2015 and VS2013.

MozReview-Commit-ID: 1tlXaYJ8dHH

--HG--
extra : rebase_source : 49b216e34fc5c77af96df1f67ee44c46d5368bfe
2016-05-15 16:23:56 +01:00
Yury Delendik
21bdcef9ca Bug 1271375 - Extracts WASM AST and fixes wasmBinaryToText. r=luke
MozReview-Commit-ID: JGGFu0NOAGl

--HG--
extra : rebase_source : cbc45dc18aee45494c43d880dc85a8ea8a4e9b2a
2016-05-12 14:45:29 -05:00
Andi-Bogdan Postelnicu
376931e3ea Bug 1273099 - initialize |parser|. r=jorendorff
MozReview-Commit-ID: 388WVQNsZHB

--HG--
extra : rebase_source : e8e5c5748aa6ad72e31413a35d232e930d3e5da6
2016-05-16 14:31:02 +03:00
Nick Fitzgerald
e4674cf772 Bug 1273181 - Explicitly delete StringBox copy assignment and construction; r=jimb 2016-05-16 10:57:42 -07:00
Heiher
0f64991745 Bug 1260079 - IonMonkey: MIPS: Refactor ma_ls/ss/ld/sd via Loongson-specific instructions. r=huangwenjun06
---
 js/src/jit/mips32/MacroAssembler-mips32.cpp | 19 ++++++++++++----
 js/src/jit/mips64/MacroAssembler-mips64.cpp | 35 ++++++++++++++++++++++-------
 2 files changed, 42 insertions(+), 12 deletions(-)
2016-05-13 10:42:48 +08:00
Heiher
c4eac9ee90 Bug 1260079 - IonMonkey: MIPS: Refactor ma_load and ma_store via Loongson-specific instructions. r=huangwenjun06
---
 js/src/jit/mips32/MacroAssembler-mips32.cpp | 50 +++++++++++++++++++++++++++++
 js/src/jit/mips64/MacroAssembler-mips64.cpp | 50 +++++++++++++++++++++++++++++
 2 files changed, 100 insertions(+)
2016-05-13 10:42:47 +08:00
Heiher
f5392125c8 Bug 1260079 - IonMonkey: MIPS64: Refactor GeneratePrologue/Return via Loongson-specific instructions. r=huangwenjun06
---
 js/src/jit/mips64/Trampoline-mips64.cpp | 69 +++++++++++++++++++++++----------
 1 file changed, 49 insertions(+), 20 deletions(-)
2016-05-13 10:42:45 +08:00
Heiher
bed59cdddf Bug 1260079 - IonMonkey: MIPS: Implement Loongson-specific load and store instructions. r=huangwenjun06
---
 js/src/jit/mips-shared/Assembler-mips-shared.cpp | 175 +++++++++++++++++++++++
 js/src/jit/mips-shared/Assembler-mips-shared.h   | 132 +++++++++++++++++
 js/src/jit/mips32/Assembler-mips32.cpp           |   7 +
 js/src/jit/mips64/Assembler-mips64.cpp           |   7 +
 4 files changed, 321 insertions(+)
2016-05-13 10:42:44 +08:00
Terrence Cole
010e6e8304 Bug 1268992 - Assert that the heap is empty after a shutdown GC; r=jonco
--HG--
extra : rebase_source : 089c7d6750bae6a53e8b952806353539faf8ff9b
2016-04-26 15:25:29 -07:00
Terrence Cole
2bc5820e19 Bug 956899 - Use js::Thread for WasmSignalHandler; r=luke
--HG--
extra : rebase_source : 8b9b334ce3967628d45aa42100076ee32b8f5d3a
2016-05-11 18:03:56 -07:00
Terrence Cole
dc9195747c Bug 956899 - Use js::Thread for js::ExclusiveData tests; r=fitzgen
--HG--
extra : rebase_source : 312bf756ef17caf78c31e453fba1a83115387afb
2016-05-11 18:02:55 -07:00
Terrence Cole
a354efb130 Bug 956899 - Support fallible thread creation; r=froydnj
--HG--
extra : rebase_source : 56681c15d0b73325e996e5c85b7f4c8702faab8a
2016-05-11 18:02:38 -07:00
Trevor Saunders
40e36a7d24 bug 1271488 - allow an embedder to retain ownership of an array buffer's contents r=sfink
JS_NewArrayBufferWithExternalContents() is basically the same as
JS_NewArrayBufferWithContents() accept the js engine won't free the data when
the buffer goes away or is detached.
2016-05-12 16:55:44 -04:00
Jan de Mooij
677da49e65 Bug 1271929 - Don't use ReadBarrieredObject for PendingMetadata. r=fitzgen 2016-05-12 16:13:11 +02:00
Jakob Stoklund Olesen
75dc89e58f Bug 1271959 - Don't specify a size for enum class SimdType. r=bbouvier
There is a bug in GCC 4.8 that miscompiles some uses of an enum with uint8_t
size. Work around this compiler bug by not specifying a size for SimdType.

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64037
2016-05-12 06:11:19 -07:00
Jim Mathies
c6cf890ec2 Bug 1271978 - Record js slow script notification delay for content in telemetry. r=billm
MozReview-Commit-ID: 9RUrqfwn7Wh
2016-05-12 07:28:48 -05:00
Lars T Hansen
c586404ece Bug 1272252 - Register64 equality operators. r=bbouvier
--HG--
extra : rebase_source : 83f57737493ef742bbd8c359e1129933a1316401
2016-05-12 11:15:09 +02:00
Lars T Hansen
43a3540b4d Bug 1272014 - make a correction that disappeared in a merge. r=bbouvier
--HG--
extra : rebase_source : a6d84fde433f3b9495c3c82a1763d9591bc81500
2016-05-12 11:05:16 +02:00
Jon Coppeard
2b8b720874 Bug 1271110 - Evict the nursery when discarding JIT code outside of a GC r=sfink a=abillings 2016-05-12 10:00:43 +01:00
Lars T Hansen
cb72513c65 Bug 1272014 - Masm code for 64-bit bit counting. r=bbouvier
--HG--
extra : rebase_source : 37d8142f0b3bf2c418b15ebf60b1d15dc34c1511
2016-05-11 17:01:08 +02:00
Lars T Hansen
2f12a83ecd Bug 1271985 - Correct heap size in bullet.js test casei. r=luke
--HG--
extra : rebase_source : 21127b6383c388c2a4e6466c84aea2dbf078deb1
2016-04-26 09:42:43 +02:00
Carsten "Tomcat" Book
04dcac6287 Backed out changeset 233a3b2d3b36 (bug 1271987) for landings with wrong bug numbers
--HG--
extra : rebase_source : 30a9533d2ed6cb2e44acd9755bd4e0ddfb5a3283
2016-05-12 10:28:27 +02:00
Carsten "Tomcat" Book
ef8bc0f084 Backed out changeset 5190ada5abfe (bug 1272015)
--HG--
extra : rebase_source : c7c951a7cb72dc312d66e3cc4b931417d0d7f1a7
2016-05-12 10:28:12 +02:00
Lars T Hansen
0b6164df6b Bug 1272015 - Masm code for 64-bit bit counting. r=bbouvier
--HG--
extra : rebase_source : 4f4a08d192932a2ff9fad35f21c6b02894448867
2016-05-11 17:01:08 +02:00
Lars T Hansen
c58c3804fd Bug 1271987 - Correct heap size in bullet.js test case. r=luke
--HG--
extra : rebase_source : 9f3f20ef9208a2e0aa881c18da4dae6117b8f62b
2016-04-26 09:42:43 +02:00
Nicholas Nethercote
c639a0340a Bug 1271865 - Add a comment to JitFrameIterator::verifyReturnAddressUsingNativeToBytecodeMap. r=djvj.
DONTBUILD because this is a comment-only change.

--HG--
extra : rebase_source : eaed669fe31012fe381a0eb67f808be95c3133eb
2016-05-12 15:43:12 +10:00
Nicholas Nethercote
d30f02eaad Bug 1267551 (part 9) - Use MOZ_MUST_USE more in js/src/jit/. r=h4writer.
This catches a few missing failure checks.

The patch also changes the return type of IonBuilder::pushConstant() to void,
because it never fails.
2016-05-11 09:23:05 +10:00
Nick Fitzgerald
10fa163e08 Bug 1271507 - Don't insert nullptr into the cache; r=jimb 2016-05-11 14:40:42 -07:00
Myk Melez
143bb1fdde Bug 1271078 - add start param and char* specialization to CopyStringChars/CopyLinearStringChars; r=evilpies 2016-05-11 08:33:16 -07:00
Lars T Hansen
ed574eb32c Bug 1271977 - bit shifting, bit counting. r=bbouvier
--HG--
extra : rebase_source : 57efc633ef27541ad30f4b16e72cbd470fa8691f
2016-05-11 15:39:08 +02:00
Lars T Hansen
75323e448c Bug 1270051 - x64 assembler support for 64-bit bit counting. r=bbouvier 2016-05-11 13:45:11 +02:00
Tooru Fujisawa
881002d2ea Bug 1271857 - Move the assertion for text length from GetFirstDollarIndexRawFlat to GetFirstDollarIndex. r=h4writer 2016-05-11 18:50:57 +09:00
Jon Coppeard
a740b186b0 Bug 1264575 - Add missing pre-barrier in Ion r=jandem a=abillings 2016-05-11 10:14:45 +01:00
Eddy Bruel
40570b7c1e Bug 1271653 - Implement a C++ interface for isExtensible/Sealed/Frozen;r=jimb 2016-05-11 11:07:34 +02:00
Ryan VanderMeulen
c3a556622b Backed out changeset e4590851081d (bug 1269451) for slowing down debug mochitests and causing frequent oranges as a result.
CLOSED TREE
2016-05-10 22:35:57 -04:00
Ryan VanderMeulen
9978fb20b2 Backed out changeset ab611defdc9b (bug 1271407) for slowing down debug mochitests and causing frequent oranges as a result. 2016-05-10 22:35:29 -04:00
Boris Zbarsky
20a2c90769 Bug 1268845. Make sure to set up an XPCWrappedNativeScope for SimpleGlobalObject globals on the main thread. r=bholley,ttaubert,ejpbruel 2016-05-10 20:57:29 -04:00
Tooru Fujisawa
ea623b4b41 Bug 1271037 - Part 2: Statically check that numOperands of the recover instruction and the MIR are consistent. r=h4writer, a=abillings 2016-05-11 09:54:42 +09:00
Tooru Fujisawa
6d65ee672e Bug 1271037 - Part 1: Fix numOperands of RRegExpMatcher, RRegExpSearcher, and RRegExpTester. r=h4writer, a=abillings 2016-05-11 09:54:41 +09:00
Jakob Olesen
3e84a978e6 Bug 1136226 - Unify Bailout_NonSimd*Input. r=nbp
We have a lot of SIMD types in Ion now, and there is little benefit in
maintaining a separate bailout kind for each type. Instead, use a single
Bailout_NonSimd bailout kind to indicate that SimdUnbox didn't get the SIMD
type it was expecting.
2016-05-10 15:53:38 -07:00
Nick Fitzgerald
8031f0ba5c Bug 1271407 - Remove unnecessary methods from js::ScriptSource; r=luke
This commit removes the following methods from `js::ScriptSource`:

* `compressedChars`
* `compressedBytes`
* `uncompressedChars`

They are throwbacks from when `ScriptSource` had this big, hand-rolled tagged
union, and these methods were getters that did all sanity asserts on the tag
state. That union has since been replaced with a `mozilla::Variant`, so we
should just use `mozilla::Variant`'s type-safe accessors instead.
2016-05-10 15:45:01 -07:00
Nick Fitzgerald
7b5fd55b61 Bug 1269451 - Make the UncompressedSourceCache use the shared, immutable strings infrastructure; r=jimb 2016-05-10 15:45:01 -07:00
Thomas Klausner
39e17aa33c Bug 1271590 - Rename timespecadd to moz_timespecadd. r=jandem
NetBSD provides a timespecadd macro in sys/time.h, which conflicts with this one.
2016-05-10 05:27:00 -04:00
Peter Van der Beken
5c9bb43e9d Bug 1267186 - Split lookup of WebIDL DOM class names from lookup of DOMCI DOM class names. r=bz.
--HG--
extra : rebase_source : 073ec0857b63df3e2ecef43ef3b982f2e1be2d24
2016-05-09 17:08:31 +02:00
Pip
4e12ba331b Bug 1264613 - Allow object-to-nonobject serialization. r=baku
Fix the Structured Clone API to avoid assigning a numeric back-reference
id to objects that are serialized as non-objects; in particular, this
fixes incorrect serialization and crashes upon deserialization when a
DedicatedWorkerGlobalScope is serialized twice in the same serialization
packet.
2016-04-19 10:26:00 +02:00
Benjamin Bouvier
735aa6820c Bug 1268955: Include test; r=Waldo 2016-05-10 12:07:07 +02:00
Benjamin Bouvier
e9d584a553 Bug 1268910: Fix unused variable "output" in CodeGeneratorX64.cpp to unbreak build; r=me
MozReview-Commit-ID: L460DqlwPz2

--HG--
extra : rebase_source : 8d80f027155cb9781f3d6142fb1cce4679bf68f3
2016-05-10 11:52:50 +02:00
Benjamin Bouvier
6a92214bef Bug 1268910: Get rid of the BadIndirectCall stub and replace it by a trap; r=luke
MozReview-Commit-ID: 3ndMUmwOGq3

--HG--
extra : rebase_source : 247e3cb4f120fa9baa6aa267f4dfa13d7a90cb91
extra : histedit_source : 43f1131cf4a20305497a524691bc14e598fb274f
2016-05-10 11:02:44 +02:00
Benjamin Bouvier
75682e6880 Bug 1268910: Get rid of GenerateErrorStub and replace it by a trap; r=luke
MozReview-Commit-ID: 2yhbvn3j2uP

--HG--
extra : rebase_source : 264b8357d2ba379baac1f0166998539713ed9f64
extra : histedit_source : 66cdf4796a78ad8ef77d7fcd06404e7787a23fe5
2016-05-04 11:36:38 +02:00
Benjamin Bouvier
cf0f6e7dd6 Bug 1268910: Trap on edge cases for integer div/mod; r=sunfish
MozReview-Commit-ID: DIGgIGbeQGG

--HG--
extra : rebase_source : de214d4d1669aaf77684467cecfb90f19c49791e
extra : histedit_source : 11f3f07ea5f9d9f038e43f9f0609defdbb0c5285
2016-05-02 18:15:13 +02:00
Benjamin Bouvier
dbc6dd425e Bug 1268910: Refactor WebAssembly trap handling; r=luke
MozReview-Commit-ID: 72PFgaGUBBC

--HG--
extra : rebase_source : 3cac1acb2c3f669f9d6e4fa0e11947f26267d33c
extra : histedit_source : 2c0e66eb7cfa366e785452a118163d49066ed1a1
2016-05-03 16:29:49 +02:00
Benjamin Bouvier
4385ba4cf1 Bug 1269847: Don't pop values that could get reused later in ensurePushInvariants; r=luke
MozReview-Commit-ID: FXjfqOzw4Yy

--HG--
extra : rebase_source : 0fdfb4c5273d7f02e3b28b6405659c5b7b3af255
2016-05-04 19:30:24 +02:00
Benjamin Bouvier
d82d18c789 Bug 1268955: Implement strict semantics check for asm.js modules and functions; r=Waldo
MozReview-Commit-ID: HyaA3qk5jbu

--HG--
extra : rebase_source : 5d01b9b8caa0fec23820bb792869739ab352f393
2016-05-02 13:05:08 +02:00
Andi-Bogdan Postelnicu
a0d82b351a Bug 1270814 - initialize pointers from LoopUnroller. r=jandem
MozReview-Commit-ID: H7u0inBzxmF

--HG--
extra : rebase_source : 0befa16b3701b8f52026a49f39f9aa7c69861482
2016-05-10 10:27:59 +03:00
Andi-Bogdan Postelnicu
d41a025aab Bug 1270805 - add default constructor for TypeAndValue<Nothing>. r=jandem
MozReview-Commit-ID: HqSkqzYGIGc

--HG--
extra : rebase_source : a3f210cf6d07e7930ce5ea4d1f9d2262c733d282
2016-05-06 14:36:47 +03:00
Andi-Bogdan Postelnicu
f6aaad68dc Bug 1270811 - initialize |current_| in GraphStoreInfo. r=h4writer
MozReview-Commit-ID: JWFHDDr6xWT

--HG--
extra : rebase_source : 3c839f581ecca0f2d675818e79d0841072131d45
2016-05-06 15:00:31 +03:00
Nicholas Nethercote
13f7325153 Bug 1267551 (part 7) - Use MOZ_MUST_USE more in js/src/frontend/. r=jorendorff.
This found two missing checks for PackedScopedCoordinate::setSlot(). Fixing one
of them required making ParseContext::updateDecl() fallible.

The patch also changes the return type of addToCallSiteObject() to void.

--HG--
extra : rebase_source : aaec219a13ff6895d919fcf8fedfd168e0ad64a8
2016-05-05 15:14:24 +10:00
Nicholas Nethercote
8305a7dfb9 Bug 1267551 (part 6) - Remove dead GenerateBlockId declaration. r=jorendorff.
--HG--
extra : rebase_source : 8dcfdfd3cdf9ef3e26e7f12761603741dc9cbcf6
2016-05-05 14:13:40 +10:00
Nicholas Nethercote
d65ce4b043 Bug 1267551 (part 5) - Use MOZ_MUST_USE more in js/src/ctypes/. r=sfink.
--HG--
extra : rebase_source : 5ff1fa8dff05b2a2442c53a71211d3ba2fb9e27d
2016-05-05 13:53:21 +10:00
Nicholas Nethercote
7f283f3a20 Bug 1267551 (part 4) - Use MOZ_MUST_USE more in js/src/asmjs/. r=bbouvier.
The patch also removes some unnecessary MOZ_MUST_USE annotations on function
definitions (because the function declaration is already annotated).

And it changes the return type of ModuleGenerator::initFuncSig() to void,
because is always returns true.

--HG--
extra : rebase_source : b83c472bcd167dbdf80c4edf4f3b24ddb450ffe6
2016-05-05 13:45:45 +10:00
Nicholas Nethercote
b9d8da95d4 Bug 1267551 (part 3) - Use MOZ_MUST_USE more in js/src/builtin/. r=jonco.
--HG--
extra : rebase_source : 5d6ae9608b9673164c89fa806d6afe8f2f0c6774
2016-05-05 12:01:46 +10:00
Nicholas Nethercote
00310fc661 Bug 1267551 (part 2) - Use MOZ_MUST_USE more in js/src/ds/. r=jonco.
--HG--
extra : rebase_source : 71839543d010e86591903639d00e231707735ffa
2016-05-05 11:31:18 +10:00
Shu-yu Guo
331704e4b1 Bug 1234147 - Fix height computation for JitcodeSkiplistTower. (r=djvj) 2016-05-09 18:05:32 -07:00
Jakob Olesen
8247052f80 Bug 1136226 - Fix jit-test shell for SIMD. r=bbouvier
Support tests using all SIMD types.
2016-05-09 16:48:31 -07:00
Jakob Olesen
c3eceb7b7c Bug 1136226 - Rename MSimdSplatX4 to MSimdSplat. r=bbouvier
This MIR instruction will be used for splatting all vector shapes.
2016-05-09 16:48:31 -07:00
Jakob Stoklund Olesen
5824c75e03 Bug 1136226 - Make MSimdSwizzle and MSimdShuffle length-agnostic. r=bbouvier
Constructors and factories take lane lists as arrays instead of four separate
lane arguments.
2016-05-09 16:48:31 -07:00
Jakob Olesen
3da4ad1117 Bug 1136226 - Add masm.simd128Constant(). r=sunfish
Replace the existing int32x4Constant and float32x4Constant masm methods with a
generic simd128Constant.
2016-05-09 16:48:30 -07:00
Jakob Olesen
d7cd49040e Bug 1136226 - Rename 32x4 SIMD masm methods to "Simd128". r=sunfish
Load, store, and move methods are generic for all 128-bit SIMD types. Keep the
difference between float and int vectors since x86 sometimes cares.
2016-05-09 16:48:30 -07:00
Jakob Olesen
6c7421a1ee Bug 1136226 - Update LDefinition and MoveOp for 8x16 and 16x8. r=sunfish
In both classes, rename enums:

  INT32X4   -> SIMD128INT
  FLOAT32X4 -> SIMD128FLOAT

Catch the new MIRTypes to produce SIMD128INT.
2016-05-09 16:48:30 -07:00
Jakob Olesen
6bae150dea Bug 1136226 - Materialize 8x16 and 16x8 SIMD constants. r=sunfish
Rename LIR instructions:

  LInt32x4   -> LSimd128Int
  LFloat32x4 -> LSimd128Float.

These two LIR instructions can be used to materialize 128-bit SIMD vectors of
other geometries too. Also rename the masm.loadConstant{Int,Float}32x4()
functions to indicate that they can be used for other geometries.
2016-05-09 16:48:30 -07:00
Jakob Olesen
b6fedab1e8 Bug 1136226 - Add 16x8 and 8x16 MIRTypes. r=sunfish
This adds 8x16 and 16x8 types to MIRType, but it does not enable inlining of
the corresponding SIMD operations yet.

Explicitly disable the inlining of non-4-lane constructor calls until we have
support for them.
2016-05-09 16:48:30 -07:00
Jakob Olesen
14fa218985 Bug 1136226 - Support 8x16 and 16x8 types in SimdConstant. r=sunfish
Extend the SimdConstant class to handle other 128-bit SIMD vector types.

Remove some unused methods.
2016-05-09 16:48:30 -07:00
Jakob Stoklund Olesen
186e2e7b81 Bug 1136226 - Remove SimdLane enumeration. r=sunfish
We're about to add 16-lane and 8-lane SIMD types to IonMonkey, so we don't want
an enum to identify lanes. Just use an unsigned instead.

Also note that SIMD.js no longer has the .x .y .z .w properties.

Change a few lane < 4 checks to use the number of lanes in the Simd type.
2016-05-09 16:48:30 -07:00
Morgan Phillips
906761cdb9 Bug 1266255 - Implement ES6 function "name" property semantics for simple assignments and methods; r=jorendorff
--HG--
extra : rebase_source : 5d13fe2ceaba39e5c4730f9639dd4cc7da1a5bec
2016-05-09 13:08:10 -07:00
Steve Fink
b0e8bc56fc Bug 1267876 - Make usable on developer desktops, r=jorendorff
MozReview-Commit-ID: K6kMX8WD15g

--HG--
rename : js/src/devtools/rootAnalysis/README.txt => js/src/devtools/rootAnalysis/README.md
rename : testing/taskcluster/scripts/builder/build-browser-haz-linux.sh => testing/taskcluster/scripts/builder/build-haz-linux.sh
extra : rebase_source : dd87796d10456d83f3b2faa4d67cdf5feceb03be
extra : source : 69b3bf72b9d1a2dadb5a25cd43e82e92a37b29c6
2016-05-05 16:47:08 -07:00
Mike Shal
a4e821b1c2 Bug 1270621 - Remove remnants of MOZ_ETW; r=chmanchester
MozReview-Commit-ID: 5OJPOGT0sWe

--HG--
extra : rebase_source : 30fe1a18b6a2bd4a5143498ada18547efd98c5f7
2016-05-04 22:22:34 -04:00
Morgan Phillips
1c9cdac1ee Back out changeset f03cd0ff53df (bug 1266255) for android build bustage. r=backout 2016-05-09 09:59:08 -07:00
Morgan Phillips
d1dc2cf178 Bug 1266255 - Implement ES6 function "name" property semantics for simple assignments and methods; r=jorendorff
--HG--
extra : rebase_source : b7912a34631abc436d6b17128f36bc2827417abf
2016-05-09 00:42:45 -07:00
Luke Wagner
54c2332e47 Bug 1271022 - use Vector::podResizeToFit in wasm::Module (r=bbouvier)
MozReview-Commit-ID: Booqdgl1QFT

--HG--
extra : rebase_source : 444f3453ce6cecacac47e6b67621fa74bf90e313
2016-05-09 09:00:47 -05:00
Jan de Mooij
0b9f36c5e4 Bug 1197769 followup - Add test to cgc-jittest-timeouts.txt. r=orange
--HG--
rename : js/src/jit-test/tests/bug1197769.js => js/src/jit-test/tests/ion/bug1197769.js
2016-05-09 17:01:38 +02:00
Jacek Caban
04a08d891c Bug 956899 - GCC cross compilation fixup. 2016-05-09 16:31:26 +02:00
Luke Wagner
877a914df8 Bug 1270965 - Baldr: set min-heap-length (r=bbouvier)
MozReview-Commit-ID: JwIuHQeHUic

--HG--
extra : rebase_source : d5acf7be678ec86bedb89ff916274760edce435c
2016-05-06 21:02:38 -05:00
Jan de Mooij
ed832db571 Bug 1197769 - Add iterators to outermost IonBuilder. r=h4writer
--HG--
extra : rebase_source : 14c91e2c7ac9be1a7ed3b852bfa5985d6e270090
2016-05-09 14:50:42 +02:00
Tooru Fujisawa
b5fe01d3ac Bug 1271147 - Merge RegExpCreate and regexp_construct self-hosting builtins. r=till 2016-05-09 20:48:40 +09:00
Tooru Fujisawa
6eada43d60 Bug 1108382 - Remove non-standard flag argument from String.prototype.{search,match,replace}. r=till 2016-05-09 20:48:26 +09:00
Carsten "Tomcat" Book
98f0a3271a Backed out changeset d385df62c0e7 (bug 1267186) for hazard failures 2016-05-09 13:40:01 +02:00
Martin Husemann
9a18802e82 Bug 1232150 - "Atomic operations for PPC/PPC64". r=lhansen 2016-01-22 00:09:00 +01:00
Heiher
6e9a4a664b Bug 1269775 - OdinMonkey: MIPS: Implement int32 rotations. r=bbouvier
---
 js/src/jit/mips-shared/MacroAssembler-mips-shared-inl.h | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)
2016-05-09 17:12:26 +08:00
Jan de Mooij
0c6a5f4c76 Bug 1269317 - Don't use AlignedStorage2 in RegisterSets.h. r=nbp 2016-05-09 11:06:58 +02:00
Peter Van der Beken
b6c1e074c2 Bug 1267186 - Split lookup of WebIDL DOM class names from lookup of DOMCI DOM class names. r=bz.
--HG--
extra : rebase_source : 324cf124544c0ffe2ad2ceccbed397d5069d1435
2016-03-09 15:48:12 +01:00
Sebastian Hengst
30086ae6de Bug 1263862 - Fix OOM case in ScopeIter::settle: Follow-up: bail out if oomTest is not defined. r=bustage fix for test 2016-05-08 10:33:17 +02:00
Shu-yu Guo
bcf5ac7ff7 Bug 1269042 - Handle NonSyntacticVariablesObject in Debugger.Environment.object. r=jimb 2016-04-29 16:06:00 +02:00
Shu-yu Guo
c77388a279 Bug 1263862 - Fix OOM case in ScopeIter::settle. r=jandem 2016-04-19 19:44:00 +02:00
Tim Huang
5facb5e7d0 Bug 1260917 - Add a 'userContextId' in the sandbox options, and sandbox will reference this when creating from string url. r=bholley 2016-05-04 20:54:00 +02:00
Jon Coppeard
90e20a8c9f Bug 1240072 - Add public JS APIs related to modules r=shu 2016-05-07 12:46:29 +01:00
Carsten "Tomcat" Book
9fd3d75ff7 Backed out changeset e968a9db2350 (bug 1234147) for bustage 2016-05-07 08:24:23 +02:00
Shu-yu Guo
6d9b00c84d Bug 1234147 - Fix height computation for JitcodeSkiplistTower. r=djvj 2016-05-07 00:53:22 -04:00
Morgan Phillips
588ceb1f8d Bug 1270721 - Ensure that error format strings are not null before attempting to use them.;r=jimb
--HG--
extra : rebase_source : d57b0eb1ad935ee6dd5cd655951828e3d3ad30e3
2016-05-06 11:50:45 -07:00
Nick Fitzgerald
42225056cf Bug 1211723 and 1260570 - Share JS source text between JSRuntimes; r=jimb
This commit adds `SharedImmutableStringsCache` which allows for de-duplication
and sharing of immutable strings between threads and JSRuntimes.

Each JSRuntime gets a SharedImmutableStringsCache member, but the accessor
always returns the parent runtime's cache. The caches in child JSRuntime's are
not wasting space, however, as initialization and allocation of the table
happens lazily within SharedImmutableStringsCache.

Furthermore, this commit removes `js::ScriptSource::Parent` and the
`CompressedSourceSet`. They are unnecessary because source text is always shared
via the parent runtime's `SharedImmutableStringsCache` now.
2016-05-06 16:53:45 -07:00
Steve Fink
24cca19816 Backed out changeset 69b3bf72b9d1 (bug 1267876) on a CLOSED TREE
MozReview-Commit-ID: FRR8EgrjtDX

--HG--
rename : js/src/devtools/rootAnalysis/README.md => js/src/devtools/rootAnalysis/README.txt
rename : testing/taskcluster/scripts/builder/build-haz-linux.sh => testing/taskcluster/scripts/builder/build-browser-haz-linux.sh
extra : amend_source : 19525de501a17ab208ed4c92956b3dd75520cf6e
extra : histedit_source : 3206492a624870292018495474ed75e00534f9e9
2016-05-06 13:55:41 -07:00
Steve Fink
d8bd108a5d Bug 944164 - Further jorendb fixes, r=me
MozReview-Commit-ID: FmU2mqudGY7

--HG--
extra : rebase_source : 57ab7f70d26d25d59fdad37eedd7d425f22e5eda
extra : histedit_source : 7e83c2d3eab96ffdb675ea5843daa24580826950
2016-04-18 13:21:33 -07:00
Steve Fink
5c3dc60ab4 Bug 1267876 - Make usable on developer desktops, r=jorendorff
MozReview-Commit-ID: K6kMX8WD15g

--HG--
rename : js/src/devtools/rootAnalysis/README.txt => js/src/devtools/rootAnalysis/README.md
rename : testing/taskcluster/scripts/builder/build-browser-haz-linux.sh => testing/taskcluster/scripts/builder/build-haz-linux.sh
extra : rebase_source : 1791028b202c29f0d376bf840ed177a5effbe77c
extra : histedit_source : 53a2f102613ae128d09677a06470bdda2ee7e8df
2016-05-05 16:47:08 -07:00
Bert Belder
45aa50999f Bug 956899 - Add std::threading work-alike wrapper for posix and windows threads; r=froydnj 2016-04-05 11:18:21 -07:00
Sebastian Hengst
faffe478f6 Backed out changeset f9d3ea58c195 (bug 1267186) for static bustage in WebIDLGlobalNameHash.cpp. r=backout 2016-05-06 18:11:03 +02:00
Peter Van der Beken
827ee394ba Bug 1267186 - Split lookup of WebIDL DOM class names from lookup of DOMCI DOM class names. r=bz.
--HG--
extra : rebase_source : 5578057666186f58e434767af84fbfeac0cbdc3c
2016-03-09 15:48:12 +01:00
Anthony Ramine
10fd1a502f Bug 1270036 - Fix the zlib module in SM tarballs. r=sfink 2016-05-04 04:54:00 -04:00
Jon Coppeard
4efc1fffd2 Bug 1268083 - Get JitcodeGlobalEntry objects by reference when marking r=jandem a=abillings 2016-05-06 11:16:16 +01:00
Ehsan Akhgari
743de77fb3 Bug 1270370 - Part 2: Expose MapIterator and SetIterator through ESClassValues; r=jorendorff 2016-05-05 19:26:29 -04:00
Ehsan Akhgari
08b93635c7 Bug 1270370 - Part 1: Move SetIteratorObject to MapObject.h; r=jorendorff
This patch only moves the code without any changes besides getting it
out of the anonymous namespace.
2016-05-05 19:26:29 -04:00