/external/v8/test/mjsunit/wasm/ |
D | asm-wasm-switch.js | 29 var wasm = Wasm.instantiateModuleFromAsm(asmModule.toString()); 30 assertEquals(5, wasm.caller()); 58 var wasm = Wasm.instantiateModuleFromAsm(asmModule.toString()); 59 assertEquals(23, wasm.caller()); 81 var wasm = Wasm.instantiateModuleFromAsm(asmModule.toString()); 82 assertEquals(42, wasm.caller()); 108 var wasm = Wasm.instantiateModuleFromAsm(asmModule.toString()); 109 assertEquals(43, wasm.caller()); 126 var wasm = Wasm.instantiateModuleFromAsm(asmModule.toString()); 127 assertEquals(-10, wasm.main(2)); [all …]
|
D | wasm-module-builder.js | 171 let wasm = this; 177 if (wasm.types.length > 0) { 180 section.emit_varint(wasm.types.length); 181 for (let type of wasm.types) { 196 if (wasm.imports.length > 0) { 199 section.emit_varint(wasm.imports.length); 200 for (let imp of wasm.imports) { 212 if (wasm.functions.length > 0) { 215 section.emit_varint(wasm.functions.length); 216 for (let func of wasm.functions) { [all …]
|
D | asm-wasm-deopt.js | 24 var wasm = Wasm.instantiateModuleFromAsm( 26 wasm._main(0, 0, 0);
|
D | asm-wasm-copy.js | 25 var wasm = Wasm.instantiateModuleFromAsm(asmModule.toString()); 26 assertEquals(asmModule().func(), wasm.func());
|
/external/v8/src/compiler/ |
D | wasm-compiler.cc | 50 const Operator* UnsupportedOpcode(wasm::WasmOpcode opcode) { in UnsupportedOpcode() 52 wasm::WasmOpcodes::OpcodeName(opcode)); in UnsupportedOpcode() 79 void Unreachable(wasm::WasmCodePosition position) { in Unreachable() 80 ConnectTrap(wasm::kTrapUnreachable, position); in Unreachable() 84 void TrapAlways(wasm::TrapReason reason, wasm::WasmCodePosition position) { in TrapAlways() 89 Node* TrapIfEq32(wasm::TrapReason reason, Node* node, int32_t val, in TrapIfEq32() 90 wasm::WasmCodePosition position) { in TrapIfEq32() 105 Node* ZeroCheck32(wasm::TrapReason reason, Node* node, in ZeroCheck32() 106 wasm::WasmCodePosition position) { in ZeroCheck32() 111 Node* TrapIfEq64(wasm::TrapReason reason, Node* node, int64_t val, in TrapIfEq64() [all …]
|
D | wasm-compiler.h | 27 namespace wasm { 42 WasmCompilationUnit(wasm::ErrorThrower* thrower, Isolate* isolate, 43 wasm::ModuleEnv* module_env, 44 const wasm::WasmFunction* function, uint32_t index); 52 static Handle<Code> CompileWasmFunction(wasm::ErrorThrower* thrower, in CompileWasmFunction() 54 wasm::ModuleEnv* module_env, in CompileWasmFunction() 55 const wasm::WasmFunction* function) { in CompileWasmFunction() 64 wasm::ErrorThrower* thrower_; 66 wasm::ModuleEnv* module_env_; 67 const wasm::WasmFunction* function_; [all …]
|
/external/v8/test/cctest/compiler/ |
D | test-run-calls-to-external-references.cc | 87 TestExternalReference(&m, ref, wasm::f32_trunc_wrapper, 1.25f); in TEST() 93 TestExternalReference(&m, ref, wasm::f32_floor_wrapper, 1.25f); in TEST() 99 TestExternalReference(&m, ref, wasm::f32_ceil_wrapper, 1.25f); in TEST() 105 TestExternalReference(&m, ref, wasm::f32_nearest_int_wrapper, 1.25f); in TEST() 111 TestExternalReference(&m, ref, wasm::f64_trunc_wrapper, 1.25); in TEST() 117 TestExternalReference(&m, ref, wasm::f64_floor_wrapper, 1.25); in TEST() 123 TestExternalReference(&m, ref, wasm::f64_ceil_wrapper, 1.25); in TEST() 129 TestExternalReference(&m, ref, wasm::f64_nearest_int_wrapper, 1.25); in TEST() 135 TestExternalReference(&m, ref, wasm::int64_to_float32_wrapper, int64_t(-2124), in TEST() 143 TestExternalReference(&m, ref, wasm::uint64_to_float32_wrapper, in TEST() [all …]
|
/external/v8/test/cctest/ |
D | BUILD.gn | 56 "compiler/test-run-wasm-machops.cc", 169 "wasm/test-run-wasm-64.cc", 170 "wasm/test-run-wasm-asmjs.cc", 171 "wasm/test-run-wasm-interpreter.cc", 172 "wasm/test-run-wasm-js.cc", 173 "wasm/test-run-wasm-module.cc", 174 "wasm/test-run-wasm-relocation.cc", 175 "wasm/test-run-wasm.cc", 176 "wasm/test-signatures.h", 177 "wasm/test-wasm-function-name-table.cc", [all …]
|
D | cctest.gyp | 90 'compiler/test-run-wasm-machops.cc', 204 'wasm/test-run-wasm.cc', 205 'wasm/test-run-wasm-64.cc', 206 'wasm/test-run-wasm-asmjs.cc', 207 'wasm/test-run-wasm-interpreter.cc', 208 'wasm/test-run-wasm-js.cc', 209 'wasm/test-run-wasm-module.cc', 210 'wasm/test-signatures.h', 211 'wasm/test-wasm-function-name-table.cc', 212 'wasm/test-run-wasm-relocation.cc', [all …]
|
D | cctest.status | 211 'test-run-wasm-js/Run_JSSelectAlign_0': [SKIP], 212 'test-run-wasm-js/Run_JSSelectAlign_2': [SKIP], 213 'test-run-wasm-js/Run_JSSelectAlign_4': [SKIP], 214 'test-run-wasm-js/Run_JSSelect_0': [SKIP], 215 'test-run-wasm-js/Run_JSSelect_1': [SKIP], 216 'test-run-wasm-js/Run_JSSelect_2': [SKIP], 217 'test-run-wasm-js/Run_JSSelect_3': [SKIP], 218 'test-run-wasm-js/Run_JSSelect_4': [SKIP], 219 'test-run-wasm-js/Run_JSSelect_5': [SKIP], 220 'test-run-wasm-js/Run_JSSelect_6': [SKIP], [all …]
|
/external/v8/src/wasm/ |
D | wasm-debug.cc | 15 using namespace v8::internal::wasm; 35 wasm::GetWasmBytes(debug_info->wasm_object()); in GetOrCreateFunctionOffsetTable() 38 function_offsets = wasm::DecodeWasmFunctionOffsets(bytes_start, bytes_end); in GetOrCreateFunctionOffsetTable() 71 wasm::GetWasmBytes(debug_info->wasm_object()); in GetFunctionBytes() 81 Handle<WasmDebugInfo> WasmDebugInfo::New(Handle<JSObject> wasm) { in New() argument 82 Isolate *isolate = wasm->GetIsolate(); in New() 86 arr->set(kWasmDebugInfoWasmObj, *wasm); in New() 88 Handle<SeqOneByteString> wasm_bytes(GetWasmBytes(*wasm), isolate); in New()
|
D | wasm-js.cc | 27 using v8::internal::wasm::ErrorThrower; 88 internal::wasm::ModuleResult result = in VerifyModule() 89 internal::wasm::DecodeWasmModule(isolate, &zone, buffer.start, buffer.end, in VerifyModule() 90 true, internal::wasm::kWasmOrigin); in VerifyModule() 111 internal::wasm::FunctionResult result; in VerifyFunction() 116 result = internal::wasm::DecodeWasmFunction(isolate, &zone, nullptr, in VerifyFunction() 127 v8::internal::wasm::ZoneBuffer* TranslateAsmModule( in TranslateAsmModule() 157 v8::internal::wasm::AsmWasmBuilder builder(info->isolate(), info->zone(), in TranslateAsmModule() 166 internal::wasm::ModuleOrigin origin = i::wasm::kWasmOrigin) { in InstantiateModuleCommon() 172 internal::wasm::ModuleResult result = internal::wasm::DecodeWasmModule( in InstantiateModuleCommon() [all …]
|
D | wasm-debug.h | 13 namespace wasm { 17 static Handle<WasmDebugInfo> New(Handle<JSObject> wasm);
|
D | wasm-module.cc | 24 namespace wasm { namespace 356 wasm::WasmName module_name, in ReportFFIError() 357 wasm::WasmName function_name) { in ReportFFIError() 372 uint32_t index, wasm::WasmName module_name, wasm::WasmName function_name) { in LookupFunction() 969 Handle<Object> GetWasmFunctionNameOrNull(Isolate* isolate, Handle<Object> wasm, in GetWasmFunctionNameOrNull() argument 971 if (!wasm->IsUndefined(isolate)) { in GetWasmFunctionNameOrNull() 973 ByteArray::cast(Handle<JSObject>::cast(wasm)->GetInternalField( in GetWasmFunctionNameOrNull() 987 Handle<String> GetWasmFunctionName(Isolate* isolate, Handle<Object> wasm, in GetWasmFunctionName() argument 990 GetWasmFunctionNameOrNull(isolate, wasm, func_index); in GetWasmFunctionName() 1017 SeqOneByteString* GetWasmBytes(JSObject* wasm) { in GetWasmBytes() argument [all …]
|
D | wasm-module.h | 21 namespace wasm { 341 Handle<String> GetWasmFunctionName(Isolate* isolate, Handle<Object> wasm, 347 Handle<Object> GetWasmFunctionNameOrNull(Isolate* isolate, Handle<Object> wasm, 351 SeqOneByteString* GetWasmBytes(JSObject* wasm); 355 WasmDebugInfo* GetDebugInfo(JSObject* wasm);
|
/external/llvm/test/CodeGen/WebAssembly/ |
D | memory-addr64.ll | 8 declare i64 @llvm.wasm.memory.size.i64() nounwind readonly 9 declare void @llvm.wasm.grow.memory.i64(i64) nounwind 16 %a = call i64 @llvm.wasm.memory.size.i64() 25 call void @llvm.wasm.grow.memory.i64(i64 %n)
|
D | memory-addr32.ll | 8 declare i32 @llvm.wasm.memory.size.i32() nounwind readonly 9 declare void @llvm.wasm.grow.memory.i32(i32) nounwind 16 %a = call i32 @llvm.wasm.memory.size.i32() 25 call void @llvm.wasm.grow.memory.i32(i32 %n)
|
/external/v8/test/unittests/ |
D | BUILD.gn | 112 "wasm/asm-types-unittest.cc", 113 "wasm/ast-decoder-unittest.cc", 114 "wasm/control-transfer-unittest.cc", 115 "wasm/decoder-unittest.cc", 116 "wasm/encoder-unittest.cc", 117 "wasm/leb-helper-unittest.cc", 118 "wasm/loop-assignment-analysis-unittest.cc", 119 "wasm/module-decoder-unittest.cc", 120 "wasm/switch-logic-unittest.cc", 121 "wasm/wasm-macro-gen-unittest.cc",
|
D | unittests.gyp | 127 'wasm/asm-types-unittest.cc', 128 'wasm/ast-decoder-unittest.cc', 129 'wasm/control-transfer-unittest.cc', 130 'wasm/decoder-unittest.cc', 131 'wasm/encoder-unittest.cc', 132 'wasm/leb-helper-unittest.cc', 133 'wasm/loop-assignment-analysis-unittest.cc', 134 'wasm/module-decoder-unittest.cc', 135 'wasm/switch-logic-unittest.cc', 136 'wasm/wasm-macro-gen-unittest.cc',
|
/external/llvm/include/llvm/IR/ |
D | IntrinsicsWebAssembly.td | 1 //===- IntrinsicsWebAssembly.td - Defines wasm intrinsics --*- tablegen -*-===// 15 let TargetPrefix = "wasm" in { // All intrinsics start with "llvm.wasm.".
|
/external/v8/ |
D | Android.v8common.mk | 139 src/compiler/wasm-compiler.cc \ 140 src/compiler/wasm-linkage.cc \ 357 src/wasm/asm-types.cc \ 358 src/wasm/asm-wasm-builder.cc \ 359 src/wasm/ast-decoder.cc \ 360 src/wasm/encoder.cc \ 361 src/wasm/module-decoder.cc \ 362 src/wasm/switch-logic.cc \ 363 src/wasm/wasm-debug.cc \ 364 src/wasm/wasm-external-refs.cc \ [all …]
|
D | BUILD.gn | 1012 "src/compiler/wasm-compiler.cc", 1013 "src/compiler/wasm-compiler.h", 1014 "src/compiler/wasm-linkage.cc", 1487 "src/wasm/asm-types.cc", 1488 "src/wasm/asm-types.h", 1489 "src/wasm/asm-wasm-builder.cc", 1490 "src/wasm/asm-wasm-builder.h", 1491 "src/wasm/ast-decoder.cc", 1492 "src/wasm/ast-decoder.h", 1493 "src/wasm/decoder.h", [all …]
|
/external/v8/src/ |
D | v8.gyp | 679 'compiler/wasm-compiler.cc', 680 'compiler/wasm-compiler.h', 681 'compiler/wasm-linkage.cc', 1161 'wasm/asm-types.cc', 1162 'wasm/asm-types.h', 1163 'wasm/asm-wasm-builder.cc', 1164 'wasm/asm-wasm-builder.h', 1165 'wasm/ast-decoder.cc', 1166 'wasm/ast-decoder.h', 1167 'wasm/decoder.h', [all …]
|
D | assembler.cc | 1129 Redirect(isolate, FUNCTION_ADDR(wasm::f32_trunc_wrapper))); in wasm_f32_trunc() 1133 Redirect(isolate, FUNCTION_ADDR(wasm::f32_floor_wrapper))); in wasm_f32_floor() 1137 Redirect(isolate, FUNCTION_ADDR(wasm::f32_ceil_wrapper))); in wasm_f32_ceil() 1141 Redirect(isolate, FUNCTION_ADDR(wasm::f32_nearest_int_wrapper))); in wasm_f32_nearest_int() 1146 Redirect(isolate, FUNCTION_ADDR(wasm::f64_trunc_wrapper))); in wasm_f64_trunc() 1151 Redirect(isolate, FUNCTION_ADDR(wasm::f64_floor_wrapper))); in wasm_f64_floor() 1156 Redirect(isolate, FUNCTION_ADDR(wasm::f64_ceil_wrapper))); in wasm_f64_ceil() 1161 Redirect(isolate, FUNCTION_ADDR(wasm::f64_nearest_int_wrapper))); in wasm_f64_nearest_int() 1166 Redirect(isolate, FUNCTION_ADDR(wasm::int64_to_float32_wrapper))); in wasm_int64_to_float32() 1171 Redirect(isolate, FUNCTION_ADDR(wasm::uint64_to_float32_wrapper))); in wasm_uint64_to_float32() [all …]
|
/external/v8/test/mjsunit/ |
D | mjsunit.status | 259 'wasm/asm-wasm': [PASS, ['arch in [arm, arm64, mips, mipsel, mips64, mips64el]', SKIP]], 260 # TODO(branelson): Figure out why ignition + asm-wasm-stdlib fails. 261 …'wasm/asm-wasm-stdlib': [PASS, ['arch in [arm, arm64, mips, mipsel, mips64, mips64el] or ignition … 262 …'wasm/asm-wasm-literals': [PASS, ['arch in [arm, arm64, mips, mipsel, mips64, mips64el] or ignitio… 263 'wasm/asm-wasm-copy': [PASS, ['arch in [arm, arm64, mips, mipsel, mips64, mips64el]', SKIP]], 264 'wasm/asm-wasm-deopt': [PASS, ['arch in [arm, arm64, mips, mipsel, mips64, mips64el]', SKIP]], 265 'wasm/asm-wasm-switch': [PASS, ['arch in [arm, arm64, mips, mipsel, mips64, mips64el]', SKIP]], 267 # TODO(branelson): Figure out why ignition + asm->wasm fails embenchen. 268 'wasm/embenchen/*': [PASS, ['arch == arm64', SKIP], ['ignition == True', SKIP]], 413 'wasm/embenchen/fasta': [PASS, FAST_VARIANTS], [all …]
|