/external/v8/src/wasm/ |
D | module-compiler.cc | 184 const NativeModule* native_module, in GetOrCompileJSToWasmWrapper() argument 187 const WasmModule* module = native_module->module(); in GetOrCompileJSToWasmWrapper() 195 compiler::CompileJSToWasmWrapper(isolate, native_module, func->sig, in GetOrCompileJSToWasmWrapper() 253 return module_object_->native_module()->use_trap_handler() ? kUseTrapHandler in use_trap_handler() 343 WasmCode* LazyCompileFunction(Isolate* isolate, NativeModule* native_module, in LazyCompileFunction() argument 346 DCHECK(!native_module->has_code(static_cast<uint32_t>(func_index))); in LazyCompileFunction() 350 ModuleEnv* module_env = native_module->compilation_state()->module_env(); in LazyCompileFunction() 355 ModuleWireBytes wire_bytes(native_module->wire_bytes()); in LazyCompileFunction() 364 const uint8_t* module_start = native_module->wire_bytes().start(); in LazyCompileFunction() 372 WasmCompilationUnit unit(isolate->wasm_engine(), module_env, native_module, in LazyCompileFunction() [all …]
|
D | function-compiler.cc | 47 NativeModule* native_module, in WasmCompilationUnit() argument 57 native_module_(native_module), in WasmCompilationUnit() 148 Isolate* isolate, NativeModule* native_module, WasmFeatures* detected, in CompileWasmFunction() argument 151 ModuleWireBytes wire_bytes(native_module->wire_bytes()); in CompileWasmFunction() 156 WasmCompilationUnit unit(isolate->wasm_engine(), env, native_module, in CompileWasmFunction()
|
D | wasm-objects.cc | 150 bool IsBreakablePosition(wasm::NativeModule* native_module, int func_index, in IsBreakablePosition() argument 155 const byte* module_start = native_module->wire_bytes().start(); in IsBreakablePosition() 156 const WasmFunction& func = native_module->module()->functions[func_index]; in IsBreakablePosition() 191 auto native_module = isolate->wasm_engine()->code_manager()->NewNativeModule( in New() local 195 native_module->set_wire_bytes(std::move(wire_bytes)); in New() 196 native_module->SetRuntimeStubs(isolate); in New() 200 New(isolate, std::move(native_module), script); in New() 209 Isolate* isolate, std::shared_ptr<wasm::NativeModule> native_module, in New() argument 212 static_cast<int>(native_module->module()->num_exported_functions); in New() 220 native_module->module()); in New() [all …]
|
D | wasm-serialization.cc | 385 WasmSerializer::WasmSerializer(Isolate* isolate, NativeModule* native_module) in WasmSerializer() argument 387 native_module_(native_module), in WasmSerializer() 388 code_table_(native_module->SnapshotCodeTable()) {} in WasmSerializer() 429 NativeModule* native_module) in NativeModuleDeserializer() argument 430 : isolate_(isolate), native_module_(native_module), read_called_(false) {} in NativeModuleDeserializer() 570 NativeModule* native_module = module_object->native_module(); in DeserializeNativeModule() local 573 native_module->SetLazyBuiltin(BUILTIN_CODE(isolate, WasmCompileLazy)); in DeserializeNativeModule() 575 NativeModuleDeserializer deserializer(isolate, native_module); in DeserializeNativeModule() 587 native_module->LogWasmCodes(isolate); in DeserializeNativeModule()
|
D | wasm-code-manager.cc | 144 ModuleWireBytes wire_bytes(native_module()->wire_bytes()); in LogCode() 146 ModuleEnv* module_env = GetModuleEnv(native_module()->compilation_state()); in LogCode() 804 NativeModule* native_module) { in AssignRanges() argument 805 lookup_map_.insert(std::make_pair(start, std::make_pair(end, native_module))); in AssignRanges() 827 for (NativeModule* native_module : native_modules_) { in SampleModuleSizes() 829 static_cast<int>(native_module->committed_code_space_.load() / MB); in SampleModuleSizes() 968 void WasmCodeManager::FreeNativeModule(NativeModule* native_module) { in FreeNativeModule() argument 970 DCHECK_EQ(1, native_modules_.count(native_module)); in FreeNativeModule() 971 native_modules_.erase(native_module); in FreeNativeModule() 973 for (auto& vmem : native_module->owned_code_space_) { in FreeNativeModule() [all …]
|
D | function-compiler.h | 98 Isolate* isolate, NativeModule* native_module, WasmFeatures* detected, 102 NativeModule* native_module() const { return native_module_; } in native_module() function
|
D | wasm-engine.cc | 171 bool WasmEngine::CompileFunction(Isolate* isolate, NativeModule* native_module, in CompileFunction() argument 177 isolate, native_module, &detected, &thrower, in CompileFunction() 178 GetModuleEnv(native_module->compilation_state()), in CompileFunction() 179 &native_module->module()->functions[function_index], tier); in CompileFunction()
|
D | wasm-debug.cc | 135 NativeModule* native_module = in GetBytes() local 136 debug_info->wasm_instance()->module_object()->native_module(); in GetBytes() 137 return native_module->wire_bytes(); in GetBytes() 564 ->native_module() in GetOrCreateInterpretedFunctions() 617 wasm::NativeModule* native_module = in RedirectToInterpreter() local 618 instance->module_object()->native_module(); in RedirectToInterpreter() 625 native_module); in RedirectToInterpreter() 634 const wasm::WasmCode* wasm_new_code = native_module->AddInterpreterEntry( in RedirectToInterpreter()
|
D | wasm-code-manager.h | 120 NativeModule* native_module() const { return native_module_; } in native_module() function 153 WasmCode(NativeModule* native_module, Maybe<uint32_t> index, in WasmCode() argument 164 native_module_(native_module), in WasmCode() 494 explicit NativeModuleModificationScope(NativeModule* native_module);
|
D | wasm-serialization.h | 19 WasmSerializer(Isolate* isolate, NativeModule* native_module);
|
D | wasm-objects-inl.h | 63 wasm::NativeModule* WasmModuleObject::native_module() const { 68 return native_module()->module(); in module()
|
D | wasm-module.cc | 255 module_object->native_module()->wire_bytes(); in GetCustomSections() 303 module_object->native_module()->wire_bytes(); in DecodeLocalNames()
|
D | wasm-engine.h | 98 bool CompileFunction(Isolate* isolate, NativeModule* native_module,
|
D | wasm-objects.h | 113 inline wasm::NativeModule* native_module() const; 145 Isolate* isolate, std::shared_ptr<wasm::NativeModule> native_module,
|
D | wasm-interpreter.cc | 2827 NativeModule* native_module = code_manager->LookupNativeModule(target); in GetTargetCode() local 2828 if (native_module->is_jump_table_slot(target)) { in GetTargetCode() 2830 native_module->GetFunctionIndexFromJumpTableSlot(target); in GetTargetCode() 2831 return native_module->code(func_index); in GetTargetCode() 2833 WasmCode* code = native_module->Lookup(target); in GetTargetCode()
|
/external/v8/src/runtime/ |
D | runtime-test.cc | 912 wasm::NativeModule* native_module = module_obj->native_module(); in RUNTIME_FUNCTION() local 913 wasm::WasmSerializer wasm_serializer(isolate, native_module); in RUNTIME_FUNCTION() 1035 isolate, instance->module_object()->native_module(), function_index, in RUNTIME_FUNCTION() 1049 wasm::NativeModule* native_module = in RUNTIME_FUNCTION() local 1050 exp_fun->instance()->module_object()->native_module(); in RUNTIME_FUNCTION() 1053 native_module->has_code(func_index) && in RUNTIME_FUNCTION() 1054 native_module->code(func_index)->is_liftoff()); in RUNTIME_FUNCTION() 1072 instance->module_object()->native_module()->set_lazy_compile_frozen(true); in RUNTIME_FUNCTION()
|
D | runtime-wasm.cc | 319 isolate, instance->module_object()->native_module(), func_index); in RUNTIME_FUNCTION()
|
/external/v8/src/compiler/ |
D | pipeline.h | 54 wasm::NativeModule* native_module, int function_index,
|
D | pipeline.cc | 1001 wasm::NativeModule* native_module, int function_index, bool asmjs_origin) in PipelineWasmCompilationJob() argument 1012 native_module_(native_module), in PipelineWasmCompilationJob() 2278 wasm::NativeModule* native_module, int function_index, in NewWasmCompilationJob() argument 2282 node_origins, function_body, wasm_module, native_module, function_index, in NewWasmCompilationJob()
|
D | wasm-compiler.cc | 4765 Isolate* isolate, const wasm::NativeModule* native_module, in CompileJSToWasmWrapper() argument 4770 const wasm::WasmModule* module = native_module->module(); in CompileJSToWasmWrapper() 5205 if (ok_) wasm_unit_->native_module()->PublishCode(wasm_code_); in ExecuteCompilation()
|
/external/v8/src/ |
D | value-serializer.cc | 895 wasm::NativeModule* native_module = object->native_module(); in WriteWasmModule() local 896 Vector<const uint8_t> wire_bytes = native_module->wire_bytes(); in WriteWasmModule() 903 wasm::WasmSerializer wasm_serializer(isolate_, native_module); in WriteWasmModule()
|
D | log.cc | 1282 reinterpret_cast<byte*>(code->native_module()) + code->index(); in CodeCreateEvent() 2161 module_objects[i]->native_module()->LogWasmCodes(isolate_); in LogCompiledFunctions()
|
D | objects-printer.cc | 1773 os << "\n - native module: " << native_module(); in WasmModuleObjectPrint()
|
D | api.cc | 7419 i::Vector<const uint8_t> bytes_vec = obj->native_module()->wire_bytes(); in GetWasmWireBytesRef() 7467 i::wasm::NativeModule* native_module = obj->native_module(); in Serialize() local 7468 i::wasm::WasmSerializer wasm_serializer(obj->GetIsolate(), native_module); in Serialize() 9475 module_object->native_module()->wire_bytes()); in GetFunctionHash()
|