Commit Graph

55204 Commits

Author SHA1 Message Date
Ms2ger
38579768d4 Bug 1277483 - Move --enable-strip and --enable-install-strip to moz.configure; r=glandium 2016-06-03 11:11:40 +02:00
Makoto Kato
daf9534a3e Bug 1262052 - Remove unnecessary -mandroid parameter. r=glandium
When target is Android, -mandroid is default parameter from gcc 4.6  So we don't need add this options.

Also clang doesn't support this argument.

MozReview-Commit-ID: AuA3Y9vlgWE

--HG--
extra : rebase_source : c1866f56f131e666cc321d21fda1317532d46101
2016-06-07 16:07:39 +09:00
Andrea Marchesini
5a7749a26f Bug 1265767 - Subset of Blink FileSystem API - patch 2 - Entries, r=smaug 2016-06-07 00:55:16 +02:00
Heiher
f69651703d Bug 1277478 - OdinMonkey: MIPS: Fix nop-jump patching code. r=luke
---
 js/src/jit/mips-shared/MacroAssembler-mips-shared.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
2016-06-07 10:25:45 +08:00
Luke Wagner
a3c8c7e348 Bug 1278070 - Baldr: save bytecode when console open to any pane, not just debugger (r=shu)
MozReview-Commit-ID: CT7N7wn1BPB

--HG--
extra : rebase_source : 88d5be9ed2cb2cdd3f96d5dc570826ac4525de8e
2016-06-06 18:01:33 -05:00
Luke Wagner
e0962c91f1 Bug 1276028 - Baldr: split out CodeSegment and Metadata from Module (r=bbouvier)
MozReview-Commit-ID: AnITPZYpgp1

--HG--
extra : rebase_source : d3164565407ff3ddcb7da967ba32319f318c4f5d
2016-06-06 17:21:31 -05:00
Luke Wagner
57323900e3 Bug 1276028 - Baldr: move and privatize callImport (r=bbouvier)
MozReview-Commit-ID: LISVD5fg83L

--HG--
extra : rebase_source : 4dc05a115ce239883a9a67e3847041aeb176bb30
2016-06-06 17:18:55 -05:00
Luke Wagner
f3ec612c0a Bug 1276028 - Baldr: remove numFuncs (r=bbouvier)
MozReview-Commit-ID: uphgnEfhsN

--HG--
extra : rebase_source : c9c55194e49e2c55dd261fe18ee084e3fa1a188d
2016-06-06 17:18:55 -05:00
Luke Wagner
d2b6a31232 Bug 1276028 - Baldr: tidy up IsPod specialization (r=bbouvier)
MozReview-Commit-ID: KfI00OvIupL

--HG--
extra : rebase_source : 6bd2d215c844db185f6d392dfbae8ac84ae76ebc
2016-06-06 17:18:55 -05:00
Morgan Phillips
6cd35e0297 Bug 1054906 - Implement ES6 Symbol.hasInstance 2/2; r=jandem
--HG--
extra : rebase_source : 862c135973071b1cb8abc3a97ab446b7b137d7a8
2016-06-02 14:30:35 -07:00
Morgan Phillips
df95ec2891 Bug 1054906 - Implement ES6 Symbol.hasInstance 1/2; r=evilpie,bz
--HG--
extra : rebase_source : 66945f0b148fb6a36912544a52994daeffe76c7e
2016-06-06 11:59:41 -07:00
Terrence Cole
05f6aaf959 Bug 1276882 - Handle NaN sleep values explicitly; r=jandem
--HG--
extra : rebase_source : 08f79177e7d1a4a58952b6f95d952105105fdbaa
2016-06-06 15:01:09 -07:00
Andi-Bogdan Postelnicu
7f6a9257f5 Bug 1278251 - corrected assign instead of compare. r=bbouvier
MozReview-Commit-ID: 4QrWu0MOzJB

--HG--
extra : rebase_source : a199cd5c0b3f06716df6c85167f444b5ff49e853
2016-06-06 17:07:54 +03:00
Wes Kocher
53380a5863 Backed out 2 changesets (bug 1271653) for gc assertions CLOSED TREE
Backed out changeset 7a197b8bd00a (bug 1271653)
Backed out changeset 9c29d3067608 (bug 1271653)
2016-06-06 14:28:05 -07:00
Jan de Mooij
c440f2d057 Bug 1278223 part 2 - Change the shell to use a single cx per runtime and add a release assert to enforce this. r=luke 2016-06-06 19:45:35 +02:00
Eddy Bruel
817579cd0f Bug 1271653 - Global environment functions should assert that referent is global;r=jimb 2016-06-06 18:26:29 +02:00
Jon Coppeard
5f15a2d19b Bug 1275033 - Don't call into the VM for global objects that are already in the store buffer r=jandem 2016-06-06 17:15:16 +01:00
Eddy Bruel
7bce2ff615 Bug 1271653 - Bound function properties should assert that referent is debuggee function;r=jimb 2016-06-06 18:13:07 +02:00
Jakob Stoklund Olesen
fac7b52918 Bug 1277796 - Fix boolean SIMD constructors. r=bbouvier
Add better test coverage of boolean SIMD constructors with insufficient
arguments.

Add better test coverage of 8x16 and 16x8 constructor calls with missing args.

Fix a crash caused by a missing bool-to-int conversion before a boolean splat
when inlining a boolean constructor.

Fix a crash in the foldsTo method for boolean splats. The 8x16 and 16x8 booleans
were not implemented.

MozReview-Commit-ID: 71kjDpfw84h

