Commit Graph

54933 Commits

Author SHA1 Message Date
Nick Fitzgerald
3bb22ebfcb Bug 1269451 - Part 3: Stop doing DEBUG-only hashing to catch incorrect mutations to SharedImmutableString's chars; r=jimb
DEBUG tests keep timing out with these enabled.
2016-05-21 13:27:07 -07:00
Nick Fitzgerald
728d4fed84 Bug 1269451 - Part 1: SharedImmutableString should hold a pointer to the cache's entry; r=jimb
This commit changes SharedImmutableString from holding its cache's entry's chars
and length directly, to holding a pointer to its cache's entry. This allows us
to avoid a table lookup and the full string hashing that entails in the
destructor.
2016-05-21 13:27:07 -07:00
Nick Fitzgerald
3883b80862 Bug 1269451 - Part 0: Add an extra indirection around entries in the SharedImmutableStringsCache; r=jimb 2016-05-21 13:27:07 -07:00
Jan de Mooij
56733050cb Bug 1261308 - Ensure Ion optimizes getgname constants exactly like Baseline. r=shu
--HG--
extra : rebase_source : 73f2472dbbeadd70064029fe2cf308ee54c0dd13
2016-05-21 20:08:54 +02:00
Jan de Mooij
69cdac665d Bug 1271609 - Make ReleaseAllJITCode call Zone::discardJitCode instead of duplicating it. r=jonco
--HG--
extra : rebase_source : fb6f46e2c85b9696876bf2d4d90a83e95bfdc369
2016-05-21 19:54:04 +02:00
Nick Fitzgerald
6cb53b2637 Bug 996060 - Follow up: Add missing "js::" namespace qualification on a CLOSED TREE; r=me 2016-05-21 10:40:17 -07:00
Nick Fitzgerald
4777b6ccda Bug 996060 - Part 2: Add a testing function and jit test for pending exception's stacks; r=sfink 2016-05-21 10:15:25 -07:00
Nick Fitzgerald
d83fd413a3 Bug 996060 - Part 1: Save a stack on JSContext::setPendingException; r=sfink
This commit captures the JS stack in `JSContext::setPendingException` and
exposes a new JSAPI function for getting the stack:
`JS::GetPendingExceptionStack`. This stack is cleared out when the pending
exception is cleared.
2016-05-21 10:15:24 -07:00
Jan de Mooij
d54ca15369 Bug 1269319 followup - Don't swap an entry with itself to avoid Variant self assignment. r=bustage
--HG--
extra : rebase_source : 0bf8331f4aba57502bbff07df478c1aeb91c2fc6
2016-05-21 18:08:30 +02:00
Tooru Fujisawa
02977947a6 Bug 1274393 - Check the pattern syntax again when adding unicode flag to RegExp object in RegExp constructor. r=till 2016-05-22 00:42:10 +09:00
Heiher
132da39aba Bug 1272934 - IonMonkey: MIPS: Implement WasmTruncateToInt32. r=bbouvier
---
 .../jit/mips-shared/CodeGenerator-mips-shared.cpp  | 96 ++++++++++++++++++++++
 js/src/jit/mips-shared/CodeGenerator-mips-shared.h |  4 +
 2 files changed, 100 insertions(+)
2016-05-21 23:05:17 +08:00
Heiher
a0aa401368 Bug 1272934 - IonMonkey: MIPS: Implement Assembler::as_truncld/as_truncls. r=arai
---
 js/src/jit/mips-shared/Assembler-mips-shared.cpp | 12 ++++++++++++
 js/src/jit/mips-shared/Assembler-mips-shared.h   |  2 ++
 2 files changed, 14 insertions(+)
