| /arkcompiler/runtime_core/runtime/entrypoints/ |
| D | entrypoints.yaml | 17 # - no_return: entrypoint doesn't jump back to the caller. 18 # - external: don't generate entrypoint and bridge declarations, initialize table's element by n… 19 # - irtoc: entrypoint is generated by irtoc tool 20 # - intrinsic: this is call of intrinsic wrapped in entrypoint bridge 21 # * signature: signature of the entrypoint, the first element is the return value, the rest are ar… 22 # * entrypoint: entrypoint function name. 26 entrypoint: DeoptimizeEntrypoint 27 bridge: entrypoint 34 entrypoint: AbstractMethodErrorEntrypoint 35 bridge: entrypoint [all …]
|
| D | entrypoints_gen.h.erb | 44 % Compiler::entrypoints.each do |entrypoint| 45 % next if entrypoint.external? 47 % if entrypoint.has_bridge? && !entrypoints_map.include?(entrypoint.bridge_name) 49 extern <%= prefix %> <%= entrypoint.signature[0] %> <%= entrypoint.bridge_name %>(<%= entrypoint.si… 50 % entrypoints_map.add(entrypoint.bridge_name) 52 % if !entrypoint.properties.include?("intrinsic") && !entrypoints_map.include?(entrypoint.entrypo… 53 % if entrypoint.properties.include?("irtoc") 56 static constexpr <%= entrypoint.signature[0] %> (*<%= entrypoint.entrypoint %>)(<%= entrypoint.sign… 59 extern <%= prefix %> <%= entrypoint.signature[0] %> <%= entrypoint.entrypoint %>(<%= entrypoint.sig… 63 extern <%= prefix %> <%= entrypoint.signature[0] %> <%= entrypoint.entrypoint %>(<%= entrypoint.sig… [all …]
|
| D | entrypoints_gen.S.erb | 18 ENTRYPOINT ThrowNativeExceptionBridge, ThrowNativeExceptionEntrypoint, 0, 1 20 % Compiler::entrypoints.each do |entrypoint| 21 % next if !entrypoint.has_bridge? || entrypoint.external? 22 % if entrypoint.bridge == 'slow_path' 23 …POINT_SLOW_PATH <%= entrypoint.bridge_name %>, <%= entrypoint.entrypoint %>, <%= entrypoint.signat… 24 % elsif entrypoint.bridge == 'entrypoint' 25 ENTRYPOINT <%= entrypoint.bridge_name %>, <%= entrypoint.entrypoint %>, <%= entrypoint.signature.le… 27 % raise "Unsupported bridge: #{entrypoint.bridge}"
|
| D | entrypoints_compiler.inl.erb | 17 % Compiler::entrypoints.each_with_index do |entrypoint, index| 18 <%= entrypoint.enum_name %> = <%= index %>, 27 % Compiler::entrypoints.each do |entrypoint| 28 "<%= entrypoint.name %>", 37 % Compiler::entrypoints.each do |entrypoint| 38 case EntrypointId::<%= entrypoint.enum_name %>: 39 return <%= entrypoint.has_property? 'no_return' %>; 50 % Compiler::entrypoints.each do |entrypoint| 51 case EntrypointId::<%= entrypoint.enum_name %>: 52 return <%= entrypoint.signature.length - 1 %>;
|
| D | entrypoints.rb | 18 class Entrypoint < OpenStruct class 21 if self.entrypoint.nil? && !self.external? 22 raise "Entrypoint description must contains 'entrypoint' field: #{dscr.marshal_dump}" 24 …abort "ERROR: 'bridge' field must be specified for #{self.entrypoint}" unless dscr['bridge'] # !se… 54 @entrypoints ||= @data['entrypoints'].map {|x| Entrypoint.new x }
|
| /arkcompiler/ets_runtime/ecmascript/base/ |
| D | path_helper.h | 139 CString entryPoint; in ParseOhmUrl() local 147 entryPoint = vm->GetBundleName() + "/" + inputFileName.substr(startStrLen); in ParseOhmUrl() 151 entryPoint = inputFileName.substr(PREFIX_BUNDLE_LEN); in ParseOhmUrl() 152 outFileName = ParseUrl(vm, entryPoint); in ParseOhmUrl() 154 … entryPoint = vm->GetBundleName() + "/" + vm->GetModuleName() + MODULE_DEFAULE_ETS + inputFileName; in ParseOhmUrl() 157 if (StringHelper::StringEndWith(entryPoint, EXT_NAME_ABC)) { in ParseOhmUrl() 158 entryPoint.erase(entryPoint.length() - EXT_NAME_ABC_LEN, EXT_NAME_ABC_LEN); in ParseOhmUrl() 160 return entryPoint; in ParseOhmUrl() 173 static CString ParseUrl(EcmaVM *vm, const CString &entryPoint) in ParseUrl() argument 176 StringHelper::SplitString(entryPoint, vec, 0, SEGMENTS_LIMIT_TWO); in ParseUrl() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/jspandafile/ |
| D | literal_data_extractor.h | 40 … JSHandle<ConstantPool> constpool, const CString &entryPoint = ""); 42 … JSHandle<ConstantPool> constpool, const CString &entryPoint = ""); 45 … JSHandle<ConstantPool> constpool, const CString &entryPoint = ""); 48 … JSHandle<ConstantPool> constpool, const CString &entryPoint = ""); 51 const CString &entryPoint = ""); 53 size_t index, JSHandle<ConstantPool> constpool, const CString &entryPoint = ""); 66 const CString &entryPoint = "");
|
| D | js_pandafile_executor.cpp | 30 std::string_view entryPoint, bool needUpdate, bool excuteFromJob) in ExecuteFromFile() argument 40 entry = entryPoint.data(); in ExecuteFromFile() 43 entry = entryPoint.data(); in ExecuteFromFile() 61 entry = entryPoint.data(); in ExecuteFromFile() 108 …const void *buffer, size_t size, std::string_view entryPoint, const CString &filename, bool needUp… in ExecuteFromBuffer() argument 113 …JSPandaFileManager::GetInstance()->LoadJSPandaFile(thread, normalName, entryPoint, buffer, size, n… in ExecuteFromBuffer() 115 …sg = "Load file with filename '" + normalName + "' failed, recordName '" + entryPoint.data() + "'"; in ExecuteFromBuffer() 119 CString entry = entryPoint.data(); in ExecuteFromBuffer() 194 … std::string_view entryPoint, bool excuteFromJob) in Execute() argument 198 …Expected<JSTaggedValue, bool> result = vm->InvokeEcmaEntrypoint(jsPandaFile, entryPoint, excuteFro… in Execute()
|
| D | js_pandafile_manager.cpp | 55 std::string_view entryPoint, bool needUpdate) in LoadJSPandaFile() argument 83 return GenerateJSPandaFile(thread, pf.release(), filename, entryPoint); in LoadJSPandaFile() 87 std::string_view entryPoint, const void *buffer, size_t size, bool needUpdate) in LoadJSPandaFile() argument 118 return GenerateJSPandaFile(thread, pf.release(), filename, entryPoint); in LoadJSPandaFile() 122 EcmaVM *vm, const JSPandaFile *jsPandaFile, std::string_view entryPoint) in GenerateProgram() argument 129 return PandaFileTranslator::GenerateProgram(vm, jsPandaFile, entryPoint); in GenerateProgram() 285 … const CString &desc, std::string_view entryPoint) in GenerateJSPandaFile() argument 296 CString methodName = entryPoint.data(); in GenerateJSPandaFile() 298 // entryPoint maybe is _GLOBAL::func_main_watch to execute func_main_watch in GenerateJSPandaFile() 299 auto pos = entryPoint.find_last_of("::"); in GenerateJSPandaFile() [all …]
|
| D | literal_data_extractor.cpp | 35 const CString &entryPoint) in ExtractObjectDatas() argument 55 &methodId, &kind, &constpool, &entryPoint] in ExtractObjectDatas() 108 DefineMethodInLiteral(thread, jsPandaFile, method, kind, length, entryPoint); in ExtractObjectDatas() 136 …SPandaFile *jsPandaFile, size_t index, JSHandle<ConstantPool> constpool, const CString &entryPoint) in GetDatasIgnoreTypeForClass() argument 147 return EnumerateLiteralVals(thread, lda, jsPandaFile, index, constpool, entryPoint); in GetDatasIgnoreTypeForClass() 152 const CString &entryPoint) in GetDatasIgnoreType() argument 158 return EnumerateLiteralVals(thread, lda, jsPandaFile, index, constpool, entryPoint); in GetDatasIgnoreType() 162 …SPandaFile *jsPandaFile, size_t index, JSHandle<ConstantPool> constpool, const CString &entryPoint) in EnumerateLiteralVals() argument 172 …ndex, [literals, &pos, vm, factory, thread, jsPandaFile, &methodId, &kind, &constpool, &entryPoint] in EnumerateLiteralVals() 220 … DefineMethodInLiteral(thread, jsPandaFile, method, kind, length, entryPoint); in EnumerateLiteralVals() [all …]
|
| D | js_pandafile_executor.h | 29 … std::string_view entryPoint, bool needUpdate = false, 32 … std::string_view entryPoint, const CString &filename = "", 39 … std::string_view entryPoint, bool excuteFromJob = false);
|
| D | js_pandafile_manager.h | 36 …<Program> GenerateProgram(EcmaVM *vm, const JSPandaFile *jsPandaFile, std::string_view entryPoint); 38 …SPandaFile *LoadJSPandaFile(JSThread *thread, const CString &filename, std::string_view entryPoint, 41 …SPandaFile *LoadJSPandaFile(JSThread *thread, const CString &filename, std::string_view entryPoint, 84 std::string_view entryPoint);
|
| /arkcompiler/ets_runtime/ecmascript/module/tests/ |
| D | ecma_module_test.cpp | 302 …CString entryPoint = PathHelper::ConcatFileNameWithMerge(thread, pf, baseFilename, moduleRecordNam… in HWTEST_F_L0() local 304 EXPECT_EQ(result, entryPoint); in HWTEST_F_L0() 334 …CString entryPoint = PathHelper::ConcatFileNameWithMerge(thread, pf, baseFilename, moduleRecordNam… in HWTEST_F_L0() local 336 EXPECT_EQ(result, entryPoint); in HWTEST_F_L0() 343 …entryPoint = PathHelper::ConcatFileNameWithMerge(thread, pf, baseFilename, moduleRecordName, modul… in HWTEST_F_L0() 344 EXPECT_EQ(result, entryPoint); in HWTEST_F_L0() 368 CString entryPoint = in HWTEST_F_L0() local 371 EXPECT_EQ(result, entryPoint); in HWTEST_F_L0() 382 entryPoint = PathHelper::ConcatFileNameWithMerge(thread, pf2, baseFilename, moduleRecordName, in HWTEST_F_L0() 385 EXPECT_EQ(result, entryPoint); in HWTEST_F_L0() [all …]
|
| /arkcompiler/runtime_core/panda/ |
| D | panda.cpp | 92 << " [OPTIONS] [file] [entrypoint] -- [arguments]" << std::endl; in PrintHelp() 99 … const panda::PandArg<std::string> &file, const panda::PandArg<std::string> &entrypoint, in PrepareArguments() argument 116 if (file.GetValue().empty() || entrypoint.GetValue().empty() || help.GetValue()) { in PrepareArguments() 153 …panda::PandArg<std::string> entrypoint("entrypoint", "", "full name of entrypoint function or meth… in Main() local 162 pa_parser.PushBackTail(&entrypoint); in Main() 166 if (!panda::PrepareArguments(&pa_parser, runtime_options, file, entrypoint, help, argc, argv)) { in Main() 212 std::string entry = entrypoint.GetValue(); in Main()
|
| /arkcompiler/runtime_core/disassembler/templates/ |
| D | intrinsics_gen.h.erb | 22 % entrypoint = intrinsic.name + "EntryPoint" 24 <%= intrinsic.impl_signature.ret %> <%= entrypoint %>(<%= params.join(", ") %>) { // NOLINT 74 % entrypoint = intrinsic.name + "EntryPoint" 75 method->SetCompiledEntryPoint(reinterpret_cast<const void *>(<%= entrypoint %>));
|
| /arkcompiler/runtime_core/runtime/core/ |
| D | core_vm.cpp | 209 bool PandaCoreVM::CheckEntrypointSignature(Method *entrypoint) in CheckEntrypointSignature() argument 211 if (entrypoint->GetNumArgs() == 0) { in CheckEntrypointSignature() 215 if (entrypoint->GetNumArgs() > 1) { in CheckEntrypointSignature() 219 auto *pf = entrypoint->GetPandaFile(); in CheckEntrypointSignature() 220 panda_file::MethodDataAccessor mda(*pf, entrypoint->GetFileId()); in CheckEntrypointSignature() 257 Expected<int, Runtime::Error> PandaCoreVM::InvokeEntrypointImpl(Method *entrypoint, in InvokeEntrypointImpl() argument 262 LanguageContext ctx = runtime->GetLanguageContext(*entrypoint); in InvokeEntrypointImpl() 267 if (!class_linker->InitializeClass(thread, entrypoint->GetClass())) { in InvokeEntrypointImpl() 268 … LOG(ERROR, RUNTIME) << "Cannot initialize class '" << entrypoint->GetClass()->GetName() << "'"; in InvokeEntrypointImpl() 273 if (entrypoint->GetNumArgs() == 1) { in InvokeEntrypointImpl() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins_promise_job.cpp | 147 CString entryPoint = JSPandaFile::ENTRY_MAIN_FUNCTION; in DynamicImportJob() local 166 entryPoint = in DynamicImportJob() 170 moduleName = thread->GetEcmaVM()->GetFactory()->NewFromUtf8(entryPoint); in DynamicImportJob() 174 entryPoint); in DynamicImportJob() 176 …ring msg = "Load file with filename '" + fileNameStr + "' failed, recordName '" + entryPoint + "'"; in DynamicImportJob() 180 bool isModule = jsPandaFile->IsModule(thread, entryPoint); in DynamicImportJob() 183 …if (!JSPandaFileExecutor::ExecuteFromFile(thread, fileNameStr.c_str(), entryPoint.c_str(), false, … in DynamicImportJob() 184 CString msg = "Cannot execute request dynamic-imported module : " + entryPoint; in DynamicImportJob()
|
| /arkcompiler/runtime_core/docs/ |
| D | runtime-compiled_code-interaction.md | 25 changes its entrypoint to newly generated code. Next time when the function gets called native code… 57 Runtime serves compiled code via runtime entrypoints. A runtime entrypoint is a function which conf… 67 | compiled_entry_point_ | Function entrypoint. | 75 ### Entrypoint subsection 76 Entrypoint is a pointer to native code which can execute the function. This code must conform to th… 148 prepare arguments in the registers and the stack (if necessary) and jump to callee's entrypoint. 149 Resolving of a function could be done by calling the corresponding runtime entrypoint. 162 // 2nd step: prepare arguments and entrypoint to call `int max(int, int)` 172 The Compiler have an entrypoints table. Each entrypoint contains a link to the Bridge Function. 213 Depending on the callee's entrypoint there may be different cases. [all …]
|
| D | aot.md | 25 - `.aot_got` - Contains table of the runtime's entrypoint handlers. Must be placed right before `.t… 63 ; start of entrypoint table 75 Knowing offset to the `.aot_got` table, codegen calculates offset to the corresponding entrypoint a… 81 ; start of entrypoint table 93 84: ldr x30, [x30] ; Load address of the entrypoint handler
|
| /arkcompiler/runtime_core/irtoc/backend/compiler/ |
| D | codegen_fastpath.h | 31 …* Fast path entrypoint saves only used registers, and saves all caller registers if it goes to the… 35 …* To call C-implemented entrypoint (slow path) we need a separate bridge, because it shouldn't sav… 36 * before calling slow path, since they are saved within irtoced entrypoint.
|
| /arkcompiler/runtime_core/compiler/optimizer/templates/intrinsics/ |
| D | entrypoints_bridge_asm_macro.inl.erb | 17 // ENTRYPOINT PowF64Bridge, PowF64, 2 26 ENTRYPOINT <%= implementation %>Bridge, <%= implementation %>, <%= intrn.impl_signature.args.count.… 28 ENTRYPOINT <%= implementation %>CompiledAbiBridge, <%= implementation %>CompiledAbi, <%= (intrn.imp…
|
| D | intrinsics_codegen.inl.erb | 21 auto entrypoint = inst->GetIntrinsicId(); 23 switch (entrypoint) {
|
| /arkcompiler/runtime_core/runtime/ |
| D | panda_vm.cpp | 102 Expected<int, Runtime::Error> PandaVM::InvokeEntrypoint(Method *entrypoint, const std::vector<std::… in InvokeEntrypoint() argument 104 if (!CheckEntrypointSignature(entrypoint)) { in InvokeEntrypoint() 105 LOG(ERROR, RUNTIME) << "Method '" << entrypoint << "' has invalid signature"; in InvokeEntrypoint() 108 Expected<int, Runtime::Error> ret = InvokeEntrypointImpl(entrypoint, args); in InvokeEntrypoint()
|
| /arkcompiler/runtime_core/compiler/docs/ |
| D | plt.md | 40 ; start of entrypoint table | 50 XX+08: ldr x30, [x0, #56] ; Load EntryPoint ; SecondSlot value ; Executable code 77 ; start of entrypoint table | 109 takes caller `Method pointer` from previous frame and calls `GetCalleeMethod` entrypoint. 129 ; start of entrypoint table | 155 takes caller `Method pointer` from previous frame and calls `InitializeClassById` entrypoint. 157 …r `Class` state is `Initialized`, as returning from `InitializeClassById` entrypoint in some corner 161 Another entrypoint is called here - `ResolveClass`. Gathered `Class pointer` value is stored into `…
|
| /arkcompiler/toolchain/tooling/test/ |
| D | debugger_entry_test.cpp | 59 auto [pandaFile, entryPoint] = GetTestEntryPoint(testName); in HWTEST_P_L0() 60 auto res = JSNApi::Execute(instance, pandaFile.c_str(), entryPoint.c_str()); in HWTEST_P_L0()
|