--HG--
extra : rebase_source : d0d2f859f8daee3d9c50dbdc971c92b4a60a8543
2016-06-06 07:51:15 -07:00
Nathan Froyd
3a01463f29 Bug 1277867 - use uintptr_t more consistently in Value.h; r=luke
While the casts being changed in this patch are correct as they are,
other functions near these use uintptr_t.  For consistency's sake, it
seems better to use uintptr_t everywhere.
2016-06-06 17:01:40 -04:00
Eddy Bruel
a8745145ea Bug 1271653 - Implement a C++ interface for name/displayName;r=jimb 2016-06-06 14:50:12 +02:00
Eddy Bruel
8de72f868e Bug 1271653 - Implement a C++ interface for proto and className;r=jimb 2016-06-06 14:49:24 +02:00
Eddy Bruel
a1804c7b1e Bug 1271653 - Implement a C++ interface for the bound function properties;r=jimb 2016-06-06 14:48:11 +02:00
Eddy Bruel
97e08ffec4 Bug 1271653 - Implement a C++ function for makeDebuggeeValue/unsafeDereference/unwrap;r=jimb 2016-06-06 14:07:58 +02:00
Benjamin Bouvier
ec7dc9ab92 Bug 1277148: Make overflow testing more explicit in CheckIf; r=sunfish
MozReview-Commit-ID: HE9gRmid9FI

--HG--
extra : rebase_source : f003d14de92ab72ab40cce12f447a73a7cef8d35
extra : amend_source : bd5d1d483fd0102229f75683490074fc874541ee
2016-06-02 10:40:10 +02:00
Benjamin Bouvier
bc5984bc55 Bug 1277479: Use more ES6 features in Y.js; r=fitzgen ; DONTBUILD
MozReview-Commit-ID: G8f9iSL43Jw

--HG--
extra : rebase_source : 391ea220595c4b17f279e3f00538268641a7eae0
extra : amend_source : a3852f238df4cb618a42e7d102faec1ddac6f697
2016-06-02 10:20:51 +02:00
Sebastian Hengst
989509aea6 Backed out changeset b11548673318 (bug 1271653) for various crashes in javascript debugger tests, e.g. browser_dbg_break-on-dom-08.js. r=backout on a CLOSED TREE 2016-06-06 13:00:51 +02:00
Sebastian Hengst
8695b5e1eb Backed out changeset 368484809241 (bug 1271653) 2016-06-06 12:56:27 +02:00
Sebastian Hengst
02c5757672 Backed out changeset 9d4e3c2f6a90 (bug 1271653) 2016-06-06 12:56:24 +02:00
Eddy Bruel
68d7d02424 Bug 1271653 - Implement a C++ interface for proto and className;r=jimb 2016-06-06 11:51:06 +02:00
Eddy Bruel
41ad187d35 Bug 1271653 - Implement a C++ interface for the bound function properties;r=jimb 2016-06-06 11:40:47 +02:00
Eddy Bruel
07210c4141 Bug 1271653 - Implement a C++ function for makeDebuggeeValue/unsafeDereference/unwrap;r=jimb 2016-06-06 11:14:43 +02:00
Jan de Mooij
75d9ae197b Bug 1254197 - Don't change the result type of unboxed array loads. r=bhackett
--HG--
extra : rebase_source : e0772603652349e9361c41fe5307a16b4676501c
2016-06-06 10:35:08 +02:00
huangwenjun
48f3ea793d Bug 1277426 - IonMonkey: MIPS: Replace mult/mflo by mul in MulI. r=hev
---
 js/src/jit/mips-shared/CodeGenerator-mips-shared.cpp  | 6 ++----
 js/src/jit/mips-shared/MacroAssembler-mips-shared.cpp | 7 +++++++
 js/src/jit/mips-shared/MacroAssembler-mips-shared.h   | 1 +
 3 files changed, 10 insertions(+), 4 deletions(-)
2016-06-06 13:29:33 +08:00
Makoto Kato
dcd9507126 Bug 1277498 - Remove MC (message compiler) define from old-configure.in. r=mshal
By bug 1270621, ETW support is removed.  So no one uses messege compiler.

MozReview-Commit-ID: HGUAkrb208N

--HG--
extra : rebase_source : 5178283b781e4805b4e97f09b35a4150119d060a
extra : histedit_source : 40d6992894315b51863db4e7697df1c1ef18edd8
2016-06-06 13:36:51 +09:00
Nicholas Nethercote
7b96c1446c Bug 1267551 (part 11b) - Follow-up to fix Android bustage. r=me.
--HG--
extra : rebase_source : 8fc9bae58049fdd3cc660a31e9d4d7bd7ca2f67d
2016-06-06 11:36:30 +10:00
Nicholas Nethercote
e3ea9be8a6 Bug 1267551 (part 11) - Use MOZ_MUST_USE in js/src/vm/Printer.h. r=h4writer.
This catches a missing check.

--HG--
extra : rebase_source : 7a907da5a842ef0c4a677cbf17c86d8ee1d719db
2016-06-03 16:25:18 +10:00
Nicholas Nethercote
2560f9436f No bug. Remove unused JS_CLASS_MEMBERS argument. r=me.
--HG--
extra : rebase_source : 6837bd7f0fba743ad6c7f9c8af32fca23dbe0de3
2016-06-06 09:14:45 +10:00
Zibi Braniecki
bc7c0ef5e4 Bug 1275183 - "Hang if Intl.getCanonicalLocales gets an Array-like-object with negative length". r=waldo
--HG--
extra : rebase_source : 2b775e5f7218a63401f51bfd6b4bfc6a7042f791
2016-06-03 12:03:00 +02:00
Tom Tromey
eeb1dda14e Bug 1277628 - handle js::GCPtr in gdb pretty-printers. r=sfink
This avoids an error when trying to deref a GCPtr; and also adds the tag
to the NotImplementedError to make it simpler to fix similar bugs in the
future.

MozReview-Commit-ID: 48JzqqDgNxe

