/third_party/node/deps/v8/src/debug/wasm/gdb-server/ |
H A D | wasm-module-debug.cc | 65 base::Vector<const uint8_t> wire_bytes = native_module->wire_bytes(); in ReturnPc() local 66 uint8_t opcode = wire_bytes[pc]; in ReturnPc() 72 return pc + GetLEB128Size(wire_bytes, pc); in ReturnPc() 78 pc += GetLEB128Size(wire_bytes, pc); in ReturnPc() 80 return pc + GetLEB128Size(wire_bytes, pc); in ReturnPc() 345 const wasm::ModuleWireBytes wire_bytes(native_module->wire_bytes()); in GetWasmModuleBytes() 347 if (offset < wire_bytes.length()) { in GetWasmModuleBytes() 348 uint32_t module_size = static_cast<uint32_t>(wire_bytes in GetWasmModuleBytes() [all...] |
/third_party/node/deps/v8/src/wasm/ |
H A D | wasm-engine.cc | 185 ModuleOrigin origin, base::Vector<const uint8_t> wire_bytes) { in MaybeGetNativeModule() 188 size_t prefix_hash = PrefixHash(wire_bytes); in MaybeGetNativeModule() 189 NativeModuleCache::Key key{prefix_hash, wire_bytes}; in MaybeGetNativeModule() 209 DCHECK_EQ(shared_native_module->wire_bytes(), wire_bytes); in MaybeGetNativeModule() 245 base::Vector<const uint8_t> wire_bytes = native_module->wire_bytes(); in Update() 246 DCHECK(!wire_bytes.empty()); in Update() 247 size_t prefix_hash = PrefixHash(native_module->wire_bytes()); in Update() 250 const Key key{prefix_hash, wire_bytes}; in Update() 184 MaybeGetNativeModule( ModuleOrigin origin, base::Vector<const uint8_t> wire_bytes) MaybeGetNativeModule() argument 293 PrefixHash(base::Vector<const uint8_t> wire_bytes) PrefixHash() argument 783 base::Vector<const uint8_t> wire_bytes = native_module->wire_bytes(); CreateWasmScript() local 1196 MaybeGetNativeModule( ModuleOrigin origin, base::Vector<const uint8_t> wire_bytes, Isolate* isolate) MaybeGetNativeModule() argument [all...] |
H A D | function-compiler.cc | 156 ModuleWireBytes wire_bytes(native_module->wire_bytes()); in CompileWasmFunction() 158 wire_bytes.start() + function->code.offset(), in CompileWasmFunction() 159 wire_bytes.start() + function->code.end_offset()}; in CompileWasmFunction()
|
H A D | wasm-module.cc | 35 const ModuleWireBytes& wire_bytes, uint32_t function_index) const { in LookupFunctionName() 39 DecodeFunctionNames(wire_bytes.start(), wire_bytes.end(), in LookupFunctionName() 553 base::Vector<const uint8_t> wire_bytes = in GetCustomSections() local 554 module_object->native_module()->wire_bytes(); in GetCustomSections() 556 DecodeCustomSections(wire_bytes.begin(), wire_bytes.end()); in GetCustomSections() 579 wire_bytes.begin() + section.payload.offset(), in GetCustomSections() 34 LookupFunctionName( const ModuleWireBytes& wire_bytes, uint32_t function_index) const LookupFunctionName() argument
|
H A D | sync-streaming-decoder.cc | 62 ModuleWireBytes wire_bytes(bytes.get(), bytes.get() + buffer_size_); 65 GetWasmEngine()->SyncCompile(isolate_, enabled_, &thrower, wire_bytes);
|
H A D | wasm-engine.h | 103 ModuleOrigin origin, base::Vector<const uint8_t> wire_bytes); 118 static size_t PrefixHash(base::Vector<const uint8_t> wire_bytes); 292 // threads. The {wire_bytes}' underlying array should be valid at least until 295 ModuleOrigin origin, base::Vector<const uint8_t> wire_bytes,
|
H A D | wasm-code-manager.h | 763 base::Vector<const uint8_t> wire_bytes() const { in wire_bytes() function in v8::internal::wasm::final::final 783 auto wire_bytes = std::atomic_load(&wire_bytes_); in HasWireBytes() local 784 return wire_bytes && !wire_bytes->empty(); in HasWireBytes() 786 void SetWireBytes(base::OwnedVector<const uint8_t> wire_bytes);
|
H A D | wasm-serialization.h | 62 base::Vector<const byte> wire_bytes, base::Vector<const char> source_url);
|
H A D | wasm-debug.cc | 197 native_module_->wire_bytes(), NameSectionKindCode::kTypeCode)); in GetTypeName() 206 native_module_->wire_bytes(), NameSectionKindCode::kLocalCode)); in GetLocalName() 215 native_module_->wire_bytes(), NameSectionKindCode::kFieldCode)); in GetFieldName() 275 base::Vector<const uint8_t> wire_bytes = native_module_->wire_bytes(); in RecompileLiftoffWithBreakpoints() local 277 wire_bytes.begin() + function->code.offset(), in RecompileLiftoffWithBreakpoints() 278 wire_bytes.begin() + function->code.end_offset()}; in RecompileLiftoffWithBreakpoints() 722 uint8_t opcode = native_module->wire_bytes()[position]; in IsAtReturn() 884 const byte* module_start = native_module->wire_bytes().begin(); in FindNextBreakablePosition() 1192 const byte* module_start = native_module->wire_bytes() in GetPossibleBreakpoints() [all...] |
H A D | module-compiler.cc | 1071 void SetCompileError(ErrorThrower* thrower, ModuleWireBytes wire_bytes, in SetCompileError() argument 1074 WasmName name = wire_bytes.GetNameOrNull(func, module); in SetCompileError() 1125 ModuleWireBytes wire_bytes{native_module->wire_bytes()}; in ValidateSequentially() 1127 base::Vector<const uint8_t> code = wire_bytes.GetFunctionBytes(func); in ValidateSequentially() 1131 SetCompileError(thrower, wire_bytes, func, module, result.error()); in ValidateSequentially() 1202 SetCompileError(&thrower, ModuleWireBytes(native_module->wire_bytes()), in CompileLazy() 1510 std::shared_ptr<WireBytesStorage> wire_bytes; in ExecuteCompilationUnits() local 1532 wire_bytes = compile_scope.compilation_state()->GetWireBytesStorage(); in ExecuteCompilationUnits() 1549 &env.value(), wire_bytes in ExecuteCompilationUnits() 1902 CompileToNativeModule( Isolate* isolate, const WasmFeatures& enabled, ErrorThrower* thrower, std::shared_ptr<const WasmModule> module, const ModuleWireBytes& wire_bytes, Handle<FixedArray>* export_wrappers_out, int compilation_id, v8::metrics::Recorder::ContextId context_id) CompileToNativeModule() argument 3008 Deserialize( base::Vector<const uint8_t> module_bytes, base::Vector<const uint8_t> wire_bytes) Deserialize() argument [all...] |
H A D | wasm-code-manager.cc | 226 ModuleWireBytes wire_bytes(native_module()->wire_bytes()); in DebugName() 229 module->lazily_generated_names.LookupFunctionName(wire_bytes, index()); in DebugName() 230 WasmName name = wire_bytes.GetNameOrNull(name_ref); in DebugName() 262 ModuleWireBytes wire_bytes(native_module_->wire_bytes()); in LogCode() 273 wire_bytes.GetNameOrNull(debug_symbols.external_url); in LogCode() 1681 std::shared_ptr<base::OwnedVector<const uint8_t>> wire_bytes) in NativeModuleWireBytesStorage() 1682 : wire_bytes_(std::move(wire_bytes)) {} in NativeModuleWireBytesStorage() 1700 void NativeModule::SetWireBytes(base::OwnedVector<const uint8_t> wire_bytes) { in SetWireBytes() argument 1680 NativeModuleWireBytesStorage( std::shared_ptr<base::OwnedVector<const uint8_t>> wire_bytes) NativeModuleWireBytesStorage() argument [all...] |
H A D | streaming-decoder.cc | 270 base::Vector<const uint8_t> wire_bytes = in Finish() local 274 processor_->Deserialize(compiled_module_bytes_, wire_bytes)) in Finish() 278 // or the deserialization failed. Restart decoding using |wire_bytes|. in Finish() 281 OnBytesReceived(wire_bytes); in Finish()
|
H A D | streaming-decoder.h | 67 base::Vector<const uint8_t> wire_bytes) = 0;
|
H A D | wasm-objects.cc | 135 base::Vector<const uint8_t> wire_bytes = in ExtractUtf8StringFromModuleBytes() local 136 module_object->native_module()->wire_bytes(); in ExtractUtf8StringFromModuleBytes() 137 return ExtractUtf8StringFromModuleBytes(isolate, wire_bytes, ref, in ExtractUtf8StringFromModuleBytes() 142 Isolate* isolate, base::Vector<const uint8_t> wire_bytes, in ExtractUtf8StringFromModuleBytes() 145 wire_bytes.SubVector(ref.offset(), ref.end_offset()); in ExtractUtf8StringFromModuleBytes() 171 wasm::ModuleWireBytes(module_object->native_module()->wire_bytes()), in GetFunctionNameOrNull() 184 wasm::ModuleWireBytes wire_bytes(native_module()->wire_bytes()); in GetRawFunctionName() 186 module()->lazily_generated_names.LookupFunctionName(wire_bytes, in GetRawFunctionName() 188 wasm::WasmName name = wire_bytes in GetRawFunctionName() 141 ExtractUtf8StringFromModuleBytes( Isolate* isolate, base::Vector<const uint8_t> wire_bytes, wasm::WireBytesRef ref, InternalizeString internalize) ExtractUtf8StringFromModuleBytes() argument 1254 auto wire_bytes = module_object->native_module()->wire_bytes(); InitDataSegmentArrays() local [all...] |
H A D | module-instantiate.cc | 923 instance->module_object().native_module()->wire_bytes(); in EvaluateInitExpression() 1000 base::Vector<const uint8_t> wire_bytes = in LoadDataSegments() local 1001 module_object_->native_module()->wire_bytes(); in LoadDataSegments() 1034 wire_bytes.begin() + segment.source.offset(), size); in LoadDataSegments() 1054 base::Vector<const uint8_t> wire_bytes = in SanitizeImports() local 1055 module_object_->native_module()->wire_bytes(); in SanitizeImports() 1061 isolate_, wire_bytes, import.module_name, kInternalize); in SanitizeImports() 1065 isolate_, wire_bytes, import.field_name, kInternalize); in SanitizeImports()
|
H A D | c-api.cc | 120 const v8::base::Vector<const uint8_t>& wire_bytes) { in GetNameFromWireBytes() 121 DCHECK_LE(ref.offset(), wire_bytes.length()); in GetNameFromWireBytes() 122 DCHECK_LE(ref.end_offset(), wire_bytes.length()); in GetNameFromWireBytes() 125 std::memcpy(name.get(), wire_bytes.begin() + ref.offset(), ref.length()); in GetNameFromWireBytes() 1154 const v8::base::Vector<const uint8_t> wire_bytes = variable 1155 native_module->wire_bytes(); 1161 Name module_name = GetNameFromWireBytes(imp.module_name, wire_bytes); 1162 Name name = GetNameFromWireBytes(imp.field_name, wire_bytes); 1173 const v8::base::Vector<const uint8_t> wire_bytes = in ExportsImpl() local 1174 native_module->wire_bytes(); in ExportsImpl() 119 GetNameFromWireBytes(const i::wasm::WireBytesRef& ref, const v8::base::Vector<const uint8_t>& wire_bytes) GetNameFromWireBytes() argument 1194 v8::base::Vector<const uint8_t> wire_bytes = native_module->wire_bytes(); global() variable [all...] |
H A D | module-compiler.h | 55 std::shared_ptr<const WasmModule> module, const ModuleWireBytes& wire_bytes,
|
H A D | module-decoder.cc | 1538 const ModuleWireBytes& wire_bytes, in DecodeSingleFunction() 1548 VerifyFunctionBody(zone->allocator(), 0, wire_bytes, module, in DecodeSingleFunction() 1664 const ModuleWireBytes& wire_bytes, in VerifyFunctionBody() 1667 wire_bytes.GetNameOrNull(function, module)); in VerifyFunctionBody() 2353 const WasmFeatures& enabled, Zone* zone, const ModuleWireBytes& wire_bytes, in DecodeWasmFunctionForTesting() 2365 return decoder.DecodeSingleFunction(zone, wire_bytes, module, in DecodeWasmFunctionForTesting() 1537 DecodeSingleFunction(Zone* zone, const ModuleWireBytes& wire_bytes, const WasmModule* module, std::unique_ptr<WasmFunction> function) DecodeSingleFunction() argument 1663 VerifyFunctionBody(AccountingAllocator* allocator, uint32_t func_num, const ModuleWireBytes& wire_bytes, const WasmModule* module, WasmFunction* function) VerifyFunctionBody() argument 2352 DecodeWasmFunctionForTesting( const WasmFeatures& enabled, Zone* zone, const ModuleWireBytes& wire_bytes, const WasmModule* module, const byte* function_start, const byte* function_end, Counters* counters) DecodeWasmFunctionForTesting() argument
|
H A D | module-decoder.h | 170 const WasmFeatures& enabled, Zone* zone, const ModuleWireBytes& wire_bytes,
|
/third_party/node/deps/v8/src/runtime/ |
H A D | runtime-test-wasm.cc | 160 wasm::ModuleWireBytes wire_bytes = in RUNTIME_FUNCTION() local 161 wasm::ModuleWireBytes(frame->native_module()->wire_bytes()); in RUNTIME_FUNCTION() 163 module->lazily_generated_names.LookupFunctionName(wire_bytes, func_index); in RUNTIME_FUNCTION() 164 wasm::WasmName name = wire_bytes.GetNameOrNull(name_ref); in RUNTIME_FUNCTION() 350 Handle<JSTypedArray> wire_bytes = args.at<JSTypedArray>(1); in RUNTIME_FUNCTION() local 352 CHECK(!wire_bytes->WasDetached()); in RUNTIME_FUNCTION() 354 Handle<JSArrayBuffer> wire_bytes_buffer = wire_bytes->GetBuffer(); in RUNTIME_FUNCTION() 357 wire_bytes->byte_offset(), in RUNTIME_FUNCTION() 358 wire_bytes->byte_length()}; in RUNTIME_FUNCTION()
|
/third_party/node/deps/v8/src/compiler/ |
H A D | wasm-inlining.h | 41 const wasm::WireBytesStorage* wire_bytes, in WasmInliner() 49 wire_bytes_(wire_bytes), in WasmInliner() 38 WasmInliner(Editor* editor, wasm::CompilationEnv* env, uint32_t function_index, SourcePositionTable* source_positions, NodeOriginTable* node_origins, MachineGraph* mcgraph, const wasm::WireBytesStorage* wire_bytes, std::vector<WasmLoopInfo>* loop_infos, const char* debug_name) WasmInliner() argument
|
/third_party/node/deps/v8/include/v8-include/ |
H A D | v8-wasm.h | 124 Isolate* isolate, MemorySpan<const uint8_t> wire_bytes, 131 Isolate* isolate, MemorySpan<const uint8_t> wire_bytes);
|
/third_party/node/deps/v8/src/debug/ |
H A D | debug-interface.cc | 374 base::Vector<const uint8_t> wire_bytes = in WasmBytecode() 375 i::Managed<i::wasm::NativeModule>::cast(*source).raw()->wire_bytes(); in WasmBytecode() 376 return Just(MemorySpan<const uint8_t>{wire_bytes.begin(), wire_bytes.size()}); in WasmBytecode() 427 return script->wasm_native_module()->wire_bytes().length(); in EndColumn() 698 internal::wasm::ModuleWireBytes wire_bytes( in ExternalSymbolsURL() 699 script->wasm_native_module()->wire_bytes()); in ExternalSymbolsURL() 701 wire_bytes.GetNameOrNull(symbols.external_url); in ExternalSymbolsURL() 760 i::wasm::ModuleWireBytes wire_bytes(native_module->wire_bytes()); in GetFunctionHash() [all...] |
H A D | debug-wasm-objects.cc | 44 wasm::ModuleWireBytes wire_bytes( in GetNameFromImportsAndExportsOrNull() 45 instance->module_object().native_module()->wire_bytes()); in GetNameFromImportsAndExportsOrNull() 52 auto module_name = wire_bytes.GetNameOrNull(import_name_ref.first); in GetNameFromImportsAndExportsOrNull() 55 auto field_name = wire_bytes.GetNameOrNull(import_name_ref.second); in GetNameFromImportsAndExportsOrNull() 63 auto name = wire_bytes.GetNameOrNull(export_name_ref); in GetNameFromImportsAndExportsOrNull() 457 wasm::ModuleWireBytes module_wire_bytes(native_module->wire_bytes()); in GetName() 780 wasm::ModuleWireBytes module_wire_bytes(module->wire_bytes()); in GetRefTypeName() 869 wasm::ModuleWireBytes module_wire_bytes(native_module->wire_bytes()); in GetName()
|
/third_party/node/deps/v8/include/ |
H A D | v8-wasm.h | 110 Isolate* isolate, MemorySpan<const uint8_t> wire_bytes);
|