2016-05-21 23:05:16 +08:00
Heiher
e1290d9b2a Bug 1272934 - IonMonkey: MIPS: Implement Assembler::as_ctc1/as_cfc1. r=arai
---
 js/src/jit/mips-shared/Assembler-mips-shared.cpp | 12 ++++++++++++
 js/src/jit/mips-shared/Assembler-mips-shared.h   | 13 +++++++++++++
 2 files changed, 25 insertions(+)
2016-05-21 23:05:14 +08:00
Jan de Mooij
eb2ea5c544 Bug 1269319 - Make AlignedStorage/AlignedStorage2 non-copyable to fix strict aliasing issues. r=Waldo 2016-05-19 20:57:36 +02:00
Benjamin Bouvier
12b06802d9 Bug 1272640: Implement wasm copysign opcode; r=sunfish
MozReview-Commit-ID: GT0Znmk0Dkl

--HG--
extra : rebase_source : 205140ab0f22c82d29d4a5a35c707c451ee7caa2
2016-05-18 19:03:57 +02:00
Benjamin Bouvier
71c7696397 Bug 1272640: Implement wasm opcodes trunc/nearestint; r=sunfish
MozReview-Commit-ID: 5g9KwkTM36k

--HG--
extra : rebase_source : 1bcf9863bb895fb7d7ddf44fb2704db58ed4df4b
2016-05-19 15:48:29 +02:00
Benjamin Bouvier
3122bc0169 Bug 1274224: Move back the win64 special case to math_sin_uncached; r=arai
MozReview-Commit-ID: BdQ7xxGYw0w

--HG--
extra : rebase_source : 4915197738373792347795c80bf36b055a4f6cdc
2016-05-19 11:57:27 +02:00
Benjamin Bouvier
1071ba90e0 Bug 1271010: Remove AsmJSInternalCallee; r=luke
MozReview-Commit-ID: KHmDlCFflm

--HG--
extra : rebase_source : 438101e8797a29bba422b9747a8ce2cd023e57b9
2016-05-10 16:11:51 +02:00
Benjamin Bouvier
2fd6ea5137 Bug 1273483: Look up the correctly typed SIMD template object when inlining a SIMD constructor; r=nbp
MozReview-Commit-ID: CwWoXbUcDb6

--HG--
extra : rebase_source : 61fb7039539a0d40f70a5eb02f4aaaf5d310c53f
2016-05-19 12:49:23 +02:00
Steve Fink
e9c0a2efe8 Bug 1273639 - Fix nonunified spidermonkey builds, r=terrence
--HG--
extra : rebase_source : 4229d82148050e0970f4d269b2357bc7511ead4e
2016-05-19 11:27:57 -07:00
Terrence Cole
e912be9216 Bug 1232417 - Followup to fix unexpected S bustage on a CLOSED TREE; r=meow 2016-05-19 12:12:40 -07:00
Terrence Cole
b7949d7392 Bug 1232417 - Use a Variant to represent the CrossCompartmentWrapperMap key; r=jonco
--HG--
extra : rebase_source : 542db862370ad8298d066253f5f56fddcd0e575e
2015-12-14 13:28:26 -08:00
Nicolas B. Pierron
5404434320 Bug 1263645 - Distinguish code coverage usages, and disable it by default in the interpreter. r=jandem 2016-05-19 13:28:35 +00:00
Tooru Fujisawa
679d9d48db Bug 1268034 - Part 4: Delay modifying global constructor/prototype slots for classes other than Function and Object. r=jorendorff 2016-05-19 20:47:07 +09:00
Tooru Fujisawa
f10d8bab39 Bug 1268034 - Part 3: Create CreateArrayFromBuffer function on demand. r=jorendorff 2016-05-19 20:47:07 +09:00
Tooru Fujisawa
f999881884 Backed out changeset d31171af48e4 (bug 1268034) 2016-05-19 20:47:07 +09:00
Eddy Bruel
b79cb97a05 Bug 1271653 - Refactor isExtensible/isSealed/isFrozen;r=jimb 2016-05-19 13:26:27 +02:00
Jon Coppeard
401746f8e8 Bug 1273432 - Fix off-by-one string length assertion r=jandem 2016-05-18 19:03:39 +01:00
Jon Coppeard
3d8e7a7e44 Bug 1273908 - Refactor GC to make it easier to add new kinds of GC thing r=terrence 2016-05-19 10:12:54 +01:00
Lars T Hansen
f63085b198 Bug 1227207 - throw correct error type. r=jorendorff
--HG--
extra : rebase_source : 1df2065fc504e57f67585e42a6e8925fbcdbeb25
2016-05-18 11:51:33 +02:00
Jan de Mooij
dacd6df3ac Bug 1273828 - Optimize JS::GetScriptedCallerGlobal. r=luke 2016-05-19 09:15:49 +02:00
Phil Ringnalda
0abb0a4c79 Back out 66aec66b11b4 (bug 1246743) for frequent e10s 10.10 mochitest-media crashes
CLOSED TREE
2016-05-18 21:31:38 -07:00
Wes Kocher
d94c21f829 Backed out changeset e113053408b6 (bug 1273432) for winxp jit test failures CLOSED TREE 2016-05-18 15:25:21 -07:00
Steve Fink
6938e74e76 Bug 1273639 - Add a nonunified spidermonkey build, r=terrence
MozReview-Commit-ID: 5FaxNw9SraO