--HG--
extra : transplant_source : %8DS%87s%FAz%FB%F5%BAu%E0V%60%1D%A7%AD%B1%EA%D1K
2016-06-02 12:32:27 -06:00
Zibi Braniecki
ffad6a6151 Bug 1260858 - "Update the DateTimeFormat.prototype.formatToParts to the final spec". r=waldo
--HG--
extra : rebase_source : 8060e7894b59d1e313f1623e56c15b7fa0549712
2016-06-03 15:55:00 +02:00
Jan de Mooij
af2f09018d Bug 1276879 followup - Use JS::RootedValue instead of RootedValue to fix non-unified build. r=bustage 2016-06-04 17:54:22 +02:00
Jan de Mooij
fa74b7f6a5 Bug 1276879 - Convert jsapi-tests to autoJSAPIOwnsErrorReporting. r=jorendorff 2016-06-04 16:52:06 +02:00
Carsten "Tomcat" Book
21e7516373 Backed out changeset 6e489044de50 (bug 1269711) for spidermonkey test failures 2016-06-04 09:38:28 +02:00
Andrea Marchesini
3f22b78a94 Bug 1274362 - a Symbol passed to postMessage should throw DataCloneException, r=sfink 2016-06-04 09:24:28 +02:00
Shu-yu Guo
b1b4b0af39 Bug 1269711 - Disallow JS shell interrupt callback function to affect exception state of interrupted JS. (r=jimb) 2016-06-03 20:09:40 -07:00
Carsten "Tomcat" Book
d01a91fbca Backed out changeset dc8e4c1174b2 (bug 1277483) for suspicion this caused android and ab failures on a CLOSED TREE
--HG--
extra : rebase_source : 8c1bda9b8cea3ccdb5a231811e539423e85cad86
2016-06-03 14:31:10 +02:00
Makoto Kato
1f8d8d608f Bug 1277742 - Use correct namespace for ChunkSize on aarch64. r=ehoogeveen
MozReview-Commit-ID: FqXkZaOG6SK
2016-06-03 19:11:00 +09:00
Yury Delendik
4df6880523 Bug 1277246 - Add support for names section. r=luke
MozReview-Commit-ID: LbGMxxDdmXx

--HG--
extra : transplant_source : i3z%EBUak%AF%8Dgxr%F0x%B9c%0AxMa
2016-06-02 14:39:30 -05:00
Yury Delendik
61c56fac30 Bug 1277063 - Update WebAssembly pilot format to support semicolons and parens. r=sunfish
MozReview-Commit-ID: J2M0yoCCwke

--HG--
extra : transplant_source : bUkMO%E8d%AB%7F%C5%DB%90%8D%A0%AD%9B%0E%E0o%9F
2016-06-02 14:28:20 -05:00
Ms2ger
607905c151 Bug 1277483 - Move --enable-strip and --enable-install-strip to moz.configure; r=glandium 2016-06-03 11:11:40 +02:00
Eric Skoglund
51b120f30c Bug 730838 - Tests for Bug 730838. r=evilpies
MozReview-Commit-ID: 4VwAF8H5cP3

--HG--
extra : transplant_source : 6%1E%26%87%19%BE%D5%EC%E9%FD%B0%16%18%86x%08%7EU%01Q
2016-05-28 16:06:10 +02:00
Eric Skoglund
fbcc31dbe7 Bug 730838 - Date.parse accepts non-zero milliseconds for ISO-8601 midnight representation. r=evilpies
We forgot to check that the fraction part of second in the date was zero
if the time is midnight.

MozReview-Commit-ID: 7bMzFK8mBnO

--HG--
extra : transplant_source : %F3%29%5B%B7%F9O.IT%AB%2B%F4%F0iJ%CE%40%9CoN
2016-05-24 09:32:54 +02:00
Masatoshi Kimura
7f91a2f04a Bug 1277691 - Allow security.turn_off_all_security_so_that_viruses_can_take_over_this_computer only if MOZ_DISABLE_NONLOCAL_CONNECTIONS is set. r=mrbkap 2016-06-03 07:40:16 +09:00
Luke Wagner
38784200aa Bug 1277408 - Odin: don't forget to AutoForbidPools in the prologue nop either (r=bbouvier)
MozReview-Commit-ID: KHoUFpPT457
2016-06-02 14:36:53 -05:00
Benjamin Bouvier
7cddb1ba38 Bug 1163991: Show a best effort stack frame in non-profiling mode for wasm; r=luke
MozReview-Commit-ID: F6mk7YskovC

--HG--
extra : rebase_source : 4d9bf7a2d45f0479de7ce10f00fe32da886b5bcc
2016-05-10 19:28:15 +02:00
Terrence Cole
2b4b9b70d0 Bug 1272449 - Followup to fix unified bustage; r=meow
--HG--
extra : rebase_source : 6004fa973126f88eadeaf59161ff0c7334c2372a
2016-06-02 10:10:07 -07:00
Terrence Cole
52103bf61a Bug 1272449 - Finish refactoring allocator code; r=jonco
--HG--
extra : rebase_source : 04ecef934d1185230bcf28b0b4f1cdb21b77c120
2016-05-18 10:57:22 -07:00
Boris Zbarsky
c3e26e4cec Bug 1276399. Remove the now-unused privateIsNSISupports JSContext option. r=jandem 2016-06-02 10:34:40 -04:00
Boris Zbarsky
145992b47d Bug 1276317 part 2. Move GC zeal handling from nsJSContext to XPCJSRuntime. r=peterv 2016-06-02 10:34:38 -04:00
Boris Zbarsky
f86c21cecc Bug 1276317 part 1. Change JS_SetGCZeal to take a JSRuntime, not a JSContext. r=jandem 2016-06-02 10:34:38 -04:00
Nicolas B. Pierron
2ef0f525fd Bug 1274588 part 2 - Rely on aliased jump target to remove extra popStatement function. r=jorendorff 2016-06-02 13:41:04 +00:00
Nicolas B. Pierron
f2bcccf5a2 Bug 1274588 part 1.1 - Update code coverage reports to accounts for the aliased jump targets. r=bhackett 2016-06-02 13:41:04 +00:00
Nicolas B. Pierron
316a29187b Bug 1274588 part 1.0 - Alias consecutive jump targets. r=jorendorff 2016-06-02 13:41:04 +00:00
Nicolas B. Pierron
789c4a78d4 Bug 1274588 part 0.1 - Add MOZ_MUST_USE to popStatement functions. r=jorendorff 2016-06-02 13:41:04 +00:00
Eddy Bruel
0de6d7d691 Bug 1271653 - Implement a C++ interface for forceLexicalInitializationByName;r=jimb 2016-06-02 12:55:22 +02:00
Hannes Verschore
7ad19c682f Bug 1275248 - IonMonkey: Don't alias loading of elements with different indexes, r=jandem 2016-06-02 12:21:46 +02:00
Hannes Verschore
98c6b2f086 Bug 1275248 - IonMonkey: Use MustAlias in Alias Analysis, r=jandem 2016-06-02 12:21:44 +02:00
Hannes Verschore
567743bf38 Bug 1275038 - IonMonkey: Remove regexp clone analysis in favor of hoist analysis, r=jandem 2016-06-02 12:21:33 +02:00
Nick Fitzgerald
7edb7bfd83 Bug 1260728 - Ensure that the script has had its arguments usage analyzed before we get arguments in the debugger; r=shu 2016-06-01 17:10:00 +02:00
Nicholas Nethercote
2fda0872c8 Bug 1267551 (part 10) - Use MOZ_MUST_USE in AutoVectorRooterBase. r=terrence.
This patch fixes numerous unchecked calls.

