Home
last modified time | relevance | path

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

12345678910>>...13

/arkcompiler/ets_frontend/ets2panda/compiler/templates/
Dsignatures.h.erb68 static bool IsSupported([[maybe_unused]] Language lang)
70 % Signatures::DYNAMIC.each do |lang, data|
71 if (lang.GetId() == Language::Id::<%= lang.upcase %>) {
78 static std::string_view Type(Language lang)
80 ES2PANDA_ASSERT(IsSupported(lang));
81 % Signatures::DYNAMIC.each do |lang, data|
82 if (lang.GetId() == Language::Id::<%= lang.upcase %>) {
89 static std::string_view CallClass(Language lang)
91 ES2PANDA_ASSERT(IsSupported(lang));
92 % Signatures::DYNAMIC.each do |lang, data|
[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/
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/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/ets_frontend/ets2panda/linter/test/main/
Dsendable_class_inheritance_2.ets16 import { lang } from './@arkts.lang';
19 class GoodA implements lang.ISendable {}
21 class BadA implements lang.ISendable {} // Fixable
23 interface B extends lang.ISendable {}
38 class BadC2 extends C implements lang.ISendable {} // Fixable
Dsendable_class_inheritance_2.ets.migrate.ets16 import { lang } from './@arkts.lang';
19 class GoodA implements lang.ISendable {}
22 class BadA implements lang.ISendable {} // Fixable
24 interface B extends lang.ISendable {}
42 class BadC2 extends C implements lang.ISendable {} // Fixable
/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/runtime_core/static_core/plugins/ets/doc/cookbook/
DTS_compatibility.rst13 .. _|LANG| |TS| compatibility:
15 |LANG|-|TS| compatibility
21 This section discusses the |LANG| compatibility with |TS| and all issues related.
33 A compile-time or a runtime error occurs in |LANG| in many cases, in which
67 |LANG| interprets ``number`` as a variety of types. Calculations depend
101 |LANG| allows generating highly efficient code that relies on an objects'
153 |LANG| follows stricter rules as follows (see the |LANG| specification for
180 Utility type ``Partial<T>`` in |LANG| is not assignable to ``T``.
207 |LANG| supports no overload signatures like |TS| does. In |TS|, several function
208 headers can be followed by a single body. In |LANG|, each overloaded function,
[all …]
/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/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/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/ets_frontend/ets2panda/linter/test/extended_features/
D@arkts.collections.d.ets22 import lang from './@arkts.lang'
28 * @syscap SystemCapability.Utils.Lang
41 * @syscap SystemCapability.Utils.Lang
56 * @syscap SystemCapability.Utils.Lang
70 * @syscap SystemCapability.Utils.Lang
86 * @syscap SystemCapability.Utils.Lang
100 * @syscap SystemCapability.Utils.Lang
114 * @syscap SystemCapability.Utils.Lang
123 * @typedef { lang.ISendable } ISendable
124 * @syscap SystemCapability.Utils.Lang
[all …]
/arkcompiler/runtime_core/static_core/tests/vm-benchmarks/src/vmb/plugins/tools/
Des2abc_interop.py35 '--extension={lang} {src} --output={out}'
48 lang = Path(src).suffix.lstrip('.')
49 if 'mjs' == lang:
50 lang = 'js' # arkjs doesn't know mjs
51 res = self.sh.run(self.cmd.format(src=str(src), out=str(out), 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/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/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/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/ets_frontend/ets2panda/linter/test/ts_import_ets/ets/
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 {

12345678910>>...13