Lines Matching full:wasm
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()
150 // Find the caller wasm frame. in RUNTIME_FUNCTION()
151 wasm::WasmCodeRefScope wasm_code_ref_scope; in RUNTIME_FUNCTION()
159 const wasm::WasmModule* module = frame->wasm_instance().module(); in RUNTIME_FUNCTION()
160 wasm::ModuleWireBytes wire_bytes = in RUNTIME_FUNCTION()
161 wasm::ModuleWireBytes(frame->native_module()->wire_bytes()); in RUNTIME_FUNCTION()
162 wasm::WireBytesRef name_ref = in RUNTIME_FUNCTION()
164 wasm::WasmName name = wire_bytes.GetNameOrNull(name_ref); in RUNTIME_FUNCTION()
166 wasm::WasmCode* code = frame->wasm_code(); in RUNTIME_FUNCTION()
170 PrintF("wasm-function[%d] {\n", func_index); in RUNTIME_FUNCTION()
172 PrintF("wasm-function[%d] \"%.*s\" {\n", func_index, name.length(), in RUNTIME_FUNCTION()
187 // Find the caller wasm frame. in RUNTIME_FUNCTION()
188 wasm::WasmCodeRefScope wasm_code_ref_scope; in RUNTIME_FUNCTION()
194 const wasm::FunctionSig* sig = in RUNTIME_FUNCTION()
199 wasm::ValueType return_type = sig->GetReturn(0); in RUNTIME_FUNCTION()
201 case wasm::kI32: { in RUNTIME_FUNCTION()
206 case wasm::kI64: { in RUNTIME_FUNCTION()
211 case wasm::kF32: { in RUNTIME_FUNCTION()
216 case wasm::kF64: { in RUNTIME_FUNCTION()
226 // TODO(wasm) Handle multiple return values. in RUNTIME_FUNCTION()
327 wasm::NativeModule* native_module = module_obj->native_module(); in RUNTIME_FUNCTION()
330 wasm::WasmSerializer wasm_serializer(native_module); in RUNTIME_FUNCTION()
344 // Take an array buffer and attempt to reconstruct a compiled wasm module.
363 // Note that {wasm::DeserializeNativeModule} will allocate. We assume the in RUNTIME_FUNCTION()
366 wasm::DeserializeNativeModule(isolate, buffer_vec, wire_bytes_vec, {}); in RUNTIME_FUNCTION()
408 wasm::MemoryTracingInfo* info = in RUNTIME_FUNCTION()
409 reinterpret_cast<wasm::MemoryTracingInfo*>(info_addr.ptr()); in RUNTIME_FUNCTION()
411 // Find the caller wasm frame. in RUNTIME_FUNCTION()
412 wasm::WasmCodeRefScope wasm_code_ref_scope; in RUNTIME_FUNCTION()
422 wasm::ExecutionTier tier = frame->wasm_code()->is_liftoff() in RUNTIME_FUNCTION()
423 ? wasm::ExecutionTier::kLiftoff in RUNTIME_FUNCTION()
424 : wasm::ExecutionTier::kTurbofan; in RUNTIME_FUNCTION()
425 wasm::TraceMemoryOperation(tier, info, func_index, pos, mem_start); in RUNTIME_FUNCTION()
435 wasm::GetWasmEngine()->CompileFunction(isolate, native_module, function_index, in RUNTIME_FUNCTION()
436 wasm::ExecutionTier::kTurbofan); in RUNTIME_FUNCTION()
444 wasm::GetWasmEngine()->TierDownAllModulesPerIsolate(isolate); in RUNTIME_FUNCTION()
451 wasm::GetWasmEngine()->TierUpAllModulesPerIsolate(isolate); in RUNTIME_FUNCTION()
462 wasm::NativeModule* native_module = in RUNTIME_FUNCTION()
465 wasm::WasmCodeRefScope code_ref_scope; in RUNTIME_FUNCTION()
466 wasm::WasmCode* code = native_module->GetCode(func_index); in RUNTIME_FUNCTION()
477 wasm::NativeModule* native_module = in RUNTIME_FUNCTION()
480 wasm::WasmCodeRefScope code_ref_scope; in RUNTIME_FUNCTION()
481 wasm::WasmCode* code = native_module->GetCode(func_index); in RUNTIME_FUNCTION()