Commit Graph

65290 Commits

Author SHA1 Message Date
Steve Fink
5ed1fd1a2f Bug 1466633 - GCManagedDeletePolicy: do not clear edges during GC, r=jonco
--HG--
extra : source : 17bb0a45975b93c4003e4436706e3caf7c44d9fd
extra : histedit_source : d267abd514731d4664de12e6b4c2bd6666732dd9
2018-06-05 17:41:12 -07:00
shindli
0596b8022c Backed out changeset 4ede0210acdb (bug 1467249) for linting failures in /builds/worker/checkouts/gecko/js/src/devtools/automation/autospider.py on a CLOSED TREE 2018-06-09 03:52:29 +03:00
shindli
3392deb647 Backed out 3 changesets (bug 1466633, bug 1467248, bug 1466387) for spidermonkey bustages in non262/regress/regress-1466387-worker-grayroot.js on a CLOSED TREE
Backed out changeset 1e833c6a3ba2 (bug 1467248)
Backed out changeset 17bb0a45975b (bug 1466633)
Backed out changeset bdf9bd1db757 (bug 1466387)
2018-06-09 03:51:02 +03:00
Steve Fink
aabbbbcfa1 Bug 1467249 - Upload JS shell test failure output, r=nbp
--HG--
extra : topic : nursery.strings
extra : rebase_source : 8054e1f1fe488c6aac08cf94eba79b69cf254f5b
2018-06-05 21:08:54 -07:00
Steve Fink
bc2be79d2a Bug 1405374 - Register JS threads with the profiler, r=jonco
--HG--
extra : rebase_source : c29dffb341bff5e3f020ad0be6d48c045e178a5c
2018-06-07 15:37:08 -07:00
Steve Fink
8cc9bc5b4a Bug 1466633 - GCManagedDeletePolicy: do not clear edges during GC, r=jonco
--HG--
extra : topic : nursery.strings
extra : rebase_source : 5da31d8711492d766fc73e2986054e917601ffe7
2018-06-05 17:41:12 -07:00
Steve Fink
83b024c942 Bug 1466387 - Set up the gray root tracer on worker thread, r=jonco
--HG--
extra : topic : nursery.strings
extra : rebase_source : c3394cf4fe856a6811ed5733dc3e358f3e76f30f
2018-06-05 16:03:36 -07:00
Simon Brand
256ed0bb7a Bug 1461375 - Deduplicate emitMegamorphicStoreSlotResult between Ion and Baseline. r=mgaudet 2018-06-08 20:39:29 +01:00
Julian Seward
e8c96808ab Bug 1467071 - Wasm: import embedding_limits "limits.js" test and fix any resulting failures. r=lth.
The WebAssembly Specification, branch [1] (see also, more generally,
comments in [2]), contains a new test, limits.js, to check whether the
generally agreed embedding limits (numbers of functions, imports, etc) are
observed.  This bug is to import the test and fix any resulting breakage
detected with it.

[1] https://github.com/WebAssembly/spec/tree/embedding_limits
[2] https://github.com/WebAssembly/spec/issues/607

* js/src/wasm/WasmBinaryConstants.h:
  - Added MaxTableMaximumLength as a counterpart to MaxTableInitialLength.
  - Split the constant group into two parts: spec-required, and those
    pertaining only to our own implementation.

* js/src/wasm/WasmJS.cpp  WasmTableObject::construct():
  - Update GetLimits call with correct max size bound

* js/src/wasm/WasmValidate.cpp  DecodeTableLimits():
  - Implement missing check for a Table's maximum size.

* js/src/jit-test/tests/wasm/import-export.js:
  js/src/jit-test/tests/wasm/spec/jsapi.js:
  testing/web-platform/mozilla/tests/wasm/js/jsapi.js:
  - Update Table maximum size tests.  All tests trying to make a Table
    with more than 10,000,000 entries now throw instead of succeeding.

* js/src/jit-test/tests/wasm/spec/harness/wasm-module-builder.js:
  - Import minimal updates and bug fixes from [1], needed to make the
    new tests work.

* js/src/jit-test/tests/wasm/spec/limits.js
  - New file.  Derived from [1], with comments added to each test to show
    SM's compliance situation, and with two tests disabled.

