| /third_party/node/deps/v8/src/compiler/ |
| D | wasm-compiler.h | 20 #include "src/wasm/function-body-decoder.h" 21 #include "src/wasm/function-compiler.h" 22 #include "src/wasm/wasm-module.h" 23 #include "src/wasm/wasm-opcodes.h" 24 #include "src/wasm/wasm-result.h" 50 namespace wasm { 52 // Expose {Node} and {Graph} opaquely as {wasm::TFNode} and {wasm::TFGraph}. 60 } // namespace wasm 64 wasm::WasmCompilationResult ExecuteTurbofanWasmCompilation( 65 wasm::CompilationEnv*, const wasm::WireBytesStorage* wire_bytes_storage, [all …]
|
| D | wasm-compiler.cc | 5 #include "src/compiler/wasm-compiler.h" 51 #include "src/wasm/code-space-access.h" 52 #include "src/wasm/function-body-decoder-impl.h" 53 #include "src/wasm/function-compiler.h" 54 #include "src/wasm/graph-builder-interface.h" 55 #include "src/wasm/jump-table-assembler.h" 56 #include "src/wasm/memory-tracing.h" 57 #include "src/wasm/object-access.h" 58 #include "src/wasm/wasm-code-manager.h" 59 #include "src/wasm/wasm-constants.h" [all …]
|
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/ |
| D | WebAssemblyRuntimeLibcallSignatures.cpp | 514 SmallVectorImpl<wasm::ValType> &Rets, in getLibcallSignature() 515 SmallVectorImpl<wasm::ValType> &Params) { in getLibcallSignature() 519 wasm::ValType PtrTy = in getLibcallSignature() 520 Subtarget.hasAddr64() ? wasm::ValType::I64 : wasm::ValType::I32; in getLibcallSignature() 527 Rets.push_back(wasm::ValType::F32); in getLibcallSignature() 528 Params.push_back(wasm::ValType::F32); in getLibcallSignature() 531 Rets.push_back(wasm::ValType::F32); in getLibcallSignature() 532 Params.push_back(wasm::ValType::F64); in getLibcallSignature() 535 Rets.push_back(wasm::ValType::F32); in getLibcallSignature() 536 Params.push_back(wasm::ValType::I32); in getLibcallSignature() [all …]
|
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/configs/common/include/llvm/IR/ |
| D | IntrinsicsWebAssembly.h | 16 wasm_alltrue = 6285, // llvm.wasm.alltrue 17 wasm_anytrue, // llvm.wasm.anytrue 18 wasm_atomic_notify, // llvm.wasm.atomic.notify 19 wasm_atomic_wait_i32, // llvm.wasm.atomic.wait.i32 20 wasm_atomic_wait_i64, // llvm.wasm.atomic.wait.i64 21 wasm_avgr_unsigned, // llvm.wasm.avgr.unsigned 22 wasm_bitselect, // llvm.wasm.bitselect 23 wasm_data_drop, // llvm.wasm.data.drop 24 wasm_dot, // llvm.wasm.dot 25 wasm_extract_exception, // llvm.wasm.extract.exception [all …]
|
| /third_party/node/deps/v8/third_party/wasm-api/example/ |
| D | table.cc | 7 #include "wasm.hh" 10 // A function to be called from Wasm code. 12 const wasm::Val args[], wasm::Val results[] in neg_callback() 13 ) -> wasm::own<wasm::Trap> { in neg_callback() 15 results[0] = wasm::Val(-args[0].i32()); in neg_callback() 20 auto get_export_table(wasm::ownvec<wasm::Extern>& exports, size_t i) -> wasm::Table* { in get_export_table() 28 auto get_export_func(const wasm::ownvec<wasm::Extern>& exports, size_t i) -> const wasm::Func* { in get_export_func() 52 const wasm::Func* func, wasm::Val&& arg1, wasm::Val&& arg2 in call() 53 ) -> wasm::Val { in call() 54 wasm::Val args[2] = {std::move(arg1), std::move(arg2)}; in call() [all …]
|
| D | hostref.cc | 7 #include "wasm.hh" 10 // A function to be called from Wasm code. 12 const wasm::Val args[], wasm::Val results[] in callback() 13 ) -> wasm::own<wasm::Trap> { in callback() 21 auto get_export_func(const wasm::ownvec<wasm::Extern>& exports, size_t i) -> const wasm::Func* { in get_export_func() 29 auto get_export_global(wasm::ownvec<wasm::Extern>& exports, size_t i) -> wasm::Global* { in get_export_global() 37 auto get_export_table(wasm::ownvec<wasm::Extern>& exports, size_t i) -> wasm::Table* { in get_export_table() 46 void call_r_v(const wasm::Func* func, const wasm::Ref* ref) { in call_r_v() 48 wasm::Val args[1] = {wasm::Val::ref(ref ? ref->copy() : wasm::own<wasm::Ref>())}; in call_r_v() 56 auto call_v_r(const wasm::Func* func) -> wasm::own<wasm::Ref> { in call_v_r() [all …]
|
| D | callback.cc | 7 #include "wasm.hh" 9 // Print a Wasm value 10 auto operator<<(std::ostream& out, const wasm::Val& val) -> std::ostream& { in operator <<() 12 case wasm::I32: { in operator <<() 15 case wasm::I64: { in operator <<() 18 case wasm::F32: { in operator <<() 21 case wasm::F64: { in operator <<() 24 case wasm::ANYREF: in operator <<() 25 case wasm::FUNCREF: { in operator <<() 36 // A function to be called from Wasm code. [all …]
|
| D | global.cc | 7 #include "wasm.hh" 10 auto get_export_global(wasm::ownvec<wasm::Extern>& exports, size_t i) -> wasm::Global* { in get_export_global() 18 auto get_export_func(const wasm::ownvec<wasm::Extern>& exports, size_t i) -> const wasm::Func* { in get_export_func() 34 auto call(const wasm::Func* func) -> wasm::Val { in call() 35 wasm::Val results[1]; in call() 43 void call(const wasm::Func* func, wasm::Val&& arg) { in call() 44 wasm::Val args[1] = {std::move(arg)}; in call() 55 auto engine = wasm::Engine::make(); in run() 56 auto store_ = wasm::Store::make(engine.get()); in run() 61 std::ifstream file("global.wasm"); in run() [all …]
|
| D | threads.cc | 6 #include "wasm.hh" 11 // A function to be called from Wasm code. 13 void* env, const wasm::Val args[], wasm::Val results[] in callback() 14 ) -> wasm::own<wasm::Trap> { in callback() 15 assert(args[0].kind() == wasm::I32); in callback() 24 wasm::Engine* engine, const wasm::Shared<wasm::Module>* shared, in run() 28 auto store_ = wasm::Store::make(engine); in run() 32 auto module = wasm::Module::obtain(store, shared); in run() 44 auto func_type = wasm::FuncType::make( in run() 45 wasm::ownvec<wasm::ValType>::make(wasm::ValType::make(wasm::I32)), in run() [all …]
|
| D | multi.cc | 7 #include "wasm.hh" 9 // A function to be called from Wasm code. 11 const wasm::Val args[], wasm::Val results[] in callback() 12 ) -> wasm::own<wasm::Trap> { in callback() 29 auto engine = wasm::Engine::make(); in run() 30 auto store_ = wasm::Store::make(engine.get()); in run() 35 std::ifstream file("multi.wasm"); in run() 39 auto binary = wasm::vec<byte_t>::make_uninitialized(file_size); in run() 49 auto module = wasm::Module::make(store, binary); in run() 57 auto tuple = wasm::ownvec<wasm::ValType>::make( in run() [all …]
|
| D | reflect.cc | 7 #include "wasm.hh" 10 auto operator<<(std::ostream& out, wasm::Mutability mut) -> std::ostream& { in operator <<() 12 case wasm::VAR: return out << "var"; in operator <<() 13 case wasm::CONST: return out << "const"; in operator <<() 18 auto operator<<(std::ostream& out, wasm::Limits limits) -> std::ostream& { in operator <<() 20 if (limits.max < wasm::Limits(0).max) out << " " << limits.max; in operator <<() 24 auto operator<<(std::ostream& out, const wasm::ValType& type) -> std::ostream& { in operator <<() 26 case wasm::I32: return out << "i32"; in operator <<() 27 case wasm::I64: return out << "i64"; in operator <<() 28 case wasm::F32: return out << "f32"; in operator <<() [all …]
|
| D | trap.cc | 7 #include "wasm.hh" 9 // A function to be called from Wasm code. 11 void* env, const wasm::Val args[], wasm::Val results[] in fail_callback() 12 ) -> wasm::own<wasm::Trap> { in fail_callback() 14 auto store = reinterpret_cast<wasm::Store*>(env); in fail_callback() 15 auto message = wasm::Name::make(std::string("callback abort")); in fail_callback() 16 return wasm::Trap::make(store, message); in fail_callback() 20 void print_frame(const wasm::Frame* frame) { in print_frame() 31 auto engine = wasm::Engine::make(); in run() 32 auto store_ = wasm::Store::make(engine.get()); in run() [all …]
|
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Object/ |
| D | Wasm.h | 1 //===- Wasm.h - Wasm object file implementation -----------------*- C++ -*-===// 10 // interface for Wasm files. 22 #include "llvm/BinaryFormat/Wasm.h" 38 WasmSymbol(const wasm::WasmSymbolInfo &Info, in WasmSymbol() 39 const wasm::WasmGlobalType *GlobalType, in WasmSymbol() 40 const wasm::WasmEventType *EventType, in WasmSymbol() 41 const wasm::WasmSignature *Signature) in WasmSymbol() 45 const wasm::WasmSymbolInfo &Info; 46 const wasm::WasmGlobalType *GlobalType; 47 const wasm::WasmEventType *EventType; [all …]
|
| D | WasmTraits.h | 1 //===- WasmTraits.h - DenseMap traits for the Wasm structures ---*- C++ -*-===// 9 // This file provides llvm::DenseMapInfo traits for the Wasm structures. 17 #include "llvm/BinaryFormat/Wasm.h" 24 template <> struct DenseMapInfo<wasm::WasmSignature> { 25 static wasm::WasmSignature getEmptyKey() { 26 wasm::WasmSignature Sig; 27 Sig.State = wasm::WasmSignature::Empty; 30 static wasm::WasmSignature getTombstoneKey() { 31 wasm::WasmSignature Sig; 32 Sig.State = wasm::WasmSignature::Tombstone; [all …]
|
| /third_party/node/deps/v8/src/wasm/ |
| D | wasm-objects-inl.h | 27 #include "src/wasm/wasm-code-manager.h" 28 #include "src/wasm/wasm-module.h" 29 #include "src/wasm/wasm-objects.h" 37 #include "torque-generated/src/wasm/wasm-objects-tq-inl.inc" 91 wasm::NativeModule* WasmModuleObject::native_module() const { 94 const std::shared_ptr<wasm::NativeModule>& 98 const wasm::WasmModule* WasmModuleObject::module() const { in module() 116 wasm::ValueType WasmGlobalObject::type() const { in OPTIONAL_ACCESSORS() 117 return wasm::ValueType::FromRawBitField(static_cast<uint32_t>(raw_type())); in OPTIONAL_ACCESSORS() 119 void WasmGlobalObject::set_type(wasm::ValueType value) { in set_type() [all …]
|
| D | c-api.cc | 6 // https://github.com/WebAssembly/wasm-c-api/: 22 #include "src/wasm/c-api.h" 33 #include "src/compiler/wasm-compiler.h" 37 #include "src/wasm/leb-helper.h" 38 #include "src/wasm/module-instantiate.h" 39 #include "src/wasm/wasm-arguments.h" 40 #include "src/wasm/wasm-constants.h" 41 #include "src/wasm/wasm-engine.h" 42 #include "src/wasm/wasm-objects.h" 43 #include "src/wasm/wasm-result.h" [all …]
|
| D | wasm-objects.cc | 5 #include "src/wasm/wasm-objects.h" 11 #include "src/compiler/wasm-compiler.h" 21 #include "src/wasm/code-space-access.h" 22 #include "src/wasm/jump-table-assembler.h" 23 #include "src/wasm/module-compiler.h" 24 #include "src/wasm/module-decoder.h" 25 #include "src/wasm/module-instantiate.h" 26 #include "src/wasm/value-type.h" 27 #include "src/wasm/wasm-code-manager.h" 28 #include "src/wasm/wasm-engine.h" [all …]
|
| /third_party/skia/modules/pathkit/ |
| D | Makefile | 5 mkdir -p ./npm-wasm/bin 8 cp ../../out/pathkit/pathkit.js ./npm-wasm/bin 9 cp ../../out/pathkit/pathkit.wasm ./npm-wasm/bin 15 cd npm-wasm; npm publish 19 cd npm-wasm; npm version major 24 cd npm-wasm; npm version minor 29 cd npm-wasm; npm version patch 34 # suited for that, although if you make changes to the C++/WASM code, you will need 52 # test-docker-continuous is better, although if you make changes to the C++/WASM code, 55 mkdir -p ./npm-wasm/bin/test [all …]
|
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Object/ |
| D | WasmObjectFile.cpp | 1 //===- WasmObjectFile.cpp - Wasm object file implementation ---------------===// 16 #include "llvm/BinaryFormat/Wasm.h" 22 #include "llvm/Object/Wasm.h" 34 #define DEBUG_TYPE "wasm-object" 41 << ", Kind=" << toString(wasm::WasmSymbolType(Info.Kind)) in print() 162 static Error readInitExpr(wasm::WasmInitExpr &Expr, in readInitExpr() 167 case wasm::WASM_OPCODE_I32_CONST: in readInitExpr() 170 case wasm::WASM_OPCODE_I64_CONST: in readInitExpr() 173 case wasm::WASM_OPCODE_F32_CONST: in readInitExpr() 176 case wasm::WASM_OPCODE_F64_CONST: in readInitExpr() [all …]
|
| /third_party/node/test/fixtures/wpt/wasm/webapi/ |
| D | contenttype.any.js | 2 // META: script=/wasm/jsapi/assertions.js 5 const response = fetch("/wasm/incrementer.wasm").then(res => new Response(res.body)); 10 const response = fetch("/wasm/incrementer.wasm").then(res => new Response(res.body)); 18 "text/wasm", 19 "application/wasm;", 20 "application/wasm;x", 21 "application/wasm;charset=UTF-8", 26 …const response = fetch(`/wasm/incrementer.wasm?pipe=header(Content-Type,${encodeURIComponent(conte… 31 …const response = fetch(`/wasm/incrementer.wasm?pipe=header(Content-Type,${encodeURIComponent(conte… 37 "application/wasm", [all …]
|
| /third_party/skia/modules/canvaskit/wasm_tools/SIMD/ |
| D | simd_int_capabilities.cpp | 11 // - Lines with "//GOOD" are compatible with WASM SIMD and are automatically compiled 12 // into WASM SIMD operations by emscripten. 14 // - Lines with "GOOD (FIXED)" are compatible with WASM SIMD but are NOT automatically 15 // compiled into WASM SIMD operations by emscripten. Special WASM SIMD intrinsics have been 16 // specified in skia/include/private/SkVx.h to tell emscripten how to compile them to WASM SIMD 18 // - Lines with "//not available in wasm" do not have compatible WASM SIMD operations. Emscripten 19 // compiles these operations into non-SIMD WASM. 20 // - Lines with "//???" may be more complex and it is not clear if they have compatible WASM SIMD 23 // How to use this file for testing WASM SIMDification of operations: 26 // to check if a WASM SIMD operation exists which correspond to any given line of code. [all …]
|
| D | simd_float_capabilities.cpp | 11 // - Lines with "//GOOD" are compatible with WASM SIMD and are automatically compiled 12 // into WASM SIMD operations by emscripten. 14 // - Lines with "GOOD (FIXED)" are compatible with WASM SIMD but are NOT automatically 15 // compiled into WASM SIMD operations by emscripten. Special WASM SIMD intrinsics have been 16 // specified in skia/include/private/SkVx.h to tell emscripten how to compile them to WASM SIMD 18 // - Lines with "//not available in wasm" do not have compatible WASM SIMD operations. Emscripten 19 // compiles these operations into non-SIMD WASM. 20 // - Lines with "//???" may be more complex and it is not clear if they have compatible WASM SIMD 23 // How to use this file for testing WASM SIMDification of operations: 26 // to check if a WASM SIMD operation exists which correspond to any given line of code. [all …]
|
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/MC/ |
| D | MCSymbolWasm.h | 11 #include "llvm/BinaryFormat/Wasm.h" 17 wasm::WasmSymbolType Type = wasm::WASM_SYMBOL_TYPE_DATA; 25 wasm::WasmSignature *Signature = nullptr; 26 Optional<wasm::WasmGlobalType> GlobalType; 27 Optional<wasm::WasmEventType> EventType; 43 bool isFunction() const { return Type == wasm::WASM_SYMBOL_TYPE_FUNCTION; } in isFunction() 44 bool isData() const { return Type == wasm::WASM_SYMBOL_TYPE_DATA; } in isData() 45 bool isGlobal() const { return Type == wasm::WASM_SYMBOL_TYPE_GLOBAL; } in isGlobal() 46 bool isSection() const { return Type == wasm::WASM_SYMBOL_TYPE_SECTION; } in isSection() 47 bool isEvent() const { return Type == wasm::WASM_SYMBOL_TYPE_EVENT; } in isEvent() [all …]
|
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/MC/ |
| D | WasmObjectWriter.cpp | 1 //===- lib/MC/WasmObjectWriter.cpp - Wasm File Writer ---------------------===// 9 // This file implements Wasm object file writer information. 15 #include "llvm/BinaryFormat/Wasm.h" 58 // The signature of a wasm function or event, in a struct capable of being used 60 // TODO: Consider using wasm::WasmSignature directly instead. 66 SmallVector<wasm::ValType, 1> Returns; 69 SmallVector<wasm::ValType, 4> Params; 91 for (wasm::ValType Ret : Sig.Returns) in getHashValue() 93 for (wasm::ValType Param : Sig.Params) in getHashValue() 102 // A wasm data segment. A wasm binary contains only a single data section [all …]
|
| /third_party/node/deps/v8/src/runtime/ |
| D | runtime-test-wasm.cc | 5 #include "include/v8-wasm.h" 16 #include "src/wasm/memory-tracing.h" 17 #include "src/wasm/module-compiler.h" 18 #include "src/wasm/wasm-code-manager.h" 19 #include "src/wasm/wasm-engine.h" 20 #include "src/wasm/wasm-module.h" 21 #include "src/wasm/wasm-objects-inl.h" 22 #include "src/wasm/wasm-serialization.h" 134 // TODO(wasm): Fix this for mixed JS/Wasm stacks with both --trace and in WasmStackSize() 135 // --trace-wasm. in WasmStackSize() [all …]
|