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

65128 Коммитов

Автор SHA1 Сообщение Дата
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
Jon Coppeard b645683986 Bug 1203273 - Add more diagnostics for gray buffer marking crashes on OSX r=sfink a=abillings 2018-05-29 10:28:08 +01:00
Robin Templeton f9ae42cb1e Bug 1464757 - Fix JSON stringification of proxied BigInt objects. r=anba
PreprocessValue was calling BigIntObject::unbox directly, which doesn't
check for proxy objects. Add a BigInt branch to js::Unbox and use that
function instead.
2018-05-28 17:36:00 +03:00
Cameron Kaiser b4fc07371f Bug 1464751: Don't install wasm signal handlers on platforms without a JIT. r=lth 2018-05-28 13:19:16 -07:00
Tiberius Oros 1e7b672344 Backed out 3 changesets (bug 1435828, bug 1464472) for build bustages and reftest failures on a CLOSED TREE
Backed out changeset ad6e1c06f4d7 (bug 1464472)
Backed out changeset 18381864eb87 (bug 1435828)
Backed out changeset 637c5fc9bcb4 (bug 1435828)
2018-05-29 03:36:12 +03:00
Jeff Walden 45698b75b8 Bug 1464472. r=jandem
--HG--
extra : rebase_source : dd3a60584c2f2f32f9bbd4dfbfcd5fd6022ed29e
2018-05-26 03:07:36 -07:00
Jeff Walden 8f27f65259 Bug 1435828 - Reimport test262 tests with the json-superset tests not disabled. r=anba
--HG--
extra : rebase_source : 744c7deff23d915d283fea245c9bc26c0e3e2678
2018-05-25 15:41:05 -07:00
Jeff Walden f33acba296 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 : 7a609d2dfa28b6604a03dadb9feed9ba07dfc343
2018-05-25 15:40:30 -07:00
Julian Seward 415953e00b Bug 1464656 - Enable WebAssembly.Global by default. r=lth.
WebAssembly.Global is currently nightly- and early-beta-only, gated by
ENABLE_WASM_GLOBAL and EARLY_BETA_OR_EARLIER respectively.  This bug is to
enable it by default.

* js/src/moz.build:
  js/src/shell/moz.build:
  js/src/jsapi-tests/moz.build:
  Don't define ENABLE_WASM_GLOBAL.

* js/src/wasm/WasmJS.cpp:
  js/src/wasm/WasmModule.cpp:
  js/src/wasm/WasmValidate.cpp:
  Un-guard code guarded by
    #if defined(ENABLE_WASM_GLOBAL) && defined(EARLY_BETA_OR_EARLIER)
  and remove code guarded by its negation.  Inside js/src, the two symbols
  are only ever used together, so there's no need to consider them separately.

* js/src/jit-test/tests/wasm/globals.js:
  js/src/jit-test/tests/wasm/spec/harness/index.js:
  Remove code guarded by (typeof WebAssembly.Global === "undefined") and
  un-guard code guarded by (typeof WebAssembly.Global === "function")

* js/src/jit-test/tests/wasm/spec/globals.wast.js:
  js/src/jit-test/tests/wasm/spec/linking.wast.js:
  Make these be the same as spec/proposal_mutable_global/globals.wast.js
  and spec/proposal_mutable_global/linking.wast.js respectively.

* js/src/jit-test/tests/wasm/spec/proposal_mutable_global/globals.wast.js:
  js/src/jit-test/tests/wasm/spec/proposal_mutable_global/linking.wast.js:
  js/src/jit-test/tests/wasm/spec/proposal_mutable_global/directives.txt:
  js/src/jit-test/tests/wasm/spec/proposal_mutable_global (directory):
  Deleted.

--HG--
extra : rebase_source : 72e56b59a5162a2e131596c41ec33f527845ae6d
2018-05-28 14:51:04 +02:00
Dragan Mladjenovic c2ed3aa9cb Bug 1464366 : [MIPS] Provide implementation for CodeGenerator::visitTrunc{F}; r=jandem
--HG--
extra : rebase_source : 11facc1f91e4a3155be8067e2293ff6001ee41b7
2018-05-25 12:31:12 +02:00
Julian Seward fef50df448 Bug 1461304 - Windows bustage eg: /js/src/wasm/WasmBinaryToAST.cpp when Gecko 62 merges to Beta on 2018-06-14. r=froydnj.
Some configurations of SpiderMonkey wind up producing C++ switch statements of
the form

   switch (..) {
     default: break;
   }

We hoped that they would simply be optimised out without comment.  But MSVC
warns about the lack of non-default cases, which then are escalated into
errors, causing the build to fail.  This commit simply disables that warning
feature when building with MSVC.

