Home
last modified time | relevance | path

Searched refs:wasm (Results 1 – 25 of 134) sorted by relevance

123456

/external/v8/src/compiler/
Dwasm-compiler.h32 namespace wasm {
49 WasmCompilationUnit(wasm::ErrorThrower* thrower, Isolate* isolate,
50 wasm::ModuleBytesEnv* module_env,
51 const wasm::WasmFunction* function, uint32_t index);
59 static Handle<Code> CompileWasmFunction(wasm::ErrorThrower* thrower, in CompileWasmFunction()
61 wasm::ModuleBytesEnv* module_env, in CompileWasmFunction()
62 const wasm::WasmFunction* function) { in CompileWasmFunction()
71 char* GetTaggedFunctionName(const wasm::WasmFunction* function);
73 wasm::ErrorThrower* thrower_;
75 wasm::ModuleBytesEnv* module_env_;
[all …]
Dwasm-compiler.cc53 const Operator* UnsupportedOpcode(wasm::WasmOpcode opcode) { in UnsupportedOpcode()
55 wasm::WasmOpcodes::OpcodeName(opcode)); in UnsupportedOpcode()
133 void Unreachable(wasm::WasmCodePosition position) { in Unreachable()
134 ConnectTrap(wasm::kTrapUnreachable, position); in Unreachable()
138 void TrapAlways(wasm::TrapReason reason, wasm::WasmCodePosition position) { in TrapAlways()
143 Node* TrapIfEq32(wasm::TrapReason reason, Node* node, int32_t val, in TrapIfEq32()
144 wasm::WasmCodePosition position) { in TrapIfEq32()
159 Node* ZeroCheck32(wasm::TrapReason reason, Node* node, in ZeroCheck32()
160 wasm::WasmCodePosition position) { in ZeroCheck32()
165 Node* TrapIfEq64(wasm::TrapReason reason, Node* node, int64_t val, in TrapIfEq64()
[all …]
/external/swiftshader/third_party/subzero/
DREADME-wasm.md9 -target=arm32 ./torture-s2wasm-sexpr-wasm/20000112-1.c.s.wast.wasm
21 `wasm-run-torture-tests.py` can be used to run all the tests, or some
23 torture tests from the [WebAssembly waterfall](https://wasm-stat.us/console) or
30 ./pnacl-sz -filetype=obj -o foo.o foo.wasm
31 clang -m32 foo.o src/wasm-runtime.c
37 Compile a C file to a .wasm
39 ./wasm-install/bin/emscripten/emcc hello-wasm.c -s BINARYEN=1
40 ./wasm-install/bin/sexpr-wasm a.out.wast -o a.out.wasm
Dc2wasm-exe.sh6 ./wasm-install/bin/emscripten/emcc "$1" -s BINARYEN=1 \
8 --em-config wasm-install/emscripten_config_vanilla -O2 && \
9 ./wasm-install/bin/sexpr-wasm a.out.wast -o a.out.wasm && \
10 ./pnacl-sz a.out.wasm -o a.out.o -filetype=obj -O2 && \
12 ./runtime/wasm-runtime.cpp -lm -g -lstdc++
Dfetch-torture-tests.sh4 BUILD_PATH=https://storage.googleapis.com/wasm-llvm/builds/git
6 wget -O - $BUILD_PATH/wasm-torture-s-$BUILDID.tbz2 \
9 wget -O - $BUILD_PATH/wasm-torture-s2wasm-sexpr-wasm-$BUILDID.tbz2 \
12 wget -O - $BUILD_PATH/wasm-binaries-$BUILDID.tbz2 \
16 …$BUILD_PATH/wasm-torture-/b/build/slave/linux/build/src/src/work/wasm-install/emscripten_config_va…
/external/v8/tools/
Dupdate-wasm-fuzzers.sh12 rm -rf test/fuzzer/wasm
17 mkdir -p test/fuzzer/wasm
23 --dump-wasm-module-path=./test/fuzzer/wasm_asmjs/" mjsunit/wasm/asm*
36 --dump-wasm-module-path=./test/fuzzer/wasm/" mjsunit/wasm/*
40 $(cd test/; ls cctest/wasm/test-*.cc | \
41 sed -es/wasm\\///g | sed -es/[.]cc/\\/\\*/g)
44 for x in $(find ./test/fuzzer/wasm/ -type f -size +20k)
55 upload_to_google_storage.py -a -b v8-wasm-fuzzer wasm
56 upload_to_google_storage.py -a -b v8-wasm-asmjs-fuzzer wasm_asmjs
/external/v8/src/asmjs/
Dasm-js.cc31 using v8::internal::wasm::ErrorThrower;
76 case wasm::AsmTyper::StandardMember::kNone: in IsStdlibMemberValid()
77 case wasm::AsmTyper::StandardMember::kModule: in IsStdlibMemberValid()
78 case wasm::AsmTyper::StandardMember::kStdlib: in IsStdlibMemberValid()
79 case wasm::AsmTyper::StandardMember::kHeap: in IsStdlibMemberValid()
80 case wasm::AsmTyper::StandardMember::kFFI: { in IsStdlibMemberValid()
84 case wasm::AsmTyper::StandardMember::kInfinity: { in IsStdlibMemberValid()
97 case wasm::AsmTyper::StandardMember::kNaN: { in IsStdlibMemberValid()
111 case wasm::AsmTyper::StandardMember::k##CamelName: { \ in IsStdlibMemberValid()
143 case wasm::AsmTyper::StandardMember::kMath##cname: { \ in IsStdlibMemberValid()
[all …]
/external/llvm/test/CodeGen/WebAssembly/
Dmemory-addr32.ll1 ; RUN: llc < %s -asm-verbose=false -disable-wasm-fallthrough-return-opt | FileCheck %s
8 declare i32 @llvm.wasm.current.memory.i32() nounwind readonly
9 declare void @llvm.wasm.grow.memory.i32(i32) nounwind
16 %a = call i32 @llvm.wasm.current.memory.i32()
25 call void @llvm.wasm.grow.memory.i32(i32 %n)
Dmemory-addr64.ll1 ; RUN: llc < %s -asm-verbose=false -disable-wasm-fallthrough-return-opt | FileCheck %s
8 declare i64 @llvm.wasm.current.memory.i64() nounwind readonly
9 declare void @llvm.wasm.grow.memory.i64(i64) nounwind
16 %a = call i64 @llvm.wasm.current.memory.i64()
25 call void @llvm.wasm.grow.memory.i64(i64 %n)
Dstore-results.ll1 ; RUN: llc < %s -asm-verbose=false -disable-wasm-fallthrough-return-opt | FileCheck %s
3 ; Test that the wasm-store-results pass makes users of stored values use the
20 ; Test interesting corner cases for wasm-store-results, in which the operand of
Dstore.ll1 ; RUN: llc < %s -asm-verbose=false -disable-wasm-fallthrough-return-opt | FileCheck %s
2 ; RUN: llc < %s -asm-verbose=false -disable-wasm-fallthrough-return-opt -fast-isel -fast-isel-abort…
/external/llvm/include/llvm/IR/
DIntrinsicsWebAssembly.td1 //===- IntrinsicsWebAssembly.td - Defines wasm intrinsics --*- tablegen -*-===//
15 let TargetPrefix = "wasm" in { // All intrinsics start with "llvm.wasm.".
/external/v8/
DAndroid.v8.mk21 src/asmjs/asm-wasm-builder.cc \
79 src/builtins/builtins-wasm.cc \
197 src/compiler/wasm-compiler.cc \
198 src/compiler/wasm-linkage.cc \
408 src/runtime/runtime-wasm.cc \
441 src/wasm/function-body-decoder.cc \
442 src/wasm/module-decoder.cc \
443 src/wasm/signature-map.cc \
444 src/wasm/wasm-code-specialization.cc \
445 src/wasm/wasm-debug.cc \
[all …]
DBUILD.gn922 "src/asmjs/asm-wasm-builder.cc",
923 "src/asmjs/asm-wasm-builder.h",
1013 "src/builtins/builtins-wasm.cc",
1256 "src/compiler/wasm-compiler.cc",
1257 "src/compiler/wasm-compiler.h",
1258 "src/compiler/wasm-linkage.cc",
1720 "src/runtime/runtime-wasm.cc",
1801 "src/wasm/decoder.h",
1802 "src/wasm/function-body-decoder-impl.h",
1803 "src/wasm/function-body-decoder.cc",
[all …]
/external/v8/src/wasm/
Dwasm-js.cc29 using v8::internal::wasm::ErrorThrower;
119 i::wasm::ModuleWireBytes GetFirstArgumentAsBytes( in GetFirstArgumentAsBytes()
123 return i::wasm::ModuleWireBytes(nullptr, nullptr); in GetFirstArgumentAsBytes()
153 if (length > i::wasm::kV8MaxWasmModuleSize) { in GetFirstArgumentAsBytes()
155 i::wasm::kV8MaxWasmModuleSize, length); in GetFirstArgumentAsBytes()
157 if (thrower->error()) return i::wasm::ModuleWireBytes(nullptr, nullptr); in GetFirstArgumentAsBytes()
159 return i::wasm::ModuleWireBytes(start, start + length); in GetFirstArgumentAsBytes()
195 i::wasm::AsyncCompile(i_isolate, promise, bytes); in WebAssemblyCompile()
209 i::wasm::SyncValidate(reinterpret_cast<i::Isolate*>(isolate), &thrower, in WebAssemblyValidate()
230 i::wasm::SyncCompile(i_isolate, &thrower, bytes); in WebAssemblyModule()
[all …]
Dwasm-debug.cc20 using namespace v8::internal::wasm;
245 wasm::InterpretedFrame frame = in GetTopPosition()
260 wasm::InterpretedFrame frame = thread->GetFrame(i); in GetInterpretedStack()
266 std::unique_ptr<wasm::InterpretedFrame> GetInterpretedFrame( in GetInterpretedFrame()
273 return std::unique_ptr<wasm::InterpretedFrame>( in GetInterpretedFrame()
274 new wasm::InterpretedFrame(thread->GetMutableFrame(idx))); in GetInterpretedFrame()
439 std::unique_ptr<wasm::InterpretedFrame> WasmDebugInfo::GetInterpretedFrame( in GetInterpretedFrame()
Dwasm-module.cc30 using namespace v8::internal::wasm;
171 const wasm::WasmModule* module, in CloneOrCompileJSToWasmWrapper()
174 const wasm::WasmFunction* func = &module->functions[index]; in CloneOrCompileJSToWasmWrapper()
204 wasm::SignatureMap sig_map_;
764 Handle<JSArrayBuffer> wasm::NewArrayBuffer(Isolate* isolate, size_t size, in NewArrayBuffer()
793 std::ostream& wasm::operator<<(std::ostream& os, const WasmModule& module) { in operator <<()
803 std::ostream& wasm::operator<<(std::ostream& os, const WasmFunction& function) { in operator <<()
811 std::ostream& wasm::operator<<(std::ostream& os, const WasmFunctionName& name) { in operator <<()
824 WasmInstanceObject* wasm::GetOwningWasmInstance(Code* code) { in GetOwningWasmInstance()
839 int wasm::GetFunctionCodeOffset(Handle<WasmCompiledModule> compiled_module, in GetFunctionCodeOffset()
[all …]
Dfunction-body-decoder.h27 namespace wasm {
54 const wasm::WasmModule* module,
59 const wasm::WasmModule* module);
/external/v8/src/
Dv8.gyp429 'asmjs/asm-wasm-builder.cc',
430 'asmjs/asm-wasm-builder.h',
520 'builtins/builtins-wasm.cc',
753 'compiler/wasm-compiler.cc',
754 'compiler/wasm-compiler.h',
755 'compiler/wasm-linkage.cc',
1225 'runtime/runtime-wasm.cc',
1308 'wasm/decoder.h',
1309 'wasm/function-body-decoder.cc',
1310 'wasm/function-body-decoder.h',
[all …]
Dassembler.cc1043 Redirect(isolate, FUNCTION_ADDR(wasm::f32_trunc_wrapper))); in wasm_f32_trunc()
1047 Redirect(isolate, FUNCTION_ADDR(wasm::f32_floor_wrapper))); in wasm_f32_floor()
1051 Redirect(isolate, FUNCTION_ADDR(wasm::f32_ceil_wrapper))); in wasm_f32_ceil()
1055 Redirect(isolate, FUNCTION_ADDR(wasm::f32_nearest_int_wrapper))); in wasm_f32_nearest_int()
1060 Redirect(isolate, FUNCTION_ADDR(wasm::f64_trunc_wrapper))); in wasm_f64_trunc()
1065 Redirect(isolate, FUNCTION_ADDR(wasm::f64_floor_wrapper))); in wasm_f64_floor()
1070 Redirect(isolate, FUNCTION_ADDR(wasm::f64_ceil_wrapper))); in wasm_f64_ceil()
1075 Redirect(isolate, FUNCTION_ADDR(wasm::f64_nearest_int_wrapper))); in wasm_f64_nearest_int()
1080 Redirect(isolate, FUNCTION_ADDR(wasm::int64_to_float32_wrapper))); in wasm_int64_to_float32()
1085 Redirect(isolate, FUNCTION_ADDR(wasm::uint64_to_float32_wrapper))); in wasm_uint64_to_float32()
[all …]
/external/v8/src/builtins/
Dbuiltins-wasm.cc22 int message_id = wasm::WasmOpcodes::TrapReasonToMessageId(wasm::k##name); \
/external/v8/tools/memory/lsan/
Dsuppressions.txt6 leak:v8::internal::wasm::DecodeWasmModule
7 leak:v8::internal::wasm::WasmInterpreter::WasmInterpreter
/external/swiftshader/third_party/subzero/src/
DWasmTranslator.h37 namespace wasm {
70 v8::internal::wasm::FunctionBody &Body);
/external/v8/src/debug/
Ddebug-frames.h17 namespace wasm {
63 std::unique_ptr<wasm::InterpretedFrame> wasm_interpreted_frame_;
/external/v8/src/runtime/
Druntime-wasm.cc31 WasmInstanceObject* owning_instance = wasm::GetOwningWasmInstance(code); in GetWasmInstanceOnStackTop()
49 wasm::GetInstanceMemorySize(isolate, instance)); in RUNTIME_FUNCTION()
64 wasm::GrowMemory(isolate, instance, delta_pages)); in RUNTIME_FUNCTION()

123456