Граф коммитов

65154 Коммитов

Автор SHA1 Сообщение Дата
Brindusan Cristian b7990441d5 Backed out changeset 30c5d06e47f0 (bug 1465895) for spidermonkey bustages. CLOSED TREE 2018-06-01 10:08:51 +03:00
Steve Fink 0a1094e53b Bug 1465895 - Default to mach-installed clang directory for sanitizer tools, r=nbp
--HG--
extra : rebase_source : 69aec6347eeccdd89a42c239e85d2c4a27b7ee27
2018-05-31 11:08:01 -07:00
Paul Bone a05872f75b Bug 1464986 (Part 2) - Add some debug logging to the GC r=jonco
--HG--
extra : rebase_source : fe65d58434aaae63ae2b1d42520a8b1a57247073
extra : histedit_source : b0ad0e6ed49eaca269066599df859d831e7f5dfa
2018-05-30 22:50:46 +10:00
Paul Bone 8355917e56 Bug 1464986 (Part 1) - Rename Statistics::fp r=jonco
--HG--
extra : rebase_source : 4fafe076359db119a74887e2d8b09f81da36142a
2018-05-29 16:37:48 +10:00
Paul Bone 9b364c2724 Bug 1465062 - Rename AutoGCSlice to AutoDisableBarriers r=jonco
--HG--
extra : rebase_source : 00762ae0f66bb3486270ed57ca9644d4c81957ba
2018-05-31 00:07:03 +10:00
Julian Seward 2ba720102c Bug 1465011 - Improve WebAssembly BulkMem.{Copy,Fill} validation tests. r=lth.
Bug 1464477 exposes the fact that the current test cases in
js/src/jit-test/tests/wasm/memory-bulk.js fail to verify that the following
are rejected by validation:

* use of BulkMem.{Copy,Fill} in a module that doesn't have a memory
* use of BulkMem.{Copy,Fill} with the wrong number of arguments
* use of BulkMem.{Copy,Fill} with wrong typed arguments

