Commit 4bb66750 authored by Willy R. Vasquez's avatar Willy R. Vasquez
Browse files

Bug 1829765 - Enable SIMD support in wasm2c for RLBox sandboxing r=glandium,shravanrn CLOSED TREE


Vendor in support for simd-everywhere

Differential Revision: https://phabricator.services.mozilla.com/D176371
parent 372acec1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@

LOCAL_INCLUDES += [
    "/third_party/picosha2/",
    "/third_party/simde/",
    "/third_party/wasm2c/include/",
]

+6 −1
Original line number Diff line number Diff line
@@ -8,7 +8,10 @@ WASM_SOURCES += [
    "/third_party/rlbox_wasm2c_sandbox/c_src/wasm2c_sandbox_wrapper.c",
]

LOCAL_INCLUDES += ["/third_party/wasm2c/wasm2c/"]
LOCAL_INCLUDES += [
    "/third_party/simde/",
    "/third_party/wasm2c/wasm2c/",
]

EXPORTS += [
    "/third_party/wasm2c/wasm2c/wasm-rt.h",
@@ -37,6 +40,8 @@ DEFINES["WASM_RT_USE_STACK_DEPTH_COUNT"] = 0
# fails inside the sandbox. This information is used to annotate crash reports.
DEFINES["WASM_RT_GROW_FAILED_HANDLER"] = "moz_wasm2c_memgrow_failed"

# Enable SIMD enhancements
DEFINES["WASM_RT_ENABLE_SIMD"] = 1

FINAL_LIBRARY = "xul"

+20 −0
Original line number Diff line number Diff line
Copyright (c) 2017 Evan Nemerson <evan@nemerson.com>

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+423 −0

File added.

Preview size limit exceeded, changes collapsed.

+46 −0
Original line number Diff line number Diff line
schema: 1

bugzilla:
  product: Core
  component: "General"

origin:
  name: simd-everywhere
  description:  Implementations of SIMD instruction sets for systems which don't natively support them.
  url: https://github.com/simd-everywhere/simde

  release: 56b2ff2e44e6b59978c192a5b3f912bc783d99c1 (2023-04-19T13:04:29Z).
  revision: 56b2ff2e44e6b59978c192a5b3f912bc783d99c1

  license: MIT
  license-file: COPYING

vendoring:
  url: https://github.com/simd-everywhere/simde
  source-hosting: github
  vendor-directory: third_party/simde
  exclude:
    - .circleci
    - .github
    - .no-test
    - .semaphore
    - docker
    - test/
    - test
    - test/*
    - test/.gitignore
    - .all-contributorsrc
    - .appveyor.yml
    - .azure-pipelines.yml
    - .cirrus.yml
    - .drone.star
    - .editorconfig
    - .gitignore
    - .gitmodules
    - .travis.yml
    - codecov.yml
    - meson.build
    - meson_options.txt
    - netlify.toml
    - CONTRIBUTING.md
    - amalgamate.py
Loading