--HG--
rename : testing/taskcluster/tasks/builds/sm_plaindebug.yml => testing/taskcluster/tasks/builds/sm_nonunified.yml
extra : rebase_source : ea5d409525a91aff34974c7d70a157b226d104ab
extra : amend_source : 2d882b03e737a2b635428fc43a84a124e74d494f
2016-05-17 08:20:52 -07:00
Ralph Giles
0946db2658 Bug 1271794 - Use SSE2 instructions on win32. r=glandium
We've decided supporting the small number of x86 machines
without SSE2 instructions is no longer worth the cost in
developer time nor the performance impact for other users.

https://groups.google.com/d/msg/mozilla.dev.platform/dZC39mj5V-s/Xt_UqZXkAAAJ

Set -arch:SSE2 by default on x86 if an arch hasn't already
been supplied. This ensures we'll continue to build with
the right instruction set if the compiler changes its default
in the future, while still allowing custom builds to set
a lower minimum.

Also updates the filter to strip all arch switches on win64
when building the sandbox. The 64-bit compiler doesn't
support -arch:SSE2 either.

MozReview-Commit-ID: JzTRGPn9vzI
2016-05-18 11:06:30 -07:00
Jon Coppeard
46d20ea557 Bug 1273432 - Fix off-by-one string length assertion r=jandem 2016-05-18 19:03:39 +01:00
Nathan Froyd
fc77185702 Bug 1246743 - use libc++ on OS X builds; r=glandium 2016-05-18 22:01:53 -04:00
Terrence Cole
4bf8df3a44 Bug 1266887 - Store Rooted heads on the Zone; r=sfink
--HG--
extra : rebase_source : 30686e746021d123947ade0ad51b10f1b3d32ee9
2016-04-25 12:32:36 -07:00
Dan Gohman
2376586469 Bug 1273748 - BaldryMonkey: Miscellaneous fixes. r=luke 2016-05-18 09:23:09 -07:00
Jonathan Watt
1f58b22c60 Bug 177957, part 3 - Make the WebIDL code generator support the [SecureContext] extended attribute. r=bz
MozReview-Commit-ID: 3O3V4MTgLuR
2016-05-16 10:04:38 +01:00
Lars T Hansen
fa138fd440 Bug 1271736 - remove SharedArrayBuffer.isView. r=jorendorff
--HG--
extra : rebase_source : a505f5fe8d8476fea6da58646c2ab734ef9329a4
2016-05-12 17:01:55 +02:00
Heiher
ea72401321 Bug 1273722 - IonMonkey: MIPS: Use andi AMAP in branchTestPtr. r=arai
---
 js/src/jit/mips-shared/MacroAssembler-mips-shared-inl.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
