Lines Matching full:wasm
24 #include "src/wasm/wasm-engine.h"
25 #include "src/wasm/wasm-js.h"
26 #include "src/wasm/wasm-limits.h"
27 #include "src/wasm/wasm-module-builder.h"
28 #include "src/wasm/wasm-objects-inl.h"
29 #include "src/wasm/wasm-result.h"
55 wasm::AsmJsParser::StdlibSet members, in AreStdlibMembersValid()
57 if (members.Contains(wasm::AsmJsParser::StandardMember::kInfinity)) { in AreStdlibMembersValid()
58 members.Remove(wasm::AsmJsParser::StandardMember::kInfinity); in AreStdlibMembersValid()
63 if (members.Contains(wasm::AsmJsParser::StandardMember::kNaN)) { in AreStdlibMembersValid()
64 members.Remove(wasm::AsmJsParser::StandardMember::kNaN); in AreStdlibMembersValid()
70 if (members.Contains(wasm::AsmJsParser::StandardMember::kMath##FName)) { \ in AreStdlibMembersValid()
71 members.Remove(wasm::AsmJsParser::StandardMember::kMath##FName); \ in AreStdlibMembersValid()
87 if (members.Contains(wasm::AsmJsParser::StandardMember::kMath##cname)) { \ in AreStdlibMembersValid()
88 members.Remove(wasm::AsmJsParser::StandardMember::kMath##cname); \ in AreStdlibMembersValid()
97 if (members.Contains(wasm::AsmJsParser::StandardMember::k##FName)) { \ in AreStdlibMembersValid()
98 members.Remove(wasm::AsmJsParser::StandardMember::k##FName); \ in AreStdlibMembersValid()
141 text, "success, asm->wasm: %0.3f ms, compile: %0.3f ms, %" PRIuS " bytes", in ReportCompilationSuccess()
216 wasm::ZoneBuffer* module_;
217 wasm::ZoneBuffer* asm_offsets_;
218 wasm::AsmJsParser::StdlibSet stdlib_uses_;
244 wasm::AsmJsParser parser(&translate_zone, stack_limit(), stream); in ExecuteJobImpl()
252 module_ = new (compile_zone) wasm::ZoneBuffer(compile_zone); in ExecuteJobImpl()
254 asm_offsets_ = new (compile_zone) wasm::ZoneBuffer(compile_zone); in ExecuteJobImpl()
283 wasm::ErrorThrower thrower(isolate, "AsmJs::Compile"); in FinalizeJobImpl()
288 wasm::ModuleWireBytes(module_->begin(), module_->end()), in FinalizeJobImpl()
338 if (size > wasm::kV8MaxWasmMemoryBytes) return false; in IsValidAsmjsMemorySize()
340 if (size > (FLAG_wasm_max_mem_pages * uint64_t{wasm::kWasmPageSize})) { in IsValidAsmjsMemorySize()
374 wasm::AsmJsParser::StdlibSet stdlib_uses(uses_bitset->value_as_bits()); in InstantiateAsmWasm()
404 wasm::ErrorThrower thrower(isolate, "AsmJs::Instantiate"); in InstantiateAsmWasm()
414 SNPrintF(error_reason, "Internal wasm failure: %s", thrower.error_msg()); in InstantiateAsmWasm()
417 ReportInstantiationFailure(script, position, "Internal wasm failure"); in InstantiateAsmWasm()