Update mozjs (SpiderMonkey) to 128.0 (#32769)

* Update mozjs

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

* Fix changed readTransfer callback

https://bugzilla.mozilla.org/show_bug.cgi?id=1842713
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

* Use NewExternalArrayBuffer from glue

https://github.com/servo/mozjs/pull/474/commits/d33454be74ec5b8d8faf51fab3ed477b8913898b
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

* Fix columnorigin and filename being in latin1

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

* fixup newexternalarray

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

* Float16 (this might require more work for codegen support)

https://bugzilla.mozilla.org/show_bug.cgi?id=1833647
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

* js.strict is removed

https://bugzilla.mozilla.org/show_bug.cgi?id=1621603
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

* asm options are now somewhere else

https://hg.mozilla.org/mozilla-central/rev/26045c88e3972957087d535e7f259e08857bd2a2
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

* Comment out offthread compilation

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

* Set NDK to 26

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

* Fix 1-origin handling

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

* Expect `FinalizationRegistry` interface

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

* Good expectations

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

* more expectations

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

* Add `WeakRef` to interfaces expectation

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

* mozjs upgrade: fixes for Android

Android NDK's layout has changed in r26 and 'lib64' no longer exists
under `toolchain/llvm/prebuilt/linux-x86_64`. The libraries that used to
be it are now present in `lib` folder itself.

This patch updates the build configuration to use the `lib` folder
instead when configuring the LIBCLANG_PATH environment variable.

This patch also updates to a newer mozjs version that includes fixes for
linker errors faced on Android (see #32769).

Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>

* Patch libz-sys & update mozjs

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

* update NDK version in README

Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>

* Use servo/mozjs

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

* Update mozjs again

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

---------

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
Co-authored-by: Mukilan Thiyagarajan <mukilan@igalia.com>
This commit is contained in:
Samson 2024-07-29 09:20:15 +02:00 committed by GitHub
parent ed8def2896
commit d132a0273d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
41 changed files with 524 additions and 240 deletions

View file

@ -1,5 +1,8 @@
[cleanup-prevented-with-reference.optional.any.html]
expected: ERROR
[cleanupCallback has only one optional chance to be called for a GC that cleans up a registered target.]
expected: FAIL
[cleanup-prevented-with-reference.optional.any.worker.html]
expected: ERROR
[cleanupCallback has only one optional chance to be called for a GC that cleans up a registered target.]
expected: FAIL

View file

@ -1,5 +1,8 @@
[cleanup-prevented-with-unregister.optional.any.worker.html]
expected: ERROR
[Cleanup might be prevented with an unregister usage]
expected: FAIL
[cleanup-prevented-with-unregister.optional.any.html]
expected: ERROR
[Cleanup might be prevented with an unregister usage]
expected: FAIL

View file

@ -1,5 +1,8 @@
[finalizationregistry-cleanupCallback-gets-a-microtask.optional.any.worker.html]
expected: ERROR
[HostCleanupFinalizationRegistry is an implementation-defined abstract operation that is expected to call CleanupFinalizationRegistry(finalizationRegistry) at some point in the future, if possible.]
expected: FAIL
[finalizationregistry-cleanupCallback-gets-a-microtask.optional.any.html]
expected: ERROR
[HostCleanupFinalizationRegistry is an implementation-defined abstract operation that is expected to call CleanupFinalizationRegistry(finalizationRegistry) at some point in the future, if possible.]
expected: FAIL

View file

@ -1,2 +0,0 @@
[finalizationregistry-cleanupCallback-throws-onerror-interaction.optional.window.html]
expected: ERROR

View file

@ -1,5 +1,8 @@
[gc-has-one-chance-to-call-cleanupCallback-queueMicrotask.optional.any.html]
expected: ERROR
[cleanupCallback has only one optional chance to be called for a GC that cleans up a registered target.]
expected: FAIL
[gc-has-one-chance-to-call-cleanupCallback-queueMicrotask.optional.any.worker.html]
expected: ERROR
[cleanupCallback has only one optional chance to be called for a GC that cleans up a registered target.]
expected: FAIL

View file

@ -1,2 +1,3 @@
[gc-has-one-chance-to-call-cleanupCallback-queueMicrotaskMutationObserver.optional.window.html]
expected: ERROR
[cleanupCallback has only one optional chance to be called for a GC that cleans up a registered target.]
expected: FAIL

View file

@ -1,5 +1,8 @@
[gc-has-one-chance-to-call-cleanupCallback.optional.any.worker.html]
expected: ERROR
[cleanupCallback has only one optional chance to be called for a GC that cleans up a registered target.]
expected: FAIL
[gc-has-one-chance-to-call-cleanupCallback.optional.any.html]
expected: ERROR
[cleanupCallback has only one optional chance to be called for a GC that cleans up a registered target.]
expected: FAIL

View file

@ -1,5 +1,8 @@
[reentrancy.optional.any.html]
expected: ERROR
[cleanupCallback has only one optional chance to be called for a GC that cleans up a registered target.]
expected: FAIL
[reentrancy.optional.any.worker.html]
expected: ERROR
[cleanupCallback has only one optional chance to be called for a GC that cleans up a registered target.]
expected: FAIL

View file

@ -1,5 +1,8 @@
[return-undefined-with-gc.optional.any.html]
expected: ERROR
[Return undefined regardless the result of CleanupFinalizationRegistry]
expected: FAIL
[return-undefined-with-gc.optional.any.worker.html]
expected: ERROR
[Return undefined regardless the result of CleanupFinalizationRegistry]
expected: FAIL

View file

@ -1,5 +1,8 @@
[unregister-cleaned-up-cell.optional.any.html]
expected: ERROR
[Cannot unregister a cell that has been cleaned up]
expected: FAIL
[unregister-cleaned-up-cell.optional.any.worker.html]
expected: ERROR
[Cannot unregister a cell that has been cleaned up]
expected: FAIL