Commit Graph

65075 Commits

Author SHA1 Message Date
Julian Seward
afeb821105 Bug 1461727 - The name of the type field in the type descriptor for WebAssembly.Global shall be "value". r=lth.
The current name is "type".  Henceforth it shall be known as "value", per CG
decision of 15 May 2018.

--HG--
extra : rebase_source : 3a0dabf9acb1d95abe35dd66da0172cae8014b08
2018-05-25 13:31:46 +02:00
Jon Coppeard
b95fd0ded3 Bug 1463373 - Throw rather than assert if buggy module resolve hook returns a module we didn't expect r=anba 2018-05-25 11:42:32 +01:00
Jon Coppeard
69d03768f2 Bug 1464092 - Speed up some more oomTests that may be taking a long time r=jandem 2018-05-25 10:40:32 +01:00
Jon Coppeard
3d43f7d634 Bug 1401842 - Speed up a debugger OOM test r=jandem 2018-05-25 10:39:54 +01:00
Jon Coppeard
62353317b1 Bug 1463371 - Revert to previous behaviour for setting module resolve hook in the shell r=luke 2018-05-25 10:39:40 +01:00
Jan de Mooij
8c3f199bdd Bug 1461938 part 40 - Use private inheritance. r=evilpie 2018-05-25 11:12:04 +02:00
Jan de Mooij
194d004c4d Bug 1461938 part 39 - Move savedStacks_ to JS::Realm. r=luke 2018-05-25 11:12:04 +02:00
Jan de Mooij
6d2da7b12d Bug 1461938 part 38 - Rename RegExpCompartment to RegExpRealm and move to JS::Realm. r=luke 2018-05-25 11:12:04 +02:00
Jan de Mooij
dd01478374 Bug 1461938 part 37 - Move unboxedLayouts list to ObjectGroupRealm. r=jonco 2018-05-25 11:12:03 +02:00
Jan de Mooij
dda16f7bf7 Bug 1461938 part 36 - Rename ObjectGroupCompartment to ObjectGroupRealm and move to JS::Realm. r=luke 2018-05-25 11:12:03 +02:00
Jan de Mooij
a3f606be22 Bug 1461938 part 35 - Move debugEnvs to JS::Realm. r=luke 2018-05-25 11:12:03 +02:00
Jon Coppeard
d3bd086af9 Bug 1460341 - Replace GCPolicy<T>::initial() with SafelyInitialized<T>() r=Waldo 2018-05-25 10:01:25 +01:00
Julian Seward
ed016afd8f Bug 1464075 - Missing type guard on WebAssembly.Global. r=lth.
As a result of work to import updated WebAssembly mutable-global tests in
bug 1452588, the fact that there is no check to verify that the actual type
of an imported global is what is expected, came to light.  This patch adds
the missing check.  It does not add the actual test that exposed the
problem; that is part of bug 1452588 and so will land when that lands.

--HG--
extra : rebase_source : e5e2d0747f3f27773ace5324497394a6260611c7
2018-05-25 08:13:31 +02:00
Boris Zbarsky
ed3c958547 Bug 1463889 part 1. Switch nsPIDOMWindowOuter::GetFrames to returning an nsDOMWindowList. r=qdot 2018-05-24 23:32:19 -04:00
Steve Fink
f6f838e320 Bug 1463501 - Fix string post barrier when writing string base field, r=jandem
--HG--
extra : topic : nursery.strings
extra : rebase_source : f0508c28a8e227976d8b40538508d341323e29ac
extra : histedit_source : 5025bada58e00297a4ba992ca88d2b84ae02fd63
2018-05-23 17:11:02 -07:00
qiaopengcheng
84a397878f Bug 1464002 - Implementation error of Atomics.compareExchange on mips. r=lth
--HG--
extra : rebase_source : cc5e9c8f507d0e6af6f2933f4591a6c6aa7766bc
2018-05-24 01:12:00 +03:00
Robin Templeton
25c1fdddfc bug 1366287 - Part 6: Implement boolean-to-BigInt conversion. r=jwalden
--HG--
extra : rebase_source : df546a994b60ebf1967ad84bd284824389cb912f
2018-05-11 20:02:05 -07:00
Robin Templeton
085cf5c912 bug 1366287 - Part 5: Implement BigInt.prototype.toLocaleString. r=jwalden
This will have its behavior defined by ECMA-402 in the future; for now,
it returns the same result as the toString method (which is permitted by
the BigInt spec).