This patch adds those missing tests.  It also takes the opportunity to
rename |new WebAssembly.Instance(new WebAssembly.Module(wasmTextToBinary(|
to |wasmEvalText| in this file for more conciseness and better error checking.

--HG--
extra : rebase_source : e960ab86b95eef4b6304c1d7747963eb6b154734
2018-05-31 17:34:33 +02:00
Nicolas B. Pierron 24df128873 Bug 1464829 - Ensure the recover instruction vector has the expected size. r=jandem
--HG--
extra : amend_source : ea2625d7cbf7aef4bad3257f81093b208954434e
2018-05-31 14:22:14 +02:00
Margareta Eliza Balazs c6ae447c6a Backed out changeset d09813f5a6a5 (bug 1464829) for bustage in /builds/worker/workspace/build/src/js/src/jit/JitFrames.cpp on a CLOSED TREE 2018-05-31 15:22:04 +03:00
Nicolas B. Pierron 301a80ca2a Bug 1464829 - Ensure the recover instruction vector has the expected size. r=jandem
--HG--
extra : rebase_source : 2abd8976d4b6a3c8bc0c982c592891c6340507d2
2018-05-31 14:05:01 +02:00
Jan de Mooij f3fe2d13d4 Bug 1465472 - Remove the atoms realm/compartment. r=jonco
Some of the less trivial changes:

* When we allocated a symbol, we used the atom realm's RNG to create a hash code [0]. Instead of this I added a RNG for this to the runtime.

* IsCompilingWasm returned true if the JitContext's realm is nullptr, but that's now also true when we initialize the trampolines stored in the atoms zone. To fix that I added a CompileZone* to JitContext, in addition to the CompileRuntime and CompileRealm, and we now check the zone instead of the realm in IsCompilingWasm.

* JSContext::hasEnteredRealm is only called in DEBUG builds so I made hasEnteredRealm and enterRealmDepth_ #ifdef DEBUG.
2018-05-31 12:53:26 +02:00
Jan de Mooij 3721ae615a Bug 1464374 part 9 - Turn JS_SetCompartmentPrincipals into JS::SetRealmPrincipals. r=bz 2018-05-31 11:28:50 +02:00
Jan de Mooij 37e765587c Bug 1464374 part 7 - Use GetRealmPrincipals in GetCompartmentName. r=luke
This will become GetRealmName at some point.
2018-05-31 11:28:49 +02:00
Jan de Mooij 1edb6a4c17 Bug 1464374 part 6 - Use GetRealmPrincipals in Scriptability constructor. r=bz 2018-05-31 11:28:49 +02:00
Jan de Mooij ce3eb7d5c0 Bug 1464374 part 2 - Pass JS::Realm* instead of JSCompartment* to CallSetup. r=bz,luke
The principals are on the realm so we need a realm instead of a compartment. Also adds js::GetNonCCWObjectRealm to get the realm of a non-CCW object.
2018-05-31 11:28:48 +02:00
Jan de Mooij 09c4068fa0 Bug 1464134 part 1 - Fix various places to use Realm instead of JSCompartment. r=luke 2018-05-31 11:28:48 +02:00
Jon Coppeard a20465acbc Bug 1464872 - Add forward zone edge for debugger object when calculating sweep groups r=sfink 2018-05-31 09:27:29 +01:00
Tooru Fujisawa 9fe0ec4d4c Bug 1459845 - followup: Properly enclose debug-only variable. r=bustage CLOSED TREE 2018-05-31 15:37:12 +09:00
Tooru Fujisawa f7b825beb5 Bug 1460126 - Part 4: Add MOZ_MUST_USE to TryEmitter methods. r=jwalden 2018-05-31 15:15:51 +09:00
Tooru Fujisawa 1c966f2c11 Bug 1460126 - Part 3: Make TryEmitter::State debug only. r=jwalden 2018-05-31 15:15:51 +09:00
Tooru Fujisawa dabf454e17 Bug 1460126 - Part 2: Merge TryEmitter::{ShouldUseRetVal,ShouldUseControl} into TryEmitter::ControlKind. r=jwalden 2018-05-31 15:15:50 +09:00
Tooru Fujisawa 855b95adc1 Bug 1460126 - Part 1: Make TryEmitter::Kind and TryEmitter::State enum classes. r=jwalden 2018-05-31 15:15:50 +09:00
Tooru Fujisawa 312bbfc472 Bug 1459845 - Part 6: Make IfThenElseEmitter::State debug only. r=Yoric 2018-05-31 15:15:50 +09:00
Tooru Fujisawa e62b8319d5 Bug 1459845 - Part 5: Rename IfThenElseEmitter::{emitIf,emitIfElse} to IfThenElseEmitter::{emitThen,emitThenElse}. r=Yoric 2018-05-31 15:15:50 +09:00
Tooru Fujisawa 0617559950 Bug 1459845 - Part 4: Add IfThenElseEmitter::emitElseIf to clarify cascading else-if blocks. r=Yoric 2018-05-31 15:15:49 +09:00
Tooru Fujisawa 66fe72b011 Bug 1459845 - Part 3: Add MOZ_MUST_USE to IfThenElseEmitter methods. r=Yoric 2018-05-31 15:15:49 +09:00
Tooru Fujisawa deffa12c12 Bug 1459845 - Part 2: Make IfThenElseEmitter::State an enum class. r=Yoric 2018-05-31 15:15:49 +09:00
Tooru Fujisawa 766c2a0669 Bug 1459845 - Part 1: Fix the comment for IfThenElseEmitter with cascading if-else. r=Yoric 2018-05-31 15:15:48 +09:00
Jan de Mooij 6302682c36 Bug 1465037 - Fix FrameIter principals check to work with same-compartment realms. r=luke
The principals are now on the realm and an activation will contain cross-realm calls, so the principals need to be checked for each frame instead of each activation.
2018-05-31 07:19:08 +02:00
Jan de Mooij c5f8610e4f Bug 1465002 - Make GetScriptedCallerGlobal work with same-compartment realms. r=luke 2018-05-31 07:18:52 +02:00
Steve Fink b254a63736 Bug 1465173 - Set the pid correctly in the automation output, r=nbp
--HG--
extra : topic : GCForReason
extra : rebase_source : 31ff929d6df67715fea4e76843f7a5ecbd7294ed
extra : histedit_source : 43cecd8dbcedbe6a26b92703b7734d4d3f8b1c0b
2018-05-24 21:45:57 -07:00
Steve Fink 0680fed494 Bug 1464266 - Rename GCForReason to NonIncrementalGC, r=jonco
--HG--
extra : topic : GCForReason
extra : rebase_source : e81bf7bb8ca0824f8b63f25a46ccbe26c4002325
2018-05-24 16:19:18 -07:00
arthur.iakab f1046ac67f Merge mozilla-central to inbound 2018-05-31 01:08:35 +03:00
arthur.iakab fb18cb09bd Merge mozilla inbound to central a=merge 2018-05-31 01:05:10 +03:00
Tom Schuster 764a126da1 Bug 1465396 - Skip Array.prototype.flat tests when disabled. r=anba
--HG--
extra : rebase_source : 4692ec539cee3323e2daeb4b2b1fa74fd89cfd2e
extra : histedit_source : 84271b61eb458b40fe93f81de22c1df21982e1ee
2018-05-30 17:19:18 +02:00
Jan de Mooij 45e968b1dd Bug 1464134 part 8 - Make IterateHeapUnbarriered and related code use realms instead of compartments. r=jonco 2018-05-30 20:14:19 +02:00
Jan de Mooij 732a7c63d6 Bug 1464134 part 7 - Replace GetAnyCompartmentInZone with GetAnyRealmInZone. r=luke 2018-05-30 20:14:19 +02:00
Jan de Mooij 7ff3b9af6c Bug 1464134 part 6 - Replace AbstractFramePtr::compartment with AbstractFramePtr::realm. r=anba 2018-05-30 20:14:18 +02:00
Jan de Mooij 2eebe87aa6 Bug 1464134 part 5 - Combine CompartmentsIterT and RealmsIterT in a single template class. r=jonco 2018-05-30 20:14:18 +02:00
Christian Holler 570031d38c Bug 1464202 - Improve and centralize libFuzzer flag management. r=froydnj
MozReview-Commit-ID: HFrQDAZWtpo

--HG--
extra : rebase_source : ab1da001d7e9280fbfb37858505f1d0d0caf7d54
2018-05-24 21:11:46 +02:00
Boris Zbarsky 89366855ba Bug 1455676 part 1. Make it possible to importGlobalProperties Node. r=qdot 2018-05-29 22:58:47 -04:00
Boris Zbarsky 69db48b9c0 Bug 1047514. Re-enable the test_getWebIDLCaller test on Android. r=kmag 2018-05-29 13:38:53 -04:00
Philip Chimento fb2e0702aa Bug 1464912 - Add exposeToActiveJS specialization for JSString. r=sfink 2018-05-28 14:47:33 -07:00
Jeff Walden 2fc83a4f68 Bug 1464472. r=jandem
--HG--
extra : rebase_source : edabc2a07d4f08ac4fbc8c8d05f760f798e513ef
2018-05-26 03:07:36 -07:00
Jeff Walden b9a5416431 Bug 1435828 - Reimport test262 tests with the json-superset tests not disabled. r=anba
--HG--
extra : rebase_source : 24fa1b9ef25f345af92ea4257a8dc11f7ec50e75
2018-05-25 15:41:05 -07:00
Jeff Walden 98d8463900 Bug 1435828 - Allow U+2028 LINE SEPARATOR and U+2029 PARAGRAPH SEPARATOR, encoding those literal code points, inside string literals. r=anba
--HG--
extra : rebase_source : 24a6c22856d98948d7644e5fcdf727a0cb279166
2018-05-25 15:40:30 -07:00
Tom Schuster 30cc5c7f25 Bug 1465039 - Rename Array.prototype.flatten to Array.prototype.flat. r=anba
--HG--
extra : rebase_source : aa2aa39508dd22d7e380e1996d559bf03d7478eb
2018-05-29 13:23:06 +02:00
Tom Schuster 7ae1095aec Bug 1465039 - Update test262. r=anba
--HG--
rename : js/src/tests/test262/built-ins/Array/prototype/flatten/array-like-objects.js => js/src/tests/test262/built-ins/Array/prototype/flat/array-like-objects.js
rename : js/src/tests/test262/built-ins/Array/prototype/flatten/bound-function-call.js => js/src/tests/test262/built-ins/Array/prototype/flat/bound-function-call.js
rename : js/src/tests/test262/built-ins/Array/prototype/flatten/browser.js => js/src/tests/test262/built-ins/Array/prototype/flat/browser.js
rename : js/src/tests/test262/built-ins/Array/prototype/flatten/empty-array-elements.js => js/src/tests/test262/built-ins/Array/prototype/flat/empty-array-elements.js
rename : js/src/tests/test262/built-ins/Array/prototype/flatten/empty-object-elements.js => js/src/tests/test262/built-ins/Array/prototype/flat/empty-object-elements.js
rename : js/src/tests/test262/built-ins/Array/prototype/flatten/length.js => js/src/tests/test262/built-ins/Array/prototype/flat/length.js
rename : js/src/tests/test262/built-ins/Array/prototype/flatten/name.js => js/src/tests/test262/built-ins/Array/prototype/flat/name.js
rename : js/src/tests/test262/built-ins/Array/prototype/flatten/non-numeric-depth-should-not-throw.js => js/src/tests/test262/built-ins/Array/prototype/flat/non-numeric-depth-should-not-throw.js
rename : js/src/tests/test262/built-ins/Array/prototype/flatten/non-object-ctor-throws.js => js/src/tests/test262/built-ins/Array/prototype/flat/non-object-ctor-throws.js
rename : js/src/tests/test262/built-ins/Array/prototype/flatten/null-undefined-elements.js => js/src/tests/test262/built-ins/Array/prototype/flat/null-undefined-elements.js
rename : js/src/tests/test262/built-ins/Array/prototype/flatten/null-undefined-input-throws.js => js/src/tests/test262/built-ins/Array/prototype/flat/null-undefined-input-throws.js
rename : js/src/tests/test262/built-ins/Array/prototype/flatten/positive-infinity.js => js/src/tests/test262/built-ins/Array/prototype/flat/positive-infinity.js
rename : js/src/tests/test262/built-ins/Array/prototype/flatten/prop-desc.js => js/src/tests/test262/built-ins/Array/prototype/flat/prop-desc.js
rename : js/src/tests/test262/built-ins/Array/prototype/flatten/shell.js => js/src/tests/test262/built-ins/Array/prototype/flat/shell.js
rename : js/src/tests/test262/built-ins/Array/prototype/flatten/symbol-object-create-null-depth-throws.js => js/src/tests/test262/built-ins/Array/prototype/flat/symbol-object-create-null-depth-throws.js
extra : rebase_source : 26a1d0aab8066b287b5d4041f7fc5b4679aa93f1
2018-05-29 13:22:30 +02:00
André Bargull f983b7cb92 Bug 1464494 - Part 2: Remove 'using namespace' from header files in js/src/frontend. r=anba
--HG--
extra : histedit_source : 7c4c8a9716d1cf7f80a755faac6a2a5fb6479694
2018-05-28 21:10:53 -07:00
André Bargull 2a25da49e5 Bug 1464494 - Part 1: Remove unused functions from js/src/frontend. r=Waldo
--HG--
extra : histedit_source : a916c2c76262cc30257d21ec0d7fe7e24027732c
2018-05-25 11:37:49 -07:00
Jon Coppeard a253acb336 Bug 1464387 - Don't instantiate so many trace functions r=sfink 2018-05-29 11:08:09 +01:00