Home
last modified time | relevance | path

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

123456789

/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 still
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]] panda::panda_file::SourceLang lang)
21 if (lang == <%= plugin_opts["lang_enum"] %>) {
29 …:optional<panda::panda_file::SourceLang> LanguageFromString([[maybe_unused]] std::string_view lang)
33 if (lang == "<%= plugin_opts["directive_name"] %>") {
38 if (lang == "PandaAssembly") {
45 const char *LanguageToString([[maybe_unused]] panda::panda_file::SourceLang lang)
49 if (lang == <%= plugin_opts["lang_enum"] %>) {
57 const char *GetCtorName([[maybe_unused]] panda::panda_file::SourceLang lang)
61 if (lang == <%= plugin_opts["lang_enum"] %>) {
69 const char *GetCctorName([[maybe_unused]] panda::panda_file::SourceLang lang)
[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()
Dservice.h47 TaskProcessor *GetProcessor(SourceLang lang);
52 explicit LangData(SourceLang language) : lang {language} {} in LangData()
55 SourceLang lang; member
73 …licit TaskProcessor(VerifierService *service, SourceLang lang) : service_ {service}, lang_ {lang} … in TaskProcessor() argument
/arkcompiler/runtime_core/static_core/plugins/ets/doc/spec/
D21_TS_compatibility.rst13 .. _|LANG| |TS| compatibility:
15 |LANG|-|TS| compatibility
22 between |LANG| and |TS|.
31 |LANG| raises a compile-time or a runtime error in many cases, in which
40 // |LANG|: compile-time error if analysis may detect array out of bounds
52 |LANG| interprets *number* as a variety of |LANG| types depending on the
60 // |LANG|: treats 'n' as having type int to reach max code performance
65 // |LANG|: will print 0 - integer division is used
76 |LANG| allows to generate high efficient code which relies on objects'
88 // |LANG| will issue a compile-time error - incorrect overriding
D1_intro.rst19 multi-paradigm programming language called |LANG|.
28 The |LANG| language combines and supports features that are in use in many
32 |LANG| supports imperative, object-oriented, functional, and generic
35 At the same time, |LANG| does not support features that allow software
41 The following major aspects characterize the |LANG| language as a whole:
45 The |LANG| language supports conventional class-based, *object-oriented
69 The |LANG| language supports the *component programming approach*. It
74 A module in |LANG| is a standalone, independently compiled unit that
91 Some program entities in |LANG| can be *type-parameterized*. This means that
117 |LANG| provides an efficient application development solution for a wide
[all …]
/arkcompiler/runtime_core/static_core/runtime/profiling/
Dprofiling-disasm-inl.h26 … [[maybe_unused]] panda::panda_file::SourceLang lang) in ReadProfile() argument
29 switch (lang) { in ReadProfile()
38 [[maybe_unused]] panda::panda_file::SourceLang lang) in DestroyProfile() argument
41 switch (lang) { in DestroyProfile()
49 [[maybe_unused]] panda::panda_file::SourceLang lang, in FindMethodInProfile() argument
53 switch (lang) { in FindMethodInProfile()
61 …pProfile([[maybe_unused]] ProfileType profile, [[maybe_unused]] panda::panda_file::SourceLang lang, in DumpProfile() argument
65 switch (lang) { in DumpProfile()
/arkcompiler/runtime_core/assembler/extensions/
Dregister_extensions.h.erb23 …andasm::RecordMetadata> MetadataExtension::CreateRecordMetadata(panda::panda_file::SourceLang lang)
25 switch (lang) {
38 …:pandasm::FieldMetadata> MetadataExtension::CreateFieldMetadata(panda::panda_file::SourceLang lang)
40 switch (lang) {
53 …sm::FunctionMetadata> MetadataExtension::CreateFunctionMetadata(panda::panda_file::SourceLang lang)
55 switch (lang) {
68 …:pandasm::ParamMetadata> MetadataExtension::CreateParamMetadata(panda::panda_file::SourceLang lang)
70 switch (lang) {
Dextensions.h32 static std::unique_ptr<RecordMetadata> CreateRecordMetadata(panda::panda_file::SourceLang lang);
34 static std::unique_ptr<FieldMetadata> CreateFieldMetadata(panda::panda_file::SourceLang lang);
36 …tatic std::unique_ptr<FunctionMetadata> CreateFunctionMetadata(panda::panda_file::SourceLang lang);
38 static std::unique_ptr<ParamMetadata> CreateParamMetadata(panda::panda_file::SourceLang lang);
/arkcompiler/runtime_core/static_core/runtime/templates/
Dplugins.inc.erb25 LanguageContextBase* GetLanguageContextBase([[maybe_unused]] panda::panda_file::SourceLang lang)
29 if (lang == <%= plugin_opts["lang_enum"] %>)
56 std::string_view LangToRuntimeType(panda_file::SourceLang lang) {
57 if (lang == panda_file::SourceLang::PANDA_ASSEMBLY) {
62 if (lang == <%= plugin_opts["lang_enum"] %>) {
67 LOG(FATAL, RUNTIME) << "Incorrect lang: " << lang;
/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/static_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/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()
51 Record(std::string s, panda::panda_file::SourceLang lang) in Record()
52 …: name(std::move(s)), language(lang), metadata(extensions::MetadataExtension::CreateRecordMetadata… in Record()
/arkcompiler/runtime_core/templates/options/
Doptions.h.erb67 <%= op.type %> <%= op.getter_name %>([[maybe_unused]] std::string_view lang = "") const {
81 bool WasSet<%= op.camel_name %>([[maybe_unused]] std::string_view lang = "") const {
89 <%= op.type %> <%= op.getter_name %>(std::string_view lang) const {
93 % op.lang.each do |lang|
94 if (lang == "<%= "#{lang}" %>") {
95 …return WasSet<%= op.lang_camel_name(lang) %>() ? <%= op.lang_field_name(lang) %>.GetValue() : <%= …
108 bool WasSet<%= op.camel_name %>(std::string_view lang) const {
112 % op.lang.each do |lang|
113 if (lang == "<%= "#{lang}" %>") {
114 return <%= op.lang_field_name(lang) %>.WasSet();
/arkcompiler/runtime_core/static_core/templates/options/
Doptions.h.erb70 <%= op.type %> <%= op.getter_name %>([[maybe_unused]] std::string_view lang = "") const {
84 bool WasSet<%= op.camel_name %>([[maybe_unused]] std::string_view lang = "") const {
92 <%= op.type %> <%= op.getter_name %>(std::string_view lang) const {
96 % op.lang.each do |lang|
97 if (lang == "<%= "#{lang}" %>") {
98 …return WasSet<%= op.lang_camel_name(lang) %>() ? <%= op.lang_field_name(lang) %>.GetValue() : <%= …
111 bool WasSet<%= op.camel_name %>(std::string_view lang) const {
115 % op.lang.each do |lang|
116 if (lang == "<%= "#{lang}" %>") {
117 return <%= op.lang_field_name(lang) %>.WasSet();
/arkcompiler/runtime_core/static_core/assembler/
Dassembly-record.h43 …Record(std::string s, panda::panda_file::SourceLang lang, size_t bL, size_t bR, std::string fC, bo… in Record()
45 language(lang), in Record()
46 metadata(extensions::MetadataExtension::CreateRecordMetadata(lang)), in Record()
51 Record(std::string s, panda::panda_file::SourceLang lang) in Record()
52 …: name(std::move(s)), language(lang), metadata(extensions::MetadataExtension::CreateRecordMetadata… in Record()
/arkcompiler/runtime_core/static_core/bytecode_optimizer/templates/
Dcodegen_visitors.inc.erb35 [[maybe_unused]] auto lang = static_cast<BytecodeGen*>(v)->GetGraph()->GetLanguage();
37 % plugins_overrides[visitor].each do |lang|
38 if (lang == <%= Common::plugins[lang]["lang_enum"] %>) {
39 return <%= lang.capitalize %>Visit<%= visitor %>(v, inst);
/arkcompiler/ets_frontend/ets2panda/checker/types/ets/
DetsDynamicFunctionType.h27 Language lang) in ETSDynamicFunctionType() argument
28 : ETSFunctionType(name, signature, allocator), lang_(lang) in ETSDynamicFunctionType()
33 explicit ETSDynamicFunctionType(util::StringView name, ArenaAllocator *allocator, Language lang) in ETSDynamicFunctionType() argument
34 : ETSFunctionType(name, allocator), lang_(lang) in ETSDynamicFunctionType()
/arkcompiler/runtime_core/static_core/assembler/extensions/
Dextensions.h33 …UBLIC_API std::unique_ptr<RecordMetadata> CreateRecordMetadata(panda::panda_file::SourceLang lang);
35 …_PUBLIC_API std::unique_ptr<FieldMetadata> CreateFieldMetadata(panda::panda_file::SourceLang lang);
38 panda::panda_file::SourceLang lang);
40 …_PUBLIC_API std::unique_ptr<ParamMetadata> CreateParamMetadata(panda::panda_file::SourceLang lang);
/arkcompiler/runtime_core/static_core/plugins/ets/doc/cookbook/
Dsummary.rst18 This chapter provides an informal summary of |TS| features that |LANG| either
29 |LANG| was designed with the following goals in mind:
31 - |LANG| programs must be easy for developers to read and understand because
33 - |LANG| must execute fast and consume as little power as possible because
34 it is particularly critical on mobile devices which |LANG| targets.
37 One of the most important features of |LANG| that helps achieving both goals
44 Therefore, the usage of the type ``any`` in |LANG| is prohibited.
94 To achieve maximum performance benefits, |LANG| requires the layout of objects
104 |LANG| does not support (see the detailed example below).
191 |LANG| restricts the semantics of some operators. An example is given below,
[all …]
Dwhy.rst15 Why Migrate from |TS| to |LANG|
19 |LANG|. In general, there are two reasons for doing this:
30 with types 'loosely', thus leaving room for runtime errors. |LANG| tries
42 described above. |LANG| addresses this problem. Thanks to static typing,
43 |LANG| compiles the program not to |JS| but to a special execution format
47 The examples below are to explain how |LANG| can help to improve program
57 |LANG| requires all fields to be initialized explicitly with some
86 It looks as follows in |LANG| due to the explicit initialization:
142 improved in |LANG| by enforcing stricter type checking.
208 for better type checking. However, |LANG| considers null-safety a very
/arkcompiler/runtime_core/static_core/libpandabase/templates/
Dsource_language.h.erb34 inline std::ostream &operator<<(std::ostream &stream, SourceLanguage lang)
36 switch (lang) {
57 inline bool IsValidSourceLang(SourceLanguage lang) {
58 switch (lang) {

123456789