--HG--
extra : rebase_source : 489c97dd2420508ad9768a2aa4714aa8dfbfe2c6
2018-06-08 18:37:42 +02:00
Jan de Mooij
ce132119dd Bug 1466121 part 7 - Split Compartment-inl.h from Realm-inl.h. r=luke
--HG--
rename : js/src/vm/Realm-inl.h => js/src/vm/Compartment-inl.h
2018-06-08 16:16:21 +02:00
Jan de Mooij
04a3651fe2 Bug 1466121 part 6 - Split Compartment.cpp from Realm.cpp. r=luke
--HG--
rename : js/src/vm/Realm.cpp => js/src/vm/Compartment.cpp
2018-06-08 16:16:20 +02:00
Jan de Mooij
b41618f3b1 Bug 1466121 part 5 - Split Compartment.h from Realm.h. r=luke
--HG--
rename : js/src/vm/Realm.h => js/src/vm/Compartment.h
2018-06-08 16:16:19 +02:00
Jan de Mooij
9c6c88908e Bug 1466121 part 4 - Rename vm/JSCompartment* to vm/Realm*. r=luke
--HG--
rename : js/src/vm/JSCompartment-inl.h => js/src/vm/Realm-inl.h
rename : js/src/vm/JSCompartment.cpp => js/src/vm/Realm.cpp
rename : js/src/vm/JSCompartment.h => js/src/vm/Realm.h
2018-06-08 16:16:19 +02:00
Jan de Mooij
be7b2f64ad Bug 1466121 part 3 - Merge Realm.cpp into JSCompartment.cpp to simplify later patches. r=luke 2018-06-08 16:16:18 +02:00
arthur.iakab
edbf2c0099 Merge inbound to mozilla-central a=merge 2018-06-08 12:55:49 +03:00
Jeff Walden
d3152e159d Bug 1467336 - Move regular expression literal tokenizing into its own function. r=arai
--HG--
extra : rebase_source : 341584683b866dd4dcd7c217d378a4211e30e239
2018-06-07 22:47:28 -07:00
Jeff Walden
06c657eee3 Bug 1467336 - Process the code units comprising regular expression literals in a manner that optimizes the pure-ASCII case. r=arai
--HG--
extra : rebase_source : 2a44776b1e5d2bc7bd66a6f773964636aca48276
2018-06-07 03:24:04 -07:00
Jeff Walden
f7961e0fe2 Bug 1467336 - Introduce code to bifurcate handling of arbitrary-code-point getting in the tokenizer to distinctly and separately handle ASCII and non-ASCII code points. r=arai
--HG--
extra : rebase_source : 455de737b65fd2c0c42da8e1fe2619f25599d344
2018-06-07 03:01:38 -07:00
Jeff Walden
24d6bcee93 Bug 1467336 - Rename TokenStreamSpecific::matchChar to TokenStreamCharsBase::matchCodeUnit to clarify its unit-matching nature. r=arai
--HG--
extra : rebase_source : b3859a50b46f96f356edbb254a27b8416261f1c9
2018-06-07 02:16:57 -07:00
Jeff Walden
e9e010d389 Bug 1467336 - Add TokenStreamChars::getCodePoint and use it in one trivial place. r=arai
--HG--
extra : rebase_source : c0f97e9f740be3ee4bbdb9623c893067e7c1aa03
2018-06-07 02:16:32 -07:00
Jeff Walden
1a12745c61 Bug 1467336 - Rename ungetCharIgnoreEOL to ungetCodeUnit. r=arai
--HG--
extra : rebase_source : fa0464982bd463838f9c6b8d1eb388b55f2e583e
2018-06-07 02:16:07 -07:00
Jeff Walden
b1a37599da Bug 1467336 - Rename getCharIgnoreEOL to getCodeUnit to better indicate that's all it does. r=arai
--HG--
extra : rebase_source : d34c4019170e78a0d5170e346fbe920884442cb9
2018-06-07 02:15:41 -07:00
Jeff Walden
800f6db11a Bug 1467335 - Add an assertion to ungetCharIgnoreEOL that the EOF-flag has been set if EOF is being returned. r=arai
--HG--
extra : rebase_source : 233d673d307bb42d6e5b73f1cc246af4c740fe82
2018-06-07 02:13:49 -07:00
Jeff Walden
fbabc3fea0 Bug 1467334 - Make TokenStreamAnyChars::isExprEnding a well-documented array of bool, zero-initialize it using a member initializer, then overwrite its few true elements in the constructor body. r=arai
--HG--
extra : rebase_source : 68db8c022f6a89b2db14bb2e2cdda08d757445ac
2018-06-07 02:13:11 -07:00
Rick Waldron
5aaabbfc99 Bug 1457560 - Expose $262.agent.monotonicNow() for Test262 use in testing Atomic operation timeouts. r=jwalden
--HG--
extra : rebase_source : 6387145a06988112cadde2855bc69d2982f1e33a
2018-06-06 22:21:34 -07:00
Andreea Pavel
6efbfd2a22 Backed out changeset 88c929206539 (bug 1467071) for failing wpt at /_mozilla/wasm/jsapi.js.html on a CLOSED TREE 2018-06-08 07:03:17 +03:00
Julian Seward
a8cfabf7b6 Bug 1467071 - Wasm: import embedding_limits "limits.js" test and fix any resulting failures. r=lth.
The WebAssembly Specification, branch [1] (see also, more generally,
comments in [2]), contains a new test, limits.js, to check whether the
generally agreed embedding limits (numbers of functions, imports, etc) are
observed.  This bug is to import the test and fix any resulting breakage
detected with it.

