[wasm] Remove deprecated dart_enable_wasm flag.

Change-Id: I37f326a30de20a895159f5b57a772cd808aa53d2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/193826
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Liam Appelbe <liama@google.com>
This commit is contained in:
Liam Appelbe 2021-04-01 22:45:07 +00:00 committed by commit-bot@chromium.org
parent 170bda2b74
commit 6b42491dcf
8 changed files with 0 additions and 121 deletions

View file

@ -75,9 +75,6 @@ declare_args() {
# Whether libdart should export the symbols of the Dart API.
dart_lib_export_symbols = true
# Whether package:wasm should be enabled.
dart_enable_wasm = false
# Whether to use compressed pointers.
dart_use_compressed_pointers = false
}

View file

@ -507,29 +507,6 @@ copy("copy_analysis_summaries") {
outputs = [ "$root_out_dir/dart-sdk/lib/_internal/{{source_file_part}}" ]
}
copy("copy_wasmer") {
visibility = [ ":create_common_sdk" ]
deps = [
":copy_libraries",
"../third_party/wasmer:wasmer_wrap",
]
if (is_win) {
prefix = ""
suffix = "dll"
} else if (is_mac) {
prefix = "lib"
suffix = "dylib"
} else {
# TODO(dartbug.com/37882): Support Fuchsia.
prefix = "lib"
suffix = "so"
}
sources = [ "$root_out_dir/${prefix}wasmer_wrap.$suffix" ]
outputs = [
"$root_out_dir/dart-sdk/bin/third_party/wasmer/${prefix}wasmer.$suffix",
]
}
# This rule copies dill files to lib/_internal.
copy("copy_vm_dill_files") {
visibility = [ ":create_common_sdk" ]
@ -850,14 +827,6 @@ group("create_common_sdk") {
if (is_win) {
public_deps += [ ":copy_7zip" ]
}
# CIPD only has versions of the Rust compiler for linux and mac x64 hosts.
# We also disallow cross-compialtion (it may be possible in future, but it
# isn't ready yet).
if (host_cpu == "x64" && (host_os == "linux" || host_os == "mac") &&
host_cpu == current_cpu && host_os == current_os && dart_enable_wasm) {
public_deps += [ ":copy_wasmer" ]
}
}
# Parts specific to the platform SDK.

View file

@ -1,2 +0,0 @@
!*
Cargo.lock

View file

@ -1,24 +0,0 @@
import("../../build/rust/rust.gni")
shared_library("wasmer_wrap") {
sources = [
"../../runtime/include/dart_api_dl.c",
"finalizers.cc",
]
deps = [
":wasmer_lib",
"../../runtime/bin:dart",
]
include_dirs = [ "../../runtime" ]
defines = [ "DART_SHARED_LIB" ]
if (is_linux) {
libs = [ "rt" ]
}
# Force linking of all wasmer symbols.
ldflags = [ "-Wl,--no-as-needed" ]
}
rust_library("wasmer_lib") {
lib_name = "wasmer"
}

View file

@ -1,13 +0,0 @@
[package]
name = "wasmer"
version = "1.0.0-alpha5"
[lib]
name = "wasmer"
crate-type = ["staticlib"]
path = "wasmer.rs"
[dependencies.wasmer-c-api]
version = "1.0.0-alpha5"
default-features = false
features = ["jit", "cranelift", "wasi"]

View file

@ -1,21 +0,0 @@
MIT License
Copyright (c) 2019-present Wasmer, Inc. and its affiliates.
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.

View file

@ -1,26 +0,0 @@
// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include "include/dart_api.h"
#include "include/dart_api_dl.h"
#define FINALIZER(type) \
extern "C" void wasm_##type##_delete(void*); \
extern "C" void wasm_##type##_finalizer(void*, void* native_object) { \
wasm_##type##_delete(native_object); \
} \
DART_EXPORT void set_finalizer_for_##type(Dart_Handle dart_object, \
void* native_object) { \
Dart_NewFinalizableHandle_DL(dart_object, native_object, 0, \
wasm_##type##_finalizer); \
}
FINALIZER(engine);
FINALIZER(store);
FINALIZER(module);
FINALIZER(instance);
FINALIZER(trap);
FINALIZER(memorytype);
FINALIZER(memory);
FINALIZER(func);

View file

@ -1 +0,0 @@
pub extern crate wasmer_c_api;