--HG--
extra : rebase_source : 0474757caa464c2979e58038825610957e0b15f3
2018-05-11 19:47:17 -07:00
Robin Templeton
6168e9d4ab bug 1366287 - Part 4: Add Rust tests for is_bigint. r=Ms2ger
--HG--
extra : rebase_source : 7ad0ad6aa417276c09be0d59852002baa39a1b91
2018-05-11 19:44:33 -07:00
Robin Templeton
d94dd48d6f bug 1366287 - Part 3: Define the BigIntObject class for BigInt wrapper objects. r=jwalden
--HG--
extra : rebase_source : 13c0fad1858df84252c4a796fcf3c2d2e08009a6
2018-05-11 19:43:45 -07:00
Robin Templeton
82800930df bug 1366287 - Part 2.1: Track GMP memory allocation from XPCOM. r=njn
Based on similar functionality for ICU. Define a GMPReporter class and
use its methods for libgmp allocation.

--HG--
extra : rebase_source : 4b536f8a331146109f1cbecf7246f5d4063ec457
2018-05-11 19:42:49 -07:00
Robin Templeton
f6e5382e6a bug 1366287 - Part 2.0: Use GMP integers to represent BigInt values. r=jwalden
Also link to libgmp and initialize it with custom memory allocation
functions.