--HG--
extra : rebase_source : 566f2ca9fba1c8b18fa7ec1753168dbae9cf70d1
2016-06-01 15:49:04 +10:00
Makoto Kato
23a4f68a8f Bug 1277449 - Fix typo for Register::invalid_reg on non-JIT platform. r=luke
MozReview-Commit-ID: 6P1PQVXdSWM
2016-06-02 15:48:30 +09:00
Jan de Mooij
11e09db980 Bug 1274922 part 7 - Fix a werror buglet. r=jorendorff 2016-06-02 08:30:04 +02:00
Tooru Fujisawa
7cde99396c Bug 1272523 - Store locale cache data in more robust order. r=jwalden 2016-06-02 07:43:14 +09:00
Terrence Cole
40a865b593 Bug 1266552 - Use WeakCache to automatically sweep AllocationSiteTable; r=sfink
--HG--
extra : rebase_source : 5de69eff057c54b9b6e899c481ecbbefc04a35d1
2016-05-16 15:08:18 -07:00
Tooru Fujisawa
f300b24a7b Bug 1276626 - Part 1: Invoke interrupt handler only after MinScriptRunTimeSeconds elapsed. r=mrbkap 2016-06-02 01:19:27 +09:00
Tooru Fujisawa
5bad0908f5 Bug 1276082 - Get self-hosted function name only from global functions. r=h4writer 2016-06-02 01:19:27 +09:00
Nicolas B. Pierron
c543d0a269 Bug 1264948 - Weaken infallible allocator assertion for jsapi-tests. r=sunfish 2016-06-01 14:43:32 +00:00
Nicolas B. Pierron
cc428bf1b8 Bug 1264948 - Ensure that we have enough ballast space IonMonkey compilation. r=h4writer 2016-06-01 14:43:32 +00:00
Nicolas B. Pierron
0619381333 Bug 1264948 - Make it possible to use a placement-new with a fallible TempAllocator. r=h4writer 2016-06-01 14:43:31 +00:00
Jan de Mooij
5d381e2b9a Bug 1276865 - Set autoJSAPIOwnsErrorReporting when initializing the self-hosting compartment. r=till
--HG--
extra : rebase_source : c8ad64b76cfe3afbe59c64d6145367c096ca91e7
2016-06-01 15:26:37 +02:00
Jan de Mooij
9f2b280090 Bug 1273867 - Don't call checkIsDefinitelyOptimizedArguments for getprops other than .length or .callee. r=h4writer
--HG--
extra : rebase_source : b103cdf28b91744433caf1db1aa1addbb965dc58
2016-06-01 15:12:03 +02:00
Nathan Froyd
a9e1da6c8a Bug 1272813 - part 1 - fallibly assign strings in {NonVoid,}StringToJsval; r=peterv
Avoiding large infallible allocations is always a good thing.
2016-06-01 16:26:59 -04:00
Eddy Bruel
b965617dd1 Bug 1271653 - Implement a C++ interface for executeInGlobal(WithBindings);r=jimb 2016-06-01 12:18:22 +02:00
Jon Coppeard
b6e2f7319b Bug 1276631 - Update assertions to allow lazy sweeping of type inference while heap checking zeal mode is active r=terrence 2016-06-01 11:18:08 +01:00
Eddy Bruel
d3ee2f3f49 Bug 1271653 - Quick fix for an unhelpful error message;r=me 2016-06-01 12:09:51 +02:00
Eddy Bruel
bbc4994c1c Bug 1271653 - Quick fix for an unhelpful error message;r=me 2016-06-01 11:57:53 +02:00
Heiher
f23bd91b8d Bug 1276839 - IonMonkey: MIPS64: Fix ma_dins encoding. r=arai
---
 js/src/jit/mips64/MacroAssembler-mips64.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
2016-06-01 16:34:53 +08:00
Chris Peterson
553aca4e35 Bug 1276567 - Fix -Wstring-conversion warnings in js/ directory. r=billm
js/ipc/WrapperAnswer.cpp:531:16 [-Wstring-conversion] implicit conversion turns string literal into bool: 'const char [12]' to 'bool'
js/src/jit/MIR.h:63:25 [-Wstring-conversion] implicit conversion turns string literal into bool: 'const char [26]' to 'bool'
js/src/jit/SharedIC.cpp:1648:21 [-Wstring-conversion] implicit conversion turns string literal into bool: 'const char [30]' to 'bool'
js/src/jsgc.cpp:7135:21 [-Wstring-conversion] implicit conversion turns string literal into bool: 'const char [59]' to 'bool'
2016-05-31 21:49:52 -07:00
Eddy Bruel
ceec41fb99 Bug 1271653 - Use HandleObject for eval bindings instead of HandleValue;r=jimb 2016-06-01 08:37:16 +02:00
Eddy Bruel
8ddce9d86b Bug 1271653 - Use mozilla::range<const char16_t> for eval code instead of HandleValue;r=jimb 2016-06-01 08:36:08 +02:00
Boris Zbarsky
c22814a653 Bug 1276400 part 4. Stop setting dontReportUncaught in XPConnect code, since all consumers got their JSContext from an AutoEntryScript or AutoJSAPI. r=bkelly 2016-05-31 22:04:34 -04:00
Boris Zbarsky
39531c0bc8 Bug 1276400 part 3. Stop setting the dontReportUncaught option in IPC code, since we're working with an AutoJSAPI there. r=bkelly 2016-05-31 22:04:33 -04:00
Steve Fink
5866e2ac15 Bug 1259850 trail of tears - more bogus reasons for calloc() to GC found. Suppress them.
MozReview-Commit-ID: 1DrGZ9RW556