--HG--
extra : rebase_source : 468022d30cdaf483aaa64fc7aa9dd1308fbc7335
2018-05-27 09:39:06 +02:00
Jan de Mooij 1879873837 Bug 1464134 part 1 - Fix various places to use Realm instead of JSCompartment. r=luke 2018-05-27 11:53:11 +02:00
maharsh312 f431bdeaf2 Bug 1464321 - Changed return type of two methods in JSScript with relative format string change. r=arai 2018-05-27 04:00:06 +05:30
Julian Seward 886ec674df Bug 1452588 - Import WebAssembly reference tests for import/export of mutable globals. r=bbouvier.
This bug is for importation of spec tests for the WA mutable-global
extension, as proposed at https://github.com/WebAssembly/mutable-global.

In particular it imports the following tests in that repo:

  test/core/globals.wast (wrapped in JS)
  test/core/linking.wast (ditto)
  test/js-api/jsapi.js

The resulting files linking.js and globals.js are placed in a new
subdirectory, js/src/jit-test/tests/wasm/spec/proposal_mutable_global to
make it clear that they pertain to the proposal, and so as not to alter the
existing tests.

There have also been some changes to the test harness code as required to
support the new tests, as follows:

* js/src/jit-test/lib/wasm-testharness.js: the existing logic for locating
  the harness/ subdir appears to assume that all the test scripts live in
  the same directory, which is no longer the case.  It has been reworked
  so as to use a fixed offset relative to |libdir| rather than a fixed
  offset from |scriptdir|.

* js/src/jit-test/lib/wasm-testharness.js: the revised jsapi.js requires a
  new function |assert_not_equals|, but it does not appear possible to
  define it in the same way that |assert_equals| is defined.  A simple
  implementation of |assert_not_equals| has therefore been added.

* src/jit-test/tests/wasm/spec/harness/index.js: a couple more registry
  entries were added, as required by the new globals.js and linking.js.

* js/src/jit-test/tests/wasm/spec/harness/wasm-module-builder.js: added
  a |mutable| parameter to addImportedGlobal().

* js/src/jit-test/tests/wasm/spec/jsapi.js: there are many changes, but
  almost all of them result simply from the resync.

* js/src/jit-test/tests/wasm/spec/proposal_mutable_global/directives.txt
* js/src/jit-test/tests/wasm/spec/proposal_mutable_global/globals.wast.js
* js/src/jit-test/tests/wasm/spec/proposal_mutable_global/linking.wast.js
  New files.

--HG--
extra : rebase_source : 1f049fced054e2a979c1ab364f75aaf805de1255
2018-05-26 20:04:49 +02:00
Jan de Mooij 7148cd7d35 Bug 1464036 - Remove PropertyInfo constructor to keep MSVC from generating static initializers. r=bz
--HG--
extra : rebase_source : c59d1878615029c7c8b075f4ec288daef77414c6
2018-05-26 14:14:10 +02:00
Jan de Mooij 3b3c5fc4c3 Bug 1461324 - Check for closing for-of iterators before closing a for-in one. r=arai
--HG--
extra : rebase_source : 831a63974683b42944306aed3bb80c8ce1afdce7
2018-05-26 14:11:51 +02:00
maharsh312 27a1fa4391 Bug 1463645 - Removed unnecessary upcast and downcast of JSFunction r=arai 2018-05-26 00:21:32 +05:30
Peter Van der Beken 0a2e4b8cb7 Bug 1146316 - Remove nsWrapperCache::SetIsNotDOMBinding and IsDOMBinding(). r=bz.
--HG--
extra : rebase_source : cd36e7afb4f6ebcd042ea40d9403546a683375ad
2018-04-05 17:22:41 +02:00
Peter Van der Beken 6e33f1d567 Bug 1146316 - Preserve the wrapper of sandboxes, so that we never try to call WrapObject on them. r=bz.
--HG--
extra : rebase_source : 00519dbe00d048000b2febdcd69e9232a79b5388
2018-04-11 11:52:13 +02:00
Dorel Luca 047df7a932 Merge mozilla-inbound to mozilla-central. a=merge 2018-05-26 07:09:39 +03:00
André Bargull db0ffdf2b9 Bug 1464368 - Mark a few Atomics tests as "random" to avoid frequent intermittents. r=sfink 2018-05-25 06:04:20 -07:00
Tom Ritter 9d8f5959d1 Bug 1460796 Resolve 'Missing entry point ScriptBreak' by including usp10 for the MinGW build r=froydnj
MozReview-Commit-ID: KirwpvYty5s

--HG--
extra : rebase_source : 9a920e8c4aa621e43c880a41627b034a6c31aec2
2018-05-10 22:04:36 -05:00
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