Home
last modified time | relevance | path

Searched refs:wire_bytes (Results 1 – 23 of 23) sorted by relevance

/external/v8/src/wasm/
Dwasm-module.cc39 WireBytesRef WasmModule::LookupFunctionName(const ModuleWireBytes& wire_bytes, in LookupFunctionName() argument
43 DecodeFunctionNames(wire_bytes.start(), wire_bytes.end(), in LookupFunctionName()
254 Vector<const uint8_t> wire_bytes = in GetCustomSections() local
255 module_object->native_module()->wire_bytes(); in GetCustomSections()
257 DecodeCustomSections(wire_bytes.start(), wire_bytes.end()); in GetCustomSections()
281 memcpy(memory, wire_bytes.start() + section.payload.offset(), in GetCustomSections()
302 Vector<const uint8_t> wire_bytes = in DecodeLocalNames() local
303 module_object->native_module()->wire_bytes(); in DecodeLocalNames()
305 DecodeLocalNames(wire_bytes.start(), wire_bytes.end(), &decoded_locals); in DecodeLocalNames()
Dfunction-compiler.cc151 ModuleWireBytes wire_bytes(native_module->wire_bytes()); in CompileWasmFunction() local
153 wire_bytes.start() + function->code.offset(), in CompileWasmFunction()
154 wire_bytes.start() + function->code.end_offset()}; in CompileWasmFunction()
158 wire_bytes.GetNameOrNull(function, env->module), in CompileWasmFunction()
Dmodule-compiler.cc355 ModuleWireBytes wire_bytes(native_module->wire_bytes()); in LazyCompileFunction() local
357 module_env->module->LookupFunctionName(wire_bytes, func_index); in LazyCompileFunction()
358 func_name = wire_bytes.GetName(name_ref); in LazyCompileFunction()
364 const uint8_t* module_start = native_module->wire_bytes().start(); in LazyCompileFunction()
537 ModuleWireBytes wire_bytes(native_module->wire_bytes()); in InitializeCompilationUnits() local
545 Vector<const uint8_t> bytes(wire_bytes.start() + func->code.offset(), in InitializeCompilationUnits()
548 WasmName name = wire_bytes.GetName(func, module); in InitializeCompilationUnits()
672 ModuleWireBytes wire_bytes(native_module->wire_bytes()); in CompileSequentially() local
683 TruncatedUserString<> name(wire_bytes.GetName(&func, module)); in CompileSequentially()
696 ModuleWireBytes wire_bytes(native_module->wire_bytes()); in ValidateSequentially() local
[all …]
Dwasm-objects.cc155 const byte* module_start = native_module->wire_bytes().start(); in IsBreakablePosition()
183 OwnedVector<const uint8_t> wire_bytes, Handle<Script> script, in New() argument
195 native_module->set_wire_bytes(std::move(wire_bytes)); in New()
525 Vector<const byte> wire_bytes = native_module()->wire_bytes(); in DisassembleFunction() local
530 PrintWasmText(module(), wire_bytes, static_cast<uint32_t>(func_index), in DisassembleFunction()
583 const byte* module_start = native_module()->wire_bytes().start(); in GetPossibleBreakpoints()
640 Vector<const uint8_t> wire_bytes = in ExtractUtf8StringFromModuleBytes() local
641 module_object->native_module()->wire_bytes(); in ExtractUtf8StringFromModuleBytes()
642 return ExtractUtf8StringFromModuleBytes(isolate, wire_bytes, ref); in ExtractUtf8StringFromModuleBytes()
646 Isolate* isolate, Vector<const uint8_t> wire_bytes, in ExtractUtf8StringFromModuleBytes() argument
[all …]
Dwasm-text.cc35 void PrintWasmText(const WasmModule* module, const ModuleWireBytes& wire_bytes, in PrintWasmText() argument
49 WasmName fun_name = wire_bytes.GetNameOrNull(fun, module); in PrintWasmText()
70 Vector<const byte> func_bytes = wire_bytes.GetFunctionBytes(fun); in PrintWasmText()
Dmodule-compiler.h53 std::shared_ptr<const WasmModule> module, const ModuleWireBytes& wire_bytes,
66 Isolate* isolate, const ModuleWireBytes& wire_bytes);
Dwasm-text.h30 const WasmModule *module, const ModuleWireBytes &wire_bytes,
Dwasm-engine.cc191 Vector<const byte> wire_bytes = shared_module->wire_bytes(); in ImportNativeModule() local
192 Handle<Script> script = CreateWasmScript(isolate, wire_bytes); in ImportNativeModule()
Dwasm-serialization.cc541 Isolate* isolate, Vector<const byte> data, Vector<const byte> wire_bytes) { in DeserializeNativeModule() argument
551 enabled_features, wire_bytes.start(), wire_bytes.end(), false, in DeserializeNativeModule()
556 Handle<Script> script = CreateWasmScript(isolate, wire_bytes); in DeserializeNativeModule()
565 OwnedVector<uint8_t> wire_bytes_copy = OwnedVector<uint8_t>::Of(wire_bytes); in DeserializeNativeModule()
Dwasm-serialization.h36 Isolate* isolate, Vector<const byte> data, Vector<const byte> wire_bytes);
Dwasm-code-manager.h330 Vector<const byte> wire_bytes() const { return wire_bytes_.as_vector(); } in wire_bytes() function
331 void set_wire_bytes(OwnedVector<const byte> wire_bytes) { in set_wire_bytes() argument
332 wire_bytes_ = std::move(wire_bytes); in set_wire_bytes()
Dwasm-interpreter.h167 const ModuleWireBytes& wire_bytes,
Dmodule-decoder.h76 const WasmFeatures& enabled, Zone* zone, const ModuleWireBytes& wire_bytes,
Dmodule-decoder.cc892 const ModuleWireBytes& wire_bytes, in DecodeSingleFunction() argument
900 VerifyFunctionBody(zone->allocator(), 0, wire_bytes, module, in DecodeSingleFunction()
1039 const ModuleWireBytes& wire_bytes, in VerifyFunctionBody() argument
1042 wire_bytes.GetNameOrNull(function, module)); in VerifyFunctionBody()
1506 const WasmFeatures& enabled, Zone* zone, const ModuleWireBytes& wire_bytes, in DecodeWasmFunctionForTesting() argument
1520 return decoder.DecodeSingleFunction(zone, wire_bytes, module, in DecodeWasmFunctionForTesting()
Dwasm-code-manager.cc144 ModuleWireBytes wire_bytes(native_module()->wire_bytes()); in LogCode() local
148 module_env->module->LookupFunctionName(wire_bytes, index()); in LogCode()
149 WasmName name_vec = wire_bytes.GetName(name_ref); in LogCode()
Dwasm-module.h162 WireBytesRef LookupFunctionName(const ModuleWireBytes& wire_bytes,
Dwasm-objects.h139 OwnedVector<const uint8_t> wire_bytes, Handle<Script> script,
Dwasm-interpreter.cc3083 const ModuleWireBytes& wire_bytes, in WasmInterpreterInternals() argument
3085 : module_bytes_(wire_bytes.start(), wire_bytes.end(), zone), in WasmInterpreterInternals()
3114 const ModuleWireBytes& wire_bytes, in WasmInterpreter() argument
3118 &zone_, module, wire_bytes, MakeWeak(isolate, instance_object))) {} in WasmInterpreter()
Dwasm-debug.cc137 return native_module->wire_bytes(); in GetBytes()
/external/v8/src/
Dvalue-serializer.cc896 Vector<const uint8_t> wire_bytes = native_module->wire_bytes(); in WriteWasmModule() local
897 WriteVarint<uint32_t>(static_cast<uint32_t>(wire_bytes.size())); in WriteWasmModule()
899 if (ReserveRawBytes(wire_bytes.size()).To(&destination)) { in WriteWasmModule()
900 memcpy(destination, wire_bytes.start(), wire_bytes.size()); in WriteWasmModule()
1800 Vector<const uint8_t> wire_bytes; in ReadWasmModule() local
1805 !ReadRawBytes(wire_bytes_length).To(&wire_bytes) || in ReadWasmModule()
1814 wasm::DeserializeNativeModule(isolate_, compiled_bytes, wire_bytes); in ReadWasmModule()
1821 wasm::ModuleWireBytes(wire_bytes)); in ReadWasmModule()
Dapi.cc7419 i::Vector<const uint8_t> bytes_vec = obj->native_module()->wire_bytes(); in GetWasmWireBytesRef()
7478 WasmCompiledModule::BufferReference wire_bytes) { in Deserialize() argument
7483 {wire_bytes.start, wire_bytes.size}); in Deserialize()
7494 WasmCompiledModule::BufferReference wire_bytes) { in DeserializeOrCompile() argument
7496 Deserialize(isolate, serialized_module, wire_bytes); in DeserializeOrCompile()
7500 return Compile(isolate, wire_bytes.start, wire_bytes.size); in DeserializeOrCompile()
9474 i::wasm::ModuleWireBytes wire_bytes( in GetFunctionHash() local
9475 module_object->native_module()->wire_bytes()); in GetFunctionHash()
9476 i::Vector<const i::byte> function_bytes = wire_bytes.GetFunctionBytes(&func); in GetFunctionHash()
/external/v8/src/runtime/
Druntime-test.cc932 CONVERT_ARG_HANDLE_CHECKED(JSArrayBuffer, wire_bytes, 1); in RUNTIME_FUNCTION()
941 {reinterpret_cast<uint8_t*>(wire_bytes->backing_store()), in RUNTIME_FUNCTION()
942 static_cast<size_t>(wire_bytes->byte_length()->Number())}); in RUNTIME_FUNCTION()
/external/v8/include/
Dv8.h4442 BufferReference wire_bytes);
4448 BufferReference wire_bytes);