--HG--
extra : rebase_source : 3aab0578a0b9e61c4aea5c7b7d1d572316f63b46
2018-05-11 19:42:48 -07:00
Steve Fink
adf2de6748 Bug 1463923 - Bump up the SM(msan) expected error count to 6, because it turns out that the test has been basically disabled for a while now. r=woof!
--HG--
extra : topic : fix
extra : rebase_source : 7c608855a5a765e4ea5746f11d873fdd560a9db0
extra : histedit_source : f457622e2dbc807c2f6a7f514438b2fc1071352f
2018-05-24 16:33:36 -07:00
Steve Fink
f3f0931568 Bug 1463923 - Disabling minidumps for SM(msan) (unsupported configuration), r=tcampbell
--HG--
extra : topic : fix
extra : rebase_source : 483f7f95f32609168203a63292881058b4e75c73
extra : amend_source : 254a584ebfbd22b6249a6872599990b1fcd89ca3
2018-05-24 15:31:16 -07:00
Jeff Walden
e93b527c22 Bug 1463939 - Followup bustage fix. r=bustage in a CLOSED TREE 2018-05-24 15:33:54 -07:00
Robin Templeton
de41c625dd Bug 1366287 - Part 1.0: Define a new BigInt primitive type, with a GDB prettyprinter, Rust binding support, and a new out-of-line TraceKind. (Disabled by default, implemented only incompletely, currently passing --enable-bigint will disable JITs, will be flipped on Eventually once every sub-aspect is in place, Don't Have A Cow, Man.) r=jwalden, r=Ms2ger, r=sfink
--HG--
extra : rebase_source : aa13bd94bc6157ff8134894e3ba2e7a2b53e28d9
2018-05-24 11:26:09 -07:00
Jeff Walden
dd94407236 Bug 1463939 - Make NativeIterator::guard_key private and named consistent with normal SpiderMonkey style. r=jandem
--HG--
extra : rebase_source : c0b86d0fd08d5cd436d1b63349fbb31ca41a1f66
2018-05-23 17:30:53 -07:00
Jeff Walden
a819b51d27 Bug 1463939 - Make NativeIterator::flags private and tack an underscore onto it. r=jandem
--HG--
extra : rebase_source : 1d38ca9860d946317becd5e9b8b8a88d6056b3d8
2018-05-23 17:30:22 -07:00
Jeff Walden
b6255e3f73 Bug 1463939 - Make NativeIterator::propertyCursor_ private, add a nextProperty() accessor for when its value is needed, and add various member functions for things better expressed as verbs than by calling nextProperty() manually. r=jandem
--HG--
extra : rebase_source : 97d002a27b30e444ed57372fe46e4dbb84407d65
2018-05-23 17:29:49 -07:00
Jeff Walden
9e0c961289 Bug 1463939 - Make NativeIterator::obj_ private, give it a clearer name, and add public accessors to observe or modify it. r=jandem
--HG--
extra : rebase_source : d86fd601a5a3c4ff7c7b8f8668a7ccaeaac70e6e
2018-05-23 17:28:15 -07:00
Nathan Froyd
726e50b352 Bug 1463847 - make some ARM64 assembler constructors explicit; r=jandem
This change fixes some static analysis errors on Android.
2018-05-24 10:59:20 -04:00
Nathan Froyd
387a0a4cf7 Bug 1463847 - use SprintfLiteral in the ARM assembler; r=jandem
This change fixes some Android static analysis warnings.
2018-05-24 10:59:20 -04:00
Jan de Mooij
814de94fef Bug 1461938 part 34 - Move IteratorCache from JSCompartment to ObjectRealm. r=jonco 2018-05-24 12:02:54 +02:00
Jan de Mooij
98ab8b6b91 Bug 1461938 part 33 - Introduce ObjectRealm and use it for some fields. r=jonco 2018-05-24 12:02:53 +02:00
Jan de Mooij
6c800ba481 Bug 1461938 part 32 - Rename JitCompartment to JitRealm and move to JS::Realm. r=luke
--HG--
rename : js/src/jit/JitCompartment.h => js/src/jit/JitRealm.h
2018-05-24 12:02:53 +02:00
Jan de Mooij
94b5cf539f Bug 1461938 part 31 - Move detachedTypedObjects flag to JS::Zone. r=jwalden 2018-05-24 12:02:53 +02:00
Jon Coppeard
02d634159d Bug 1463723 - Remove ubi::Census' pointer to the atoms zone r=fitzgen 2018-05-24 09:40:46 +01:00
Jon Coppeard
19daeee9b3 Bug 1463717 - Move all finsished builders to lazy link list to avoid possible quadratic behaviour r=jandem 2018-05-24 09:40:30 +01:00
bobslept
7048fa39ef Bug 1420894 - Optimize a check in float-to-int conversion. r=lth 2018-05-16 16:35:42 +02:00
Jeff Walden
81add2f298 Bug 1462939. r=jandem
--HG--
extra : rebase_source : b7686c55d4604bafc38c6164e0a762d7f1a9d6ac
2018-05-23 10:14:05 -07:00
Matthew Gaudet
3769c55534 Bug 1438556: [Part 3] Assert same compartment in a number of CacheIR helpers r=tcampbell 2018-05-23 14:27:43 -04:00
Matthew Gaudet
42f718290d Bug 1438556: [Part 2] Verify global wrapper not nuked r=tcampbell 2018-05-23 14:27:12 -04:00
Matthew Gaudet
2f7b5c763f Bug 1438556: [Part 1] Use shape guards on the prototype chain for cross-compartment ICs r=tcampbell
This patch unshares some of the property access code between regular and
cross-compartment cases, allowing us to use a series of shape-guards on the
protochain instead of the previous shape-teleporting checks, that would
end up baking in a cross-compartment pointer.

This also attempts to clarify the compartment membership situation while
doing the cross-compartment IC.
2018-05-23 14:26:44 -04:00
Jan de Mooij
d3a2977a32 Bug 1461938 part 30 - Move globalWriteBarriered to JS::Realm. r=jonco 2018-05-23 19:45:43 +02:00
Jan de Mooij
0b680b70ff Bug 1461938 part 29 - Move validAccessPtr to JS::Realm. r=evilpie 2018-05-23 19:45:03 +02:00
Jan de Mooij
f6e2bba281 Bug 1461938 part 28 - Rename LCovCompartment to LCovRealm and move to JS::Realm. r=luke 2018-05-23 19:44:33 +02:00
Jan de Mooij
62970f8ac6 Bug 1461938 part 27 - Use UniquePtr for various compartment pointers. r=jonco 2018-05-23 19:43:36 +02:00
Jan de Mooij
e98e8c8cef Bug 1461938 part 26 - Move performanceMonitoring from JSCompartment to JS::Realm. r=luke 2018-05-23 15:27:36 +02:00
Jan de Mooij
e9f0432b1a Bug 1461938 part 25 - Move randomKeyGenerator_ from JSCompartment to JS::Realm. r=evilpie 2018-05-23 15:27:04 +02:00
Jan de Mooij
1c6e8b72c0 Bug 1461938 part 24 - Move randomNumberGenerator from JSCompartment to JS::Realm. r=evilpie 2018-05-23 15:26:33 +02:00