--HG--
extra : rebase_source : 975daa7185871abc1b3342a6618c7c6588e5b2ee
2016-05-31 16:15:45 -07:00
Steve Fink
c795982e76 Bug 1259850 - Make ZoneCellIter variants to communicate nogc to the hazard analysis, r=jonco
Also create accessors on gc::Zone for a nicer API to ZoneCellIters.

MozReview-Commit-ID: AxRTTUfWrND

--HG--
extra : rebase_source : cefc7562d01e70b34288dbe8b1f53bc1555a2d86
extra : source : c95bdd426ced9a71bc64694ea236b46d035bb0df
2016-05-27 22:00:10 -07:00
Steve Fink
75d1976f53 Bug 1259850 - Annotate mFree function pointer as not GCing, r=terrence
MozReview-Commit-ID: LrzzLYHsBnO

--HG--
extra : rebase_source : 9290a9be8e419d9bc73cd4feabeac12916326b3c
extra : source : a73f74f718e7464d40c17df3f4228c96d5819d1a
2016-05-27 16:48:31 -07:00
Steve Fink
af2225da89 Bug 1259850 - Comments
MozReview-Commit-ID: 9RjVxl4EX8N

--HG--
extra : rebase_source : 032c4105bb9177197ec339381ae74275aae0770e
extra : source : 95107c3ad9cf5a173a17aee4fcd8635defbf0eb4
2016-05-24 18:26:21 -07:00
Steve Fink
74a16a4cf1 Bug 1259850 - Test for sixgill exception handling + analysis constructor/destructor matching, r=terrence
MozReview-Commit-ID: H5NZlyS2rx5

--HG--
rename : js/src/devtools/rootAnalysis/t/suppression/source.cpp => js/src/devtools/rootAnalysis/t/exceptions/source.cpp
rename : js/src/devtools/rootAnalysis/t/suppression/test.py => js/src/devtools/rootAnalysis/t/exceptions/test.py
extra : rebase_source : 04e6ff6569457cac14126781b2505874ec759d00
extra : source : 788ac18818c9b91f3057c4c382bf17be264eb03e
2016-04-28 15:05:09 -07:00
Steve Fink
346b589e90 Bug 1259850 - Remove unused test files, r=terrence
MozReview-Commit-ID: sBZct85zDJ

--HG--
extra : rebase_source : 5c41e5fee58035cb8e7862addc6daae7a782e884
extra : source : 19c13aa9b5ada4d1284a09d8284b3231e0790ebe
2016-04-28 11:27:50 -07:00
Steve Fink
81c295d72d Bug 1259850 - Fix constructor recognition, r=terrence
MozReview-Commit-ID: 46064amRbCQ

--HG--
extra : rebase_source : 362db8683b65758fa8f9976a166705b66a0f6d8b
extra : source : 0b9dedcf7163ce35e4207a1d8fe33523a9a8f920
2016-04-28 14:19:01 -07:00
Steve Fink
75e3654bc5 Bug 1259850 - Update sixgill to ignore exception cleanup and properly qualify some type names
MozReview-Commit-ID: 7WSYmLAVb7M

--HG--
extra : rebase_source : 44c937df8e1fe080577d8a00b924698f033daa39
extra : source : b641d01138ab54ec1f6b29232614b338b02d42f1
2016-05-04 18:36:23 -07:00
Steve Fink
e409f193e1 Bug 1259850 - Rewrite the test suite, add several tests, r=terrence
MozReview-Commit-ID: HtJ0uA3IfXZ

--HG--
rename : js/src/devtools/rootAnalysis/run-test.py => js/src/devtools/rootAnalysis/t/sixgill.py
extra : rebase_source : 3002048a93db2337ac6b7f2c5c0329c5bc603664
extra : source : aa434447a11bd8b62b954b24005729a1bd757679
2016-03-25 14:40:23 -07:00
Steve Fink
a252c6a3a5 Bug 1259850 - Provide GC stacks for synthesized functions, r=terrence
MozReview-Commit-ID: 6WYqoXN3k9J

--HG--
extra : rebase_source : 9548ec562e0a068fec644cd181254977c29df6f6
extra : source : 4c7373c6c29efffa4e7f1f87acbf755d9fae8f0d
2016-03-25 11:45:05 -07:00
Steve Fink
4aceeb4bb1 Bug 1259850 - Handle D4 destructors, r=terrence
MozReview-Commit-ID: 1hArAcAxvZV

--HG--
extra : rebase_source : d48fc7ea0405792f9bdd65feb40db788cf2f9f9a
extra : source : 457cb29cad5556b8289deb94c67590d9c2b23c9f
2016-03-25 11:44:21 -07:00
Steve Fink
b6c538d648 Bug 1259850 - Various refactorings, r=terrence
MozReview-Commit-ID: GYrqbzK3U8W

--HG--
extra : rebase_source : a230b7106750b47356162f490fc1bee43df2f29c
extra : source : 5762a8fba027bb667a621deb50540ddd5a884193
2016-03-25 11:41:54 -07:00
Steve Fink
f1abc86304 Bug 1259850 - In-source annotations for GC suppression, r=terrence
MozReview-Commit-ID: HaSt3RVV6CM