2016-05-18 16:42:34 +08:00
Heiher
b7d73d3cdc Bug 1273722 - IonMonkey: MIPS: Use andi AMAP in branchTest32. r=arai
---
 js/src/jit/mips-shared/MacroAssembler-mips-shared-inl.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
2016-05-18 16:42:32 +08:00
Heiher
8099f4579c Bug 1273722 - IonMonkey: MIPS: Fix scratch register overwrite in branchTest32. r=arai
---
 js/src/jit/mips-shared/MacroAssembler-mips-shared-inl.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
2016-05-18 16:42:31 +08:00
Phil Ringnalda
2657cac015 Backed out 3 changesets (bug 1271794, bug 1271829) on suspicion of making Windows builds less likely to... build
CLOSED TREE

Backed out changeset d0ab0d508a24 (bug 1271829)
Backed out changeset 9f4983dfd881 (bug 1271829)
Backed out changeset 28b45df659b7 (bug 1271794)
2016-05-18 00:04:29 -04:00
Steve Singer
ff3b7278ef Bug 1272938 - Add js namespace prefix. r=terrence 2016-05-16 21:44:38 -04:00
Jakob Stoklund Olesen
94c59e4554 Bug 1136226 - Asm.js: Add small integer SIMD types. r=bbouvier
Almost entirely boilerplate.

Note that IsSimdValidOperationType() does not yet accept 8x16 and 16x8 SIMD
operations which means that none of the new code is reachable yet. We'll turn
this on once IonMonkey has full support for the new SIMD types.
2016-05-17 14:53:56 -07:00
Jakob Stoklund Olesen
c63f69db4d Bug 1136226 - Wasm: Codegen for small integer SIMD constants. r=sunfish 2016-05-17 14:53:56 -07:00
Jakob Stoklund Olesen
cd0d32a097 Bug 1136226 - Wasm: Generate code for small int SIMD constructors. r=sunfish
SIMD constructors with dynamic arguments are translated to a sequence of
MSimdInsertElement instructions, LLVM style. This may change if we need the
optimization.
2016-05-17 14:53:56 -07:00
Jakob Stoklund Olesen
d12579deb1 Bug 1136226 - Wasm: Add opcodes for small integer SIMD types. r=sunfish 2016-05-17 14:53:56 -07:00
Jakob Stoklund Olesen
d512bedc76 Bug 1136226 - Wasm: Encode/decode small integer SIMD constants. r=sunfish 2016-05-17 14:53:55 -07:00
Jakob Stoklund Olesen
d019dc8621 Bug 1136226 - Wasm: Add small integer SIMD types to WasmTypes.h. r=sunfish 2016-05-17 14:53:55 -07:00
Jakob Olesen
298319dfc5 Bug 1136226 - Add FORALL enumerations for small integer SIMD types. r=sunfish
These are used in the asm.js / wasm code generator.

