Home
last modified time | relevance | path

Searched full:lang (Results 1 – 25 of 266) sorted by relevance

1234567891011

/arkcompiler/ets_frontend/ets2panda/compiler/templates/
Dsignatures.h.erb67 static bool IsSupported([[maybe_unused]] Language lang)
69 % Signatures::DYNAMIC.each do |lang, data|
70 if (lang.GetId() == Language::Id::<%= lang.upcase %>) {
77 static std::string_view Type(Language lang)
79 ASSERT(IsSupported(lang));
80 % Signatures::DYNAMIC.each do |lang, data|
81 if (lang.GetId() == Language::Id::<%= lang.upcase %>) {
88 static std::string_view CallClass(Language lang)
90 ASSERT(IsSupported(lang));
91 % Signatures::DYNAMIC.each do |lang, data|
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/
Druntime_options.yaml53 lang:
60 lang:
73 lang:
88 lang:
95 lang:
102 lang:
114 lang:
121 lang:
131 lang:
138 lang:
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/doc/tutorial/
Dintro.rst20 Welcome to the tutorial for |LANG|, a |TS|-based programming language
23 |LANG| is optimized to provide better performance and efficiency, while
30 drain battery life. |LANG| has been specifically designed to address such concerns
33 |LANG| is based on the popular programming language |TS| that extends
35 provides a more structured approach to coding in |JS|. |LANG| aims to
37 |TS| developers, and to let mobile developers learn |LANG| quickly.
39 One of the key features of |LANG| is its focus on low runtime overhead.
40 |LANG| imposes stricter limitations on the |TS|'s dynamically typed features,
42 features are eliminated from the language, |LANG| code can be compiled
46 Interoperability with |JS| was a critical consideration in the |LANG| language
[all …]
/arkcompiler/runtime_core/static_core/libpandafile/templates/
Dfile_items_gen.inc.erb16 bool IsDynamicLanguage([[maybe_unused]] ark::panda_file::SourceLang lang)
19 if (lang == <%= plugin_opts["lang_enum"] %>) {
27 …d::optional<ark::panda_file::SourceLang> LanguageFromString([[maybe_unused]] std::string_view lang)
30 if (lang == "<%= directive_name %>") {
35 if (lang == "PandaAssembly") {
42 const char *LanguageToString([[maybe_unused]] ark::panda_file::SourceLang lang)
45 if (lang == <%= plugin_opts["lang_enum"] %>) {
53 const char *GetCtorName([[maybe_unused]] ark::panda_file::SourceLang lang)
56 if (lang == <%= plugin_opts["lang_enum"] %>) {
64 const char *GetCctorName([[maybe_unused]] ark::panda_file::SourceLang lang)
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/doc/system_arkts/
Dguide.rst16 The main goal of "System |LANG|" is to help developers make their ArkTS code
19 System ArkTS provides tips to focus on the performance. System |LANG| gives
23 All "System |LANG|" warnings are divided into the following categories:
25 #. **Subset warnings**: Part of |LANG| that is common with |TS|.
28 #. **Non-subset warnings**: Part of |LANG| that differs from |TS|.
36 * **ets-warnings-all** : Enable all ETS-warnings in "System |LANG|".
46 To see "System |LANG|" warnings, add "System |LANG|" options from the list above while compiling.
53 1. Write some |LANG| code. E.g., you have the following chunk of code:
73 above, "System |LANG|" gives the following warnings:
81 5. Rewrite the code as suggested by "System |LANG|". After rewriting |LANG|,
[all …]
Dintro.rst19 Welcome to the "System |LANG|" guide. This document provides brief suggestions
20 on how to rewrite your |LANG| code by using System |LANG| warnings.
23 performance of your |LANG| applications.
26 application of System |LANG| suggestions. All the numerical data were obtained
Dfeatures.rst20 If the performance requires improvement, then a rewritten version of |LANG| code
33 |LANG| supports Boxing and Unboxing conversions, though they have performance
39 |LANG| Performance Challenges
69 |LANG| is More Efficient
106 |LANG| supports reference binary operators. If the left part of an expression
112 |LANG| Performance Challenges
125 |LANG| Improvement Implemented
148 |LANG| supports Async-functions and Coroutines. Async-function type is only
149 supported for the backward |TS| compatibility, and "System |LANG|" suggests
152 |LANG| Async Way
[all …]
/arkcompiler/runtime_core/static_core/irtoc/
DCMakeLists.txt60 ${IRTOC_SOURCE_DIR}/lang/basic_block.rb
61 ${IRTOC_SOURCE_DIR}/lang/cpp_function.rb
62 ${IRTOC_SOURCE_DIR}/lang/function.rb
63 ${IRTOC_SOURCE_DIR}/lang/ir_generator.rb
64 ${IRTOC_SOURCE_DIR}/lang/instruction.rb
65 ${IRTOC_SOURCE_DIR}/lang/instructions_data.rb
66 ${IRTOC_SOURCE_DIR}/lang/irtoc.rb
67 ${IRTOC_SOURCE_DIR}/lang/isa.rb
68 ${IRTOC_SOURCE_DIR}/lang/options.rb
69 ${IRTOC_SOURCE_DIR}/lang/output.rb
[all …]
/arkcompiler/runtime_core/static_core/verification/jobs/
Dservice.cpp44 TaskProcessor *VerifierService::GetProcessor(SourceLang lang) in GetProcessor() argument
50 if (processors_.count(lang) == 0) { in GetProcessor()
51 processors_.emplace(lang, lang); in GetProcessor()
53 LangData *langData = &processors_.at(lang); in GetProcessor()
55 langData->queue.push_back(allocator_->New<TaskProcessor>(this, lang)); in GetProcessor()
67 auto lang = processor->GetLang(); in ReleaseProcessor() local
68 ASSERT(processors_.count(lang) > 0); in ReleaseProcessor()
69 processors_.at(lang).queue.push_back(processor); in ReleaseProcessor()
/arkcompiler/runtime_core/static_core/runtime/profiling/
Dprofiling-disasm-inl.h26 … [[maybe_unused]] ark::panda_file::SourceLang lang) in ReadProfile() argument
30 switch (lang) { in ReadProfile()
38 …ofile([[maybe_unused]] ProfileContainer profile, [[maybe_unused]] ark::panda_file::SourceLang lang) in DestroyProfile() argument
42 switch (lang) { in DestroyProfile()
50 [[maybe_unused]] ark::panda_file::SourceLang lang, in FindMethodInProfile() argument
55 switch (lang) { in FindMethodInProfile()
63 …umpProfile([[maybe_unused]] ProfileType profile, [[maybe_unused]] ark::panda_file::SourceLang lang, in DumpProfile() argument
68 switch (lang) { in DumpProfile()
/arkcompiler/ets_frontend/ets2panda/checker/types/ets/
DetsDynamicFunctionType.h28 Language lang) in ETSDynamicFunctionType() argument
29 : ETSFunctionType(checker, name, std::move(signatures)), lang_(lang) in ETSDynamicFunctionType()
35 Language lang) in ETSDynamicFunctionType() argument
36 : ETSFunctionType(name, signature, allocator), lang_(lang) in ETSDynamicFunctionType()
41 explicit ETSDynamicFunctionType(util::StringView name, ArenaAllocator *allocator, Language lang) in ETSDynamicFunctionType() argument
42 : ETSFunctionType(name, allocator), lang_(lang) in ETSDynamicFunctionType()
/arkcompiler/runtime_core/assembler/extensions/
Dregister_extensions.h.erb23 …andasm::RecordMetadata> MetadataExtension::CreateRecordMetadata(panda::panda_file::SourceLang lang)
25 switch (lang) {
41 …:pandasm::FieldMetadata> MetadataExtension::CreateFieldMetadata(panda::panda_file::SourceLang lang)
43 switch (lang) {
59 …sm::FunctionMetadata> MetadataExtension::CreateFunctionMetadata(panda::panda_file::SourceLang lang)
61 switch (lang) {
77 …:pandasm::ParamMetadata> MetadataExtension::CreateParamMetadata(panda::panda_file::SourceLang lang)
79 switch (lang) {
/arkcompiler/ets_frontend/ets2panda/linter/test/main/
Dstructural_identity.sts34 import type { lang } from './@arkts.lang';
481 class TC1 implements lang.ISendable {
499 const a1: lang.ISendable = t1; // OK
500 const a2: lang.ISendable = t2; // OK , Sendable can be thought of as implement ISendable
501 const a3: lang.ISendable = t2 as lang.ISendable; // OK
502 const a4: lang.ISendable = t3; // ERROR
503 const a5: lang.ISendable = t3 as lang.ISendable; // ERROR
507 let b1:lang.ISendable;
510 b1 = t2 as lang.ISendable; // OK
512 b1 = t3 as lang.ISendable; // ERROR
[all …]
/arkcompiler/ets_frontend/arkguard/test/grammar/print_unobfuscation/unobfuscation_source/
Dunobfudcation_source_expected_unobf.txt4 "lang": "same as the language keywords",
23 "lang",
30 "lang"
41 "lang"
/arkcompiler/ets_frontend/ets2panda/linter/test/extended_features/
D@arkts.collections.d.ets21 import lang from './@arkts.lang'
27 * @syscap SystemCapability.Utils.Lang
40 * @syscap SystemCapability.Utils.Lang
55 * @syscap SystemCapability.Utils.Lang
69 * @syscap SystemCapability.Utils.Lang
85 * @syscap SystemCapability.Utils.Lang
99 * @syscap SystemCapability.Utils.Lang
113 * @syscap SystemCapability.Utils.Lang
122 * @typedef { lang.ISendable } ISendable
123 * @syscap SystemCapability.Utils.Lang
[all …]
/arkcompiler/runtime_core/static_core/runtime/templates/
Dplugins.inc.erb24 LanguageContextBase* GetLanguageContextBase([[maybe_unused]] ark::panda_file::SourceLang lang)
27 if (lang == <%= plugin_opts["lang_enum"] %>)
54 std::string_view LangToRuntimeType(panda_file::SourceLang lang) {
55 if (lang == panda_file::SourceLang::PANDA_ASSEMBLY) {
60 if (lang == <%= plugin_opts["lang_enum"] %>) {
65 LOG(FATAL, RUNTIME) << "Incorrect lang: " << lang;
/arkcompiler/runtime_core/static_core/assembler/
Dassembly-record.h44 …Record(std::string s, ark::panda_file::SourceLang lang, size_t bL, size_t bR, std::string fC, bool… in Record()
46 language(lang), in Record()
47 metadata(extensions::MetadataExtension::CreateRecordMetadata(lang)), in Record()
52 Record(std::string s, ark::panda_file::SourceLang lang) in Record()
53 …: name(std::move(s)), language(lang), metadata(extensions::MetadataExtension::CreateRecordMetadata… in Record()
/arkcompiler/runtime_core/assembler/
Dassembly-record.h42 …Record(std::string s, panda::panda_file::SourceLang lang, size_t b_l, size_t b_r, std::string f_c,… in Record()
45 language(lang), in Record()
46 metadata(extensions::MetadataExtension::CreateRecordMetadata(lang)), in Record()
52 Record(std::string s, panda::panda_file::SourceLang lang) in Record()
53 …: name(std::move(s)), language(lang), metadata(extensions::MetadataExtension::CreateRecordMetadata… in Record()
/arkcompiler/runtime_core/templates/
Dcommon.rb82 respond_to?(:lang)
85 def lang_field_name(lang) argument
86 "#{lang}.#{name}".tr('-', '_').tr('.', '_') + '_'
89 def lang_camel_name(lang) argument
90 n = "#{lang}.#{name}".split(Regexp.union(['-', '.'])).map(&:capitalize).join
184 if option_hash.include?(:lang)
186 lang_spec_option.delete(:lang)
188 option.lang.each do |lang|
189 lang_spec_option[:description] = "#{option.description}. Only for #{lang}"
190 lang_spec_option[:name] = "#{lang}.#{option.name}"
/arkcompiler/runtime_core/libabckit/src/codegen/templates/
Dcodegen_visitors_static.inc.erb29 [[maybe_unused]] auto lang = static_cast<CodeGenStatic*>(v)->GetGraph()->GetLanguage();
31 % plugins_overrides[visitor].each do |lang|
32 if (lang == <%= Common::plugins[lang]["lang_enum"] %>) {
33 return <%= lang.capitalize %>Visit<%= visitor %>(v, inst);
/arkcompiler/runtime_core/static_core/bytecode_optimizer/templates/
Dcodegen_visitors.inc.erb29 [[maybe_unused]] auto lang = static_cast<BytecodeGen*>(v)->GetGraph()->GetLanguage();
31 % plugins_overrides[visitor].each do |lang|
32 if (lang == <%= Common::plugins[lang]["lang_enum"] %>) {
33 return <%= lang.capitalize %>Visit<%= visitor %>(v, inst);
/arkcompiler/ets_frontend/ets2panda/linter/test/ts_import_ets/ets/
Dtest6.ets16 import lang from '@arkts.lang';
29 class C implements lang.ISendable {
34 export interface I extends lang.ISendable {
Dtest4.ets16 import lang from '@arkts.lang';
29 class C implements lang.ISendable {
34 export interface I extends lang.ISendable {
Dtest7.ets16 import lang from '@arkts.lang';
29 class C implements lang.ISendable {
34 export interface I extends lang.ISendable {
/arkcompiler/runtime_core/templates/options/
Doptions.h.erb69 <%= op.type %> <%= op.getter_name %>([[maybe_unused]] std::string_view lang = "") const {
83 bool WasSet<%= op.camel_name %>([[maybe_unused]] std::string_view lang = "") const {
91 <%= op.type %> <%= op.getter_name %>(std::string_view lang) const {
95 % op.lang.each do |lang|
96 if (lang == "<%= "#{lang}" %>") {
97 …return WasSet<%= op.lang_camel_name(lang) %>() ? <%= op.lang_field_name(lang) %>.GetValue() : <%= …
110 bool WasSet<%= op.camel_name %>(std::string_view lang) const {
114 % op.lang.each do |lang|
115 if (lang == "<%= "#{lang}" %>") {
116 return <%= op.lang_field_name(lang) %>.WasSet();

1234567891011