Commit Graph

65108 Commits

Author SHA1 Message Date
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
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