/external/v8/src/debug/wasm/gdb-server/ |
D | wasm-module-debug.cc | 63 Vector<const uint8_t> wire_bytes = native_module->wire_bytes(); in ReturnPc() local 64 uint8_t opcode = wire_bytes[pc]; in ReturnPc() 70 return pc + GetLEB128Size(wire_bytes, pc); in ReturnPc() 76 pc += GetLEB128Size(wire_bytes, pc); in ReturnPc() 78 return pc + GetLEB128Size(wire_bytes, pc); in ReturnPc() 315 const wasm::ModuleWireBytes wire_bytes(native_module->wire_bytes()); in GetWasmModuleBytes() local 317 if (offset < wire_bytes.length()) { in GetWasmModuleBytes() 318 uint32_t module_size = static_cast<uint32_t>(wire_bytes.length()); in GetWasmModuleBytes() 320 memcpy(buffer, wire_bytes.start() + offset, bytes_read); in GetWasmModuleBytes()
|
/external/v8/src/wasm/ |
D | wasm-engine.cc | 159 ModuleOrigin origin, Vector<const uint8_t> wire_bytes) { in MaybeGetNativeModule() argument 162 size_t prefix_hash = PrefixHash(wire_bytes); in MaybeGetNativeModule() 163 NativeModuleCache::Key key{prefix_hash, wire_bytes}; in MaybeGetNativeModule() 183 DCHECK_EQ(shared_native_module->wire_bytes(), wire_bytes); in MaybeGetNativeModule() 217 Vector<const uint8_t> wire_bytes = native_module->wire_bytes(); in Update() local 218 DCHECK(!wire_bytes.empty()); in Update() 219 size_t prefix_hash = PrefixHash(native_module->wire_bytes()); in Update() 222 const Key key{prefix_hash, wire_bytes}; in Update() 228 DCHECK_EQ(conflicting_module->wire_bytes(), wire_bytes); in Update() 250 if (native_module->wire_bytes().empty()) return; in Erase() [all …]
|
D | wasm-debug.cc | 110 ModuleWireBytes wire_bytes{native_module->wire_bytes()}; in GetLocalNameString() local 112 DCHECK(wire_bytes.BoundsCheck(name_ref)); in GetLocalNameString() 113 WasmName name = wire_bytes.GetNameOrNull(name_ref); in GetLocalNameString() 356 DecodeLocalNames(native_module_->wire_bytes())); in GetLocalName() 385 Vector<const uint8_t> wire_bytes = native_module_->wire_bytes(); in RecompileLiftoffWithBreakpoints() local 387 wire_bytes.begin() + function->code.offset(), in RecompileLiftoffWithBreakpoints() 388 wire_bytes.begin() + function->code.end_offset()}; in RecompileLiftoffWithBreakpoints() 657 ModuleWireBytes wire_bytes{native_module_->wire_bytes()}; in GetDebugSideTable() local 658 Vector<const byte> function_bytes = wire_bytes.GetFunctionBytes(function); in GetDebugSideTable() 800 uint8_t opcode = native_module->wire_bytes()[position]; in IsAtReturn() [all …]
|
D | wasm-module.cc | 34 const ModuleWireBytes& wire_bytes, uint32_t function_index, in LookupFunctionName() argument 39 DecodeFunctionNames(wire_bytes.start(), wire_bytes.end(), in LookupFunctionName() 546 Vector<const uint8_t> wire_bytes = in GetCustomSections() local 547 module_object->native_module()->wire_bytes(); in GetCustomSections() 549 DecodeCustomSections(wire_bytes.begin(), wire_bytes.end()); in GetCustomSections() 572 wire_bytes.begin() + section.payload.offset(), in GetCustomSections()
|
D | sync-streaming-decoder.cc | 62 ModuleWireBytes wire_bytes(bytes.get(), bytes.get() + buffer_size_); in Finish() local 66 wire_bytes); in Finish()
|
D | function-compiler.cc | 246 ModuleWireBytes wire_bytes(native_module->wire_bytes()); in CompileWasmFunction() local 248 wire_bytes.start() + function->code.offset(), in CompileWasmFunction() 249 wire_bytes.start() + function->code.end_offset()}; in CompileWasmFunction()
|
D | wasm-engine.h | 96 ModuleOrigin origin, Vector<const uint8_t> wire_bytes); 111 static size_t PrefixHash(Vector<const uint8_t> wire_bytes); 280 ModuleOrigin origin, Vector<const uint8_t> wire_bytes, Isolate* isolate);
|
D | module-compiler.cc | 1008 void SetCompileError(ErrorThrower* thrower, ModuleWireBytes wire_bytes, in SetCompileError() argument 1011 WasmName name = wire_bytes.GetNameOrNull(func, module); in SetCompileError() 1062 ModuleWireBytes wire_bytes{native_module->wire_bytes()}; in ValidateSequentially() local 1064 Vector<const uint8_t> code = wire_bytes.GetFunctionBytes(func); in ValidateSequentially() 1068 SetCompileError(thrower, wire_bytes, func, module, result.error()); in ValidateSequentially() 1118 SetCompileError(&thrower, ModuleWireBytes(native_module->wire_bytes()), in CompileLazy() 1233 std::shared_ptr<WireBytesStorage> wire_bytes; in ExecuteCompilationUnits() local 1252 wire_bytes = compilation_state->GetWireBytesStorage(); in ExecuteCompilationUnits() 1269 wasm_engine, &env.value(), wire_bytes, counters, &detected_features); in ExecuteCompilationUnits() 1373 ModuleWireBytes wire_bytes(native_module->wire_bytes()); in InitializeCompilationUnits() local [all …]
|
D | wasm-serialization.h | 54 Isolate*, Vector<const byte> data, Vector<const byte> wire_bytes,
|
D | wasm-code-manager.h | 592 Vector<const uint8_t> wire_bytes() const { in wire_bytes() function 609 auto wire_bytes = std::atomic_load(&wire_bytes_); in HasWireBytes() local 610 return wire_bytes && !wire_bytes->empty(); in HasWireBytes() 612 void SetWireBytes(OwnedVector<const uint8_t> wire_bytes);
|
D | wasm-objects.cc | 193 Vector<const uint8_t> wire_bytes = in ExtractUtf8StringFromModuleBytes() local 194 module_object->native_module()->wire_bytes(); in ExtractUtf8StringFromModuleBytes() 195 return ExtractUtf8StringFromModuleBytes(isolate, wire_bytes, ref, in ExtractUtf8StringFromModuleBytes() 200 Isolate* isolate, Vector<const uint8_t> wire_bytes, wasm::WireBytesRef ref, in ExtractUtf8StringFromModuleBytes() argument 203 wire_bytes.SubVector(ref.offset(), ref.end_offset()); in ExtractUtf8StringFromModuleBytes() 228 wasm::ModuleWireBytes(module_object->native_module()->wire_bytes()), in GetFunctionNameOrNull() 252 wasm::ModuleWireBytes wire_bytes(native_module()->wire_bytes()); in GetRawFunctionName() local 255 wire_bytes, func_index, VectorOf(module()->export_table)); in GetRawFunctionName() 256 wasm::WasmName name = wire_bytes.GetNameOrNull(name_ref); in GetRawFunctionName() 1308 auto wire_bytes = module_object->native_module()->wire_bytes(); in InitDataSegmentArrays() local [all …]
|
D | streaming-decoder.h | 62 Vector<const uint8_t> wire_bytes) = 0;
|
D | streaming-decoder.cc | 267 Vector<const uint8_t> wire_bytes = VectorOf(wire_bytes_for_deserializing_); in Finish() local 269 if (processor_->Deserialize(compiled_module_bytes_, wire_bytes)) return; in Finish() 274 OnBytesReceived(wire_bytes); in Finish()
|
D | wasm-code-manager.cc | 223 ModuleWireBytes wire_bytes(native_module()->wire_bytes()); in LogCode() local 226 wire_bytes, index(), in LogCode() 228 WasmName name = wire_bytes.GetNameOrNull(name_ref); in LogCode() 237 wire_bytes.GetNameOrNull(debug_symbols.external_url); in LogCode() 1421 std::shared_ptr<OwnedVector<const uint8_t>> wire_bytes) in NativeModuleWireBytesStorage() argument 1422 : wire_bytes_(std::move(wire_bytes)) {} in NativeModuleWireBytesStorage() 1435 void NativeModule::SetWireBytes(OwnedVector<const uint8_t> wire_bytes) { in SetWireBytes() argument 1437 std::make_shared<OwnedVector<const uint8_t>>(std::move(wire_bytes)); in SetWireBytes()
|
D | c-api.cc | 114 const i::Vector<const uint8_t>& wire_bytes) { in GetNameFromWireBytes() argument 115 DCHECK_LE(ref.offset(), wire_bytes.length()); in GetNameFromWireBytes() 116 DCHECK_LE(ref.end_offset(), wire_bytes.length()); in GetNameFromWireBytes() 119 std::memcpy(name.get(), wire_bytes.begin() + ref.offset(), ref.length()); in GetNameFromWireBytes() 997 const i::Vector<const uint8_t> wire_bytes = native_module->wire_bytes(); in imports() local 1003 Name module_name = GetNameFromWireBytes(imp.module_name, wire_bytes); in imports() 1004 Name name = GetNameFromWireBytes(imp.field_name, wire_bytes); in imports() 1015 const i::Vector<const uint8_t> wire_bytes = native_module->wire_bytes(); in ExportsImpl() local 1021 Name name = GetNameFromWireBytes(exp.name, wire_bytes); in ExportsImpl() 1035 i::Vector<const uint8_t> wire_bytes = native_module->wire_bytes(); in serialize() local [all …]
|
D | module-instantiate.cc | 858 Vector<const uint8_t> wire_bytes = in LoadDataSegments() local 859 module_object_->native_module()->wire_bytes(); in LoadDataSegments() 877 wire_bytes.begin() + segment.source.offset(), size); in LoadDataSegments() 887 const byte* src = wire_bytes.begin() + segment.source.offset(); in LoadDataSegments() 978 Vector<const uint8_t> wire_bytes = in SanitizeImports() local 979 module_object_->native_module()->wire_bytes(); in SanitizeImports() 985 isolate_, wire_bytes, import.module_name, kInternalize); in SanitizeImports() 989 isolate_, wire_bytes, import.field_name, kInternalize); in SanitizeImports()
|
D | wasm-serialization.cc | 615 ModuleWireBytes wire_bytes(wire_bytes_vec); in DeserializeNativeModule() local 620 enabled_features, wire_bytes.start(), wire_bytes.end(), false, in DeserializeNativeModule()
|
D | module-compiler.h | 45 std::shared_ptr<const WasmModule> module, const ModuleWireBytes& wire_bytes,
|
D | module-decoder.h | 154 const WasmFeatures& enabled, Zone* zone, const ModuleWireBytes& wire_bytes,
|
D | module-decoder.cc | 1263 const ModuleWireBytes& wire_bytes, in DecodeSingleFunction() argument 1273 VerifyFunctionBody(zone->allocator(), 0, wire_bytes, module, in DecodeSingleFunction() 1433 const ModuleWireBytes& wire_bytes, in VerifyFunctionBody() argument 1436 wire_bytes.GetNameOrNull(function, module)); in VerifyFunctionBody() 2283 const WasmFeatures& enabled, Zone* zone, const ModuleWireBytes& wire_bytes, in DecodeWasmFunctionForTesting() argument 2299 return decoder.DecodeSingleFunction(zone, wire_bytes, module, in DecodeWasmFunctionForTesting()
|
D | wasm-module.h | 185 WireBytesRef LookupFunctionName(const ModuleWireBytes& wire_bytes,
|
D | wasm-js.cc | 2363 instance->module_object().native_module()->wire_bytes()); in GetLocalNames() 2404 wasm::ModuleWireBytes wire_bytes( in GetFunctionNames() local 2405 instance->module_object().native_module()->wire_bytes()); in GetFunctionNames() 2412 wire_bytes, function.func_index, VectorOf(module->export_table)); in GetFunctionNames() 2413 DCHECK(wire_bytes.BoundsCheck(name_ref)); in GetFunctionNames() 2414 Vector<const char> name_vec = wire_bytes.GetNameOrNull(name_ref); in GetFunctionNames()
|
/external/v8/src/runtime/ |
D | runtime-test.cc | 1011 wasm::ModuleWireBytes wire_bytes = in RUNTIME_FUNCTION() local 1012 wasm::ModuleWireBytes(frame->native_module()->wire_bytes()); in RUNTIME_FUNCTION() 1015 wire_bytes, func_index, VectorOf(module->export_table)); in RUNTIME_FUNCTION() 1016 wasm::WasmName name = wire_bytes.GetNameOrNull(name_ref); in RUNTIME_FUNCTION() 1405 CONVERT_ARG_HANDLE_CHECKED(JSTypedArray, wire_bytes, 1); in RUNTIME_FUNCTION() 1407 CHECK(!wire_bytes->WasDetached()); in RUNTIME_FUNCTION() 1409 Handle<JSArrayBuffer> wire_bytes_buffer = wire_bytes->GetBuffer(); in RUNTIME_FUNCTION() 1412 wire_bytes->byte_offset(), in RUNTIME_FUNCTION() 1413 wire_bytes->byte_length()}; in RUNTIME_FUNCTION()
|
/external/v8/src/api/ |
D | api.cc | 7343 i::Vector<const uint8_t> bytes_vec = native_module_->wire_bytes(); in GetWireBytesRef() 9899 internal::wasm::ModuleWireBytes wire_bytes( in ExternalSymbolsURL() local 9900 script->wasm_native_module()->wire_bytes()); in ExternalSymbolsURL() 9902 wire_bytes.GetNameOrNull(symbols.external_url); in ExternalSymbolsURL() 9928 i::Vector<const uint8_t> wire_bytes = in Bytecode() local 9929 script->wasm_native_module()->wire_bytes(); in Bytecode() 9930 return {wire_bytes.begin(), wire_bytes.size()}; in Bytecode() 9969 i::wasm::ModuleWireBytes wire_bytes(native_module->wire_bytes()); in GetFunctionHash() local 9970 i::Vector<const i::byte> function_bytes = wire_bytes.GetFunctionBytes(&func); in GetFunctionHash()
|