--HG--
extra : rebase_source : f607cee411ac438e9f17095cd7b5732ccf325443
extra : source : 129559d4ac621b3801e41ce10db1cb4b1a6786da
2016-05-19 12:53:29 -07:00
Steve Fink
75c752be1e Bug 1259850 - Fix chunking implementation, r=terrence
MozReview-Commit-ID: F58OBZ4tCXw

--HG--
extra : rebase_source : c47879121161e5016d35f8cb925d44247604d81c
extra : source : d00b9c8a7984a8e117eb191280b08b1aed879710
2016-03-25 10:56:32 -07:00
Steve Fink
491767ff1e Bug 1259850 - Hide command output behind --verbose flag, r=terrence
MozReview-Commit-ID: ERQmFqLoyGw

--HG--
extra : rebase_source : 05dbb3fa398122e2b224bc137ce644de78b70294
extra : source : 266befcb8acd57bc12a5949d6c873521d7ea6167
2016-03-25 11:07:04 -07:00
Steve Fink
0392f5cdb2 Bug 1259850 - Refactor findVirtualFunctions and improve comments, r=terrence
No more passing a 2nd return value back through a mutable 1-element array.

MozReview-Commit-ID: IUcyrq93KXT

--HG--
extra : rebase_source : 2f822b79ae81af55c0bdd372a8cf8e087bba2b7a
extra : source : c6615c7b00838e1d212c6007b4a54b20d71f7ae0
2016-03-25 15:25:56 -07:00
Steve Fink
1cde976b7c Bug 1259850 - Start searching from the most specialized csu, r=terrence
Previously, this mostly "worked" purely by chance -- it started gathering method definitions at the 'csu' variable, which JS helpfully hoisted up to the toplevel. It had the last value assigned to csu within the loop, which would have been the basest base class (don't think too hard about the case of multiple inheritance, it was wrong). Then we find all descendants, which was *too* much, but it ended up just making the analysis conservative.

MozReview-Commit-ID: 2Ps8gJpztw2

--HG--
extra : rebase_source : c12e58594e7d21dc035b2e669c53808629d5beae
extra : source : 196ac1f813f9a9489d24ba0c70c1dfb20b404489
2016-03-25 15:25:46 -07:00
Steve Fink
64a388b576 Bug 1259850 - Refactoring: more Set/Map usage, r=terrence
MozReview-Commit-ID: 2Ps8gJpztw2

--HG--
extra : rebase_source : 8cdfda64ecae7d68df700a8275744af4c06bcf94
extra : source : b6108a65dc38d298be19b74a30dc683bec69a3b3
2016-03-25 15:24:57 -07:00
Steve Fink
024c4b0d1a Bug 1259850 - Convert memoizer to Map, r=terrence
MozReview-Commit-ID: 2Ps8gJpztw2

--HG--
extra : rebase_source : 1ac0eeb48f468d05cb71eb88c9b75f1b31b7d5f2
extra : source : 0d58f8529b86a129f178788bd056d2a60cc73319
2016-03-25 15:18:57 -07:00
Steve Fink
6907840a2b Bug 1259850 - The explanations of why something is a hazard went up to just before the initial use of a variable. Extend them one further, r=terrence
MozReview-Commit-ID: 9l8ftRv3yjS

--HG--
extra : rebase_source : 98f0261e331518d92a8174513afad5be327a4407
extra : source : a8d2730ada95c70059ed6314f5eb3f7b28501f70
2016-03-25 15:12:31 -07:00
Steve Fink
13d4ab4e85 Bug 1259850 - Rename function, add a few comments, r=terrence
MozReview-Commit-ID: Fyk1zzbWGnh

--HG--
extra : rebase_source : 61c6900bac4bea0e2c645334d3984614f2ba4a2e
extra : source : e8544b072ee6b0055984ad7307216d61d4d3a26f
2015-09-29 13:39:38 -07:00
Steve Fink
bc7d8b91bd Bug 1259850 - Switch to using a Map for visited points within a function, and heavily comment, r=terrence
MozReview-Commit-ID: LvU4upaHt8b

--HG--
extra : rebase_source : 2f6d0a05594047dd505e1c63e0b52a94e1d3f5da
extra : source : 15de0d1d0b05457c18dcf70e4e81d9bfe5ad5f79
2015-09-29 13:39:38 -07:00
Boris Zbarsky
89b93668b8 Bug 1276112. Stop using GetScriptContextFromJSContext in CycleCollectedJSRuntime::UsefulToMergeZones. r=mccr8 2016-05-27 13:28:26 -04:00
Wes Kocher
74c78019e7 Backed out 22 changesets (bug 1259850) for GC crashes in various tests CLOSED TREE
Backed out changeset ef5cdcca45d9 (bug 1259850)
Backed out changeset c95bdd426ced (bug 1259850)
Backed out changeset a73f74f718e7 (bug 1259850)
Backed out changeset 95107c3ad9cf (bug 1259850)
Backed out changeset 788ac18818c9 (bug 1259850)
Backed out changeset 19c13aa9b5ad (bug 1259850)
Backed out changeset 0b9dedcf7163 (bug 1259850)
Backed out changeset b641d01138ab (bug 1259850)
Backed out changeset aa434447a11b (bug 1259850)
Backed out changeset 4c7373c6c29e (bug 1259850)
Backed out changeset 457cb29cad55 (bug 1259850)
Backed out changeset 5762a8fba027 (bug 1259850)
Backed out changeset 129559d4ac62 (bug 1259850)
Backed out changeset d00b9c8a7984 (bug 1259850)
Backed out changeset 266befcb8acd (bug 1259850)
Backed out changeset c6615c7b0083 (bug 1259850)
Backed out changeset 196ac1f813f9 (bug 1259850)
Backed out changeset b6108a65dc38 (bug 1259850)
Backed out changeset 0d58f8529b86 (bug 1259850)
Backed out changeset a8d2730ada95 (bug 1259850)
Backed out changeset e8544b072ee6 (bug 1259850)
Backed out changeset 15de0d1d0b05 (bug 1259850)
2016-05-31 11:15:41 -07:00
Steve Fink
ebb9f7599c Bug 1259850 warning fix on a CLOSED TREE
MozReview-Commit-ID: 8OsRyn3HD3j
2016-05-31 10:19:32 -07:00
Steve Fink
96d0fa6dcf Bug 1259850 - Make ZoneCellIter variants to communicate nogc to the hazard analysis, r=jonco
Also create accessors on gc::Zone for a nicer API to ZoneCellIters.

MozReview-Commit-ID: AxRTTUfWrND

--HG--
extra : rebase_source : cf32560db5a123bdc64178a7567ed36e1ecb5b2b
2016-05-27 22:00:10 -07:00
Steve Fink
69331f349a Bug 1259850 - Annotate mFree function pointer as not GCing, r=terrence
MozReview-Commit-ID: LrzzLYHsBnO

--HG--
extra : rebase_source : 4843a0d61884022398457ba788bb4f03d5bc8846
2016-05-27 16:48:31 -07:00
Steve Fink
4ec00ba75f Bug 1259850 - Comments
MozReview-Commit-ID: 9RjVxl4EX8N

--HG--
extra : rebase_source : 66b76123d3ef36ece9c911eb7815c70f15ed5ad6
2016-05-24 18:26:21 -07:00
Steve Fink
f651a379e8 Bug 1259850 - Test for sixgill exception handling + analysis constructor/destructor matching, r=terrence
MozReview-Commit-ID: H5NZlyS2rx5

--HG--
rename : js/src/devtools/rootAnalysis/t/suppression/source.cpp => js/src/devtools/rootAnalysis/t/exceptions/source.cpp
rename : js/src/devtools/rootAnalysis/t/suppression/test.py => js/src/devtools/rootAnalysis/t/exceptions/test.py
extra : rebase_source : c4f173bd51bf2a19b1805da5f71370c455ad12ca
2016-04-28 15:05:09 -07:00
Steve Fink
169685f973 Bug 1259850 - Remove unused test files, r=terrence
MozReview-Commit-ID: sBZct85zDJ

--HG--
extra : rebase_source : f03a5ac2ff9072c7c1e6610d1ec2bd84e81bdb54
2016-04-28 11:27:50 -07:00
Steve Fink
0c242cd715 Bug 1259850 - Fix constructor recognition, r=terrence
MozReview-Commit-ID: 46064amRbCQ

--HG--
extra : rebase_source : 18bd3043d699a55041388e54236620cdd5299202
2016-04-28 14:19:01 -07:00
Steve Fink
8e2cd9d734 Bug 1259850 - Update sixgill to ignore exception cleanup and properly qualify some type names
MozReview-Commit-ID: 7WSYmLAVb7M

--HG--
extra : rebase_source : adb56e3297546f013f669582aa452a5e16e758dd
2016-05-04 18:36:23 -07:00
Steve Fink
cfed81ff96 Bug 1259850 - Rewrite the test suite, add several tests, r=terrence
MozReview-Commit-ID: HtJ0uA3IfXZ

--HG--
rename : js/src/devtools/rootAnalysis/run-test.py => js/src/devtools/rootAnalysis/t/sixgill.py
extra : rebase_source : ae42485def39c26798bee72a2544034d1a557d3c
2016-03-25 14:40:23 -07:00
Steve Fink
44e27262d8 Bug 1259850 - Provide GC stacks for synthesized functions, r=terrence
MozReview-Commit-ID: 6WYqoXN3k9J

--HG--
extra : rebase_source : 31bdc58f9aff90bc7aecb076885e56f37885a320
2016-03-25 11:45:05 -07:00
Steve Fink
3cb5c6a3e8 Bug 1259850 - Handle D4 destructors, r=terrence
MozReview-Commit-ID: 1hArAcAxvZV

--HG--
extra : rebase_source : d9d65df85ac312bab022847843d4b75b25ecd55e
2016-03-25 11:44:21 -07:00
Steve Fink
c6f370b8e1 Bug 1259850 - Various refactorings, r=terrence
MozReview-Commit-ID: GYrqbzK3U8W

--HG--
extra : rebase_source : dfe6bfb523799becf7ab34c9dbbc365c46035bfc
2016-03-25 11:41:54 -07:00
Steve Fink
7ef77cb0e1 Bug 1259850 - In-source annotations for GC suppression, r=terrence
MozReview-Commit-ID: HaSt3RVV6CM

--HG--
extra : rebase_source : 9208edf58765abab960fa7188070704ee5bcbf56
2016-05-19 12:53:29 -07:00
Steve Fink
7e06b7d972 Bug 1259850 - Fix chunking implementation, r=terrence
MozReview-Commit-ID: F58OBZ4tCXw

--HG--
extra : rebase_source : 0e94d189b21cf6071d9d4c0b81d22fffb5a41db2
2016-03-25 10:56:32 -07:00
Steve Fink
044fdd2204 Bug 1259850 - Hide command output behind --verbose flag, r=terrence
MozReview-Commit-ID: ERQmFqLoyGw

--HG--
extra : rebase_source : 8e724d7eb6bc683c6600d330febbb035fe298d98
2016-03-25 11:07:04 -07:00
Steve Fink
8100e1379d Bug 1259850 - Refactor findVirtualFunctions and improve comments, r=terrence
No more passing a 2nd return value back through a mutable 1-element array.

MozReview-Commit-ID: IUcyrq93KXT

--HG--
extra : rebase_source : 8485a1816bd888aada033e10dff062ec32d4d4f1
2016-03-25 15:25:56 -07:00
Steve Fink
8afd1f9d6b Bug 1259850 - Start searching from the most specialized csu, r=terrence
Previously, this mostly "worked" purely by chance -- it started gathering method definitions at the 'csu' variable, which JS helpfully hoisted up to the toplevel. It had the last value assigned to csu within the loop, which would have been the basest base class (don't think too hard about the case of multiple inheritance, it was wrong). Then we find all descendants, which was *too* much, but it ended up just making the analysis conservative.

MozReview-Commit-ID: 2Ps8gJpztw2

--HG--
extra : rebase_source : b52ccf514e70fd00e5e73cdef59df379efb32487
2016-03-25 15:25:46 -07:00
Steve Fink
77be2fa2f9 Bug 1259850 - Refactoring: more Set/Map usage, r=terrence
MozReview-Commit-ID: 2Ps8gJpztw2

--HG--
extra : rebase_source : 358eb3bc7ef626177b744301659795c0f1d73d8b
2016-03-25 15:24:57 -07:00
Steve Fink
1b4f2c009a Bug 1259850 - Convert memoizer to Map, r=terrence
MozReview-Commit-ID: 2Ps8gJpztw2

--HG--
extra : rebase_source : 17832fcd628859f8fd62f6b254878633435cdfe9
2016-03-25 15:18:57 -07:00
Steve Fink
43e12cc6bc Bug 1259850 - The explanations of why something is a hazard went up to just before the initial use of a variable. Extend them one further, r=terrence
MozReview-Commit-ID: 9l8ftRv3yjS

--HG--
extra : rebase_source : a8cd8faeb91a66d2818c7212c435847996832796
2016-03-25 15:12:31 -07:00
Steve Fink
7d7a213b56 Bug 1259850 - Rename function, add a few comments, r=terrence
MozReview-Commit-ID: Fyk1zzbWGnh

--HG--
extra : rebase_source : ff201f130de9b05ac0d79ed08502e7a95b803961
2015-09-29 13:39:38 -07:00
Steve Fink
7b3b073eec Bug 1259850 - Switch to using a Map for visited points within a function, and heavily comment, r=terrence
MozReview-Commit-ID: LvU4upaHt8b

--HG--
extra : rebase_source : 552e4141e8d2cbba4846d98a055fea201077b735
2015-09-29 13:39:38 -07:00
Jakob Olesen
6a4e9a4585 Bug 1136226 - Enable inlining of 8x16 and 16x8 types. r=sunfish 2016-05-31 09:00:20 -07:00
Jakob Stoklund Olesen
61cdb6908f Bug 1136226 - Inline small int SIMD.js constructor calls. r=sunfish
Use the same strategy as we do for asm.js: Start from an initial vector and
insert one lane at a time.
2016-05-31 09:00:20 -07:00
Jakob Stoklund Olesen
8c8b287e98 Bug 1136226 - Make MIR New factories private where AddLegalized should be used. r=sunfish
Some MIR instructions have an AddLegalized() static function which much be used
when creating new instructions. This ensures that the proper expansions are
generated.

Make the New() factory method in those instructions private so it isn't used
inadvertently.

De-templatize the inlineSimdBinary<> function since it was only used for two
MIR instructions which are now created differently.
2016-05-31 09:00:20 -07:00
Jakob Stoklund Olesen
693ad15d32 Bug 1136226 - Asm.js: Test cases for small integer SIMD types. r=bbouvier
Tests for all of the new operations added by the previous commits.
2016-05-31 09:00:20 -07:00
Jakob Stoklund Olesen
dfd06d7505 Bug 1136226 - Asm.js: Enable small integer types. r=bbouvier 2016-05-31 09:00:20 -07:00
Jakob Stoklund Olesen
2810a22e4a Bug 1136226 - Test loads, stores, and bitcasts. r=sunfish
Add a new asm.js test later which exercises all the possible bitcast operations
as well as all possible load and store operations, except the partial ones.
This commit prepares for that test case.

Add new Scalar::I8x16, I16x8 enumerators.

Remove the fromUintXXX opcodes from the *_ASMJS macros. This avoids gerating
unwanted wasm opcodes. Include the relevant unsigned bit-casts explicitly where
needed.
2016-05-31 09:00:20 -07:00
Jakob Stoklund Olesen
e0fb4b123e Bug 1136226 - Inline saturating arithmetic operations. r=sunfish
Add support for inlining addSaturate and subSaturate SIMD operations when
compiling SIMD.js.
2016-05-31 09:00:20 -07:00
Jakob Stoklund Olesen
a917df3a54 Bug 1136226 - Implement compares for 8x16 and 16x8 SIMD types. r=sunfish
Since SSE doesn't have unsigned comparisons, add a bias vector and use the
signed comparisons instead, just like we do for the 32x4 unsigned vectors.

Use 'defineReuseInput' even when SIMD input and output types differ. This is
fine now since the register allocator uses a single Simd128 class for all SIMD
registers.
2016-05-31 09:00:19 -07:00
Jakob Stoklund Olesen
b2053f3529 Bug 1136226 - Add general shuffle support for 8x16 and 16x8 shuffles. r=bbouvier
This instruction is used when the shuffle indexes are not compile time
constants.

Give the register allocator permission to spill the index arguments to
GeneralShuffle instructions. There can be up to 16 of them, and they can't all
be registers.

Move visitSimdGeneralShuffle into the x86-specific lowering code since it has
special register allocation requirements for 8-bit lanes.
2016-05-31 09:00:19 -07:00
Jakob Stoklund Olesen
aa35551e53 Bug 1136226 - Implement shuffle for 8x16 and 16x8 SIMD types. r=sunfish
When SSSE3 is available, two pshufb instructions can be combined to form any
shuffle.

Old machines without SSSE3 bounce the two vectors through the stack.
2016-05-31 09:00:19 -07:00
Jakob Stoklund Olesen
0a4e75eeb5 Bug 1136226 - Implement swizzle for 8x16 and 16x8 SIMD types. r=sunfish
When we have SSSE3 available, the pshufb instruction can perform any byte-wise
swizzle.

Without SSSE3, fall back to using byte-wise loads and stores to simulate the
swizzle. This applies to CPUs from before 2006.
2016-05-31 09:00:19 -07:00