Also include addSaturate and subSaturate in the SimdOperation enum. They had
been left out by accident.
2016-05-17 14:53:55 -07:00
Chris Manchester
0676d58107 Bug 1272535 - Move MOZ_UPDATE_CHANNEL to Python configure. r=glandium
MozReview-Commit-ID: 2NuZZX1hoEP
2016-05-17 14:40:03 -07:00
Wes Kocher
3ac80a6ae8 Merge m-c to inbound, a=merge
--HG--
rename : testing/eslint-plugin-mozilla/lib/rules/.eslintrc => testing/eslint/eslint-plugin-mozilla/lib/rules/.eslintrc
2016-05-17 14:17:19 -07:00
Wes Kocher
3e7b9d23cc Merge inbound to central, a=merge 2016-05-17 13:52:35 -07:00
Jon Coppeard
d52f95abce Bug 1273494 - Guard call to JSTracer::setCheckEdges that is only present in DEBUG builds r=jandem a=build_error 2016-05-17 14:49:58 +01:00
Tooru Fujisawa
642f05ea77 Bug 1263340 - Part 4: Followup for @@split - Apply optimized path for empty string too. r=till 2016-05-18 04:26:41 +09:00
Nick Fitzgerald
518bb9b3a0 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-17 12:51:08 -07:00
Jon Coppeard
0dc2cc6613 Bug 1272604 - Fix hazard analysis failure r=me 2016-05-16 15:16:30 +01:00
Jon Coppeard
b308c4d6a9 Bug 1272604 - Fix bad implicit conversion constructor build error r=me 2016-05-16 14:38:29 +01:00
Jon Coppeard
35a9e3a430 Bug 1272604 - Add a zeal mode to check the heap after a moving GC r=terrence 2016-05-16 14:23:09 +01:00
Ralph Giles
90a00904df Bug 1271794 - Use SSE2 instructions on win32. r=glandium
We've decided supporting the small number of x86 machines
without SSE2 instructions is no longer worth the cost in
developer time nor the performance impact for other users.

https://groups.google.com/d/msg/mozilla.dev.platform/dZC39mj5V-s/Xt_UqZXkAAAJ

Set -arch:SSE2 by default on x86 if an arch hasn't already
been supplied. This ensures we'll continue to build with
the right instruction set if the compiler changes its default
in the future, while still allowing custom builds to set
a lower minimum.

Also updates the filter to strip all arch switches on win64
when building the sandbox. The 64-bit compiler doesn't
support -arch:SSE2 either.

MozReview-Commit-ID: JzTRGPn9vzI
2016-05-17 11:35:51 -07:00
Nicolas B. Pierron
3dad56dd53 Bug 1261826 part 10 - Only increment code coverage counters on jump targets. r=bhackett 2016-05-17 17:15:53 +00:00
Nicolas B. Pierron
a5b3aecc2a Bug 1261826 part 9 - initScriptCounts relies on jump targets for allocating PCCounts. r=bhackett 2016-05-17 17:15:53 +00:00
Nicolas B. Pierron
1772621136 Bug 1261826 part 8.1 - Make Debugger.Script.getOffsetLocation only consider entry point locations. r=shu 2016-05-17 17:15:52 +00:00
Nicolas B. Pierron
e037534d4b Bug 1261826 part 8 - Add JSOP_JUMPTARGET opcode. r=jandem,jorendorff,shu 2016-05-17 17:15:52 +00:00
Nicolas B. Pierron
d02bd6369a Bug 1261826 part 7 - Add a no-op bytecode to filter out branches results from the decompiler. r=jorendorff 2016-05-17 17:15:52 +00:00
Nicolas B. Pierron
17eede2c99 Bug 1261826 part 6 - Factor code which record new Bytecode offset stack. r=shu 2016-05-17 17:15:52 +00:00
Nicolas B. Pierron
4e13ad2cdd Bug 1261826 part 4 - BytecodeEmitter: Distinguish offsets based on their purposes. r=jorendorff,shu 2016-05-17 17:15:52 +00:00
Nicolas B. Pierron
0ea2111a78 Bug 1261826 part 3 - Remove outdated comment about XDR_BYTECODE_VERSION. r=arai 2016-05-17 17:15:52 +00:00
Nicolas B. Pierron
a68b7da633 Bug 1261826 part 2 - Add JSScript::assertValidJumpTargets. r=jorendorff
This code is inspired from JSScript::initScriptCounts except that append
operations are replaced by MOZ_ASSERT.
2016-05-17 17:15:52 +00:00
Nicolas B. Pierron
de1aed0527 Bug 1261826 part 1.5 - Extract assertions from JSScript::fullyInitFromEmitter. r=jorendorff 2016-05-17 17:15:52 +00:00
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