[1] https://github.com/WebAssembly/spec/tree/embedding_limits
[2] https://github.com/WebAssembly/spec/issues/607

* js/src/wasm/WasmBinaryConstants.h:
  - Added MaxTableMaximumLength as a counterpart to MaxTableInitialLength.
  - Split the constant group into two parts: spec-required, and those
    pertaining only to our own implementation.

* js/src/wasm/WasmJS.cpp  WasmTableObject::construct():
  - Update GetLimits call with correct max size bound

* js/src/wasm/WasmValidate.cpp  DecodeTableLimits():
  - Implement missing check for a Table's maximum size.

* js/src/jit-test/tests/wasm/import-export.js:
  js/src/jit-test/tests/wasm/spec/jsapi.js:
  - Update Table maximum size tests.  All tests trying to make a Table
    with more than 10,000,000 entries now throw instead of succeeding.

* js/src/jit-test/tests/wasm/spec/harness/wasm-module-builder.js:
  - Import minimal updates and bug fixes from [1], needed to make the
    new tests work.

* js/src/jit-test/tests/wasm/spec/limits.js
  - New file.  Derived from [1], with comments added to each test to show
    SM's compliance situation, and with two tests disabled.

--HG--
extra : rebase_source : a1f1ec730ecae22f2aa0f510c15ebc934489a1b3
2018-06-07 09:36:09 +02:00
Tooru Fujisawa
fc618ed15a Bug 1467052 - Use BindingName tag to distinguish between var and top-level function, instead of offset range. r=shu 2018-06-08 10:06:13 +09:00
Ciure Andrei
25ae31a366 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-06-08 00:54:06 +03:00
Matthew Gaudet
9d8092fba3 Bug 1466189: followup patch to make discard stack unconditional r=jandem
--HG--
extra : rebase_source : bf19d39abb1ee0857ea73f72f1aa26f24ef1cf38
2018-06-07 11:25:02 -04:00
Kris Maglione
a4973ad0d6 Bug 1464548: Part 1b - Don't delete properties before redefining them, because deleting properties kills JIT performance. r=mccr8
MozReview-Commit-ID: IUMg59xRoIu

--HG--
extra : rebase_source : 6be1c84601ff868835cad53116ab920d2f2db317
2018-05-25 19:17:58 -07:00
Kris Maglione
bbbb42012f Bug 1464548: Part 1a - Add defineLazyGlobalGetters helper. r=mccr8
This allows us to lazily import global properties using
Cu.importGlobalProperties. Aside from making it easier to avoid lazily
importing these properties, it also defines them all in the shared JSM global
so that we don't risk re-creating them in Sandboxes or frameloader globals.

MozReview-Commit-ID: GV6shguUlIG

--HG--
extra : rebase_source : 6b9269f3b33fe085c5ed63ee16e5b4ce9e5343a4
2018-05-25 22:28:27 -07:00
Karl Tomlinson
4b7ee0c98d bug 1467024 remove Rooted/PersistentRooted special cases already covered by JS_HAZ_ROOTED r=sfink
MozReview-Commit-ID: 4jjzqNJmW0L

--HG--
extra : rebase_source : 584d3de00f9c7e048f6957ed716e7214d02c9fd5
2018-06-06 12:52:37 +12:00
Tom Schuster
731eb0bfab Bug 1451017 - Remove Xray resolveNativeProperty. r=bz
--HG--
extra : rebase_source : 3fca06866110b912478448b06f12dc2158f560c7
2018-05-08 22:09:05 +02:00
Cosmin Sabou
0f45148664 Backed out changeset 531593bacc4e (bug 1448040) for Android build bustages on HangAnnotations.h. CLOSED TREE
--HG--
extra : rebase_source : ea3618023c548a8ca6ca14749633c194606af52f
2018-06-07 19:22:31 +03:00
Jan de Mooij
6d0be5a5cf Bug 1466121 part 2 - Make Compartment and Zone classes instead of structs. r=luke
--HG--
extra : rebase_source : 1394dc86b035340f99c241f3ee1af5dd407bdb67
2018-06-07 16:45:04 +02:00
Jan de Mooij
f7fb3be6ec Bug 1466121 part 1 - Rename JSCompartment to JS::Compartment. r=luke
--HG--
extra : rebase_source : cd7140ecda54f0caa02a96f562167b3c9a107450
2018-06-07 16:44:40 +02:00
Matthew Gaudet
4ec5d0f516 Bug 1466189: Handle equal length strings in Compare IC r=tcampbell
--HG--
extra : rebase_source : d5748a5839bf256adadae5c14d5d53d3ba949cce
2018-06-05 18:02:19 -04:00
Peter Van der Beken
b986ba77dd Bug 1053271 - Remove some unused XRayWrapper code. r=bz.
--HG--
extra : rebase_source : 62e659d4b70872997b62185b2f634d87e9242d9d
2018-06-04 16:37:04 +02:00
Peter Van der Beken
f4270dc255 Bug 1053271 - Move Sandbox proxy handlers out of XrayWrapper.h. r=bz.
--HG--
extra : rebase_source : 6172fcbc5782ec3e800b034ca5fdba354f0797e2
2018-06-06 11:42:12 +02:00
Peter Van der Beken
a47cb53336 Bug 1053271 - Remove XrayTraits' HasPrototype. r=bz.
XPCWN Xrays were the only Xrays that set HasPrototype to 0.

--HG--
extra : rebase_source : c10654e4eb6eb39b3cfe8884009cd1a47dcad807
2018-06-04 14:26:37 +02:00
Peter Van der Beken
c02d68395d Bug 1053271 - Remove XPCWN Xrays. r=bz.
--HG--
extra : rebase_source : 4da59c56ffc6eab4af0bf59d3d3861bbc18a33ba
2018-06-04 12:56:38 +02:00
Jan de Mooij
8bc57c3d29 Bug 1465472 followup - Remove (now always-false) check for atoms compartment. r=jonco 2018-06-07 12:18:56 +02:00
Jan de Mooij
65d353413b Bug 1466458 part 2 - Refactor Realm::enterRealmDepth_ to account for Realms entered from JIT code. r=luke 2018-06-07 12:18:43 +02:00
Jan de Mooij
a0f210fb97 Bug 1466458 part 1 - Remove JSContext::enterRealmDepth_. r=luke 2018-06-07 12:17:08 +02:00
Jan de Mooij
418cdb8d25 Bug 1466501 part 3 - Add an objectGlobal(obj) testing function. r=luke 2018-06-07 10:02:10 +02:00
Jan de Mooij
3c1a7769ea Bug 1466501 part 2 - Add a scriptedCallerGlobal() testing function for JS::GetScriptedCallerGlobal. r=luke 2018-06-07 10:02:10 +02:00
Jan de Mooij
56ca3c9524 Bug 1466501 part 1 - Refactor ZoneSpecifier and add a sameCompartmentAs option to newGlobal in the shell. r=luke 2018-06-07 10:02:10 +02:00
Tooru Fujisawa
aa391e1e8b Bug 1460154 - Part 2: Handle TDZCheckCache in IfEmitter. r=jwalden 2018-06-07 15:59:01 +09:00
Tooru Fujisawa
587d9259cd Bug 1460154 - Part 1: Rename IfThenElseEmitter to IfEmitter. r=Yoric 2018-06-07 15:59:00 +09:00