Home
last modified time | relevance | path

Searched refs:init (Results 1 - 25 of 83) sorted by relevance

1234

/arkcompiler/ets_frontend/es2panda/test/optimizer/js/branch-elimination/
H A Dtest-branch-elimination.js41 let init = 1;
42 let a = init;
54 let init = 0.1;
55 let a = init;
68 let init = false;
69 let a = init;
81 let init = "0";
82 let a = init;
/arkcompiler/ets_frontend/ets2panda/compiler/base/
H A Ddestructuring.cpp87 const ir::Expression *init = nullptr; in GenElement() local
92 init = element->AsAssignmentPattern()->Right(); in GenElement()
98 if (init != nullptr) { in GenElement()
106 init->Compile(pg); in GenElement()
154 const ir::Expression *init = nullptr; in GetAssignmentTarget() local
158 init = target->AsAssignmentPattern()->Right(); in GetAssignmentTarget()
162 return {init, target}; in GetAssignmentTarget()
165 static void GenDefaultInitializer(PandaGen *pg, const ir::Expression *element, const ir::Expression *init) in GenDefaultInitializer() argument
167 if (init == nullptr) { in GenDefaultInitializer()
184 init in GenDefaultInitializer()
[all...]
/arkcompiler/ets_frontend/ets2panda/public/headers_parser/
H A Dparse_method.py116 def parse_initializer(init: str) -> dict:
120 init = init.strip(" \n")
123 parenthese_open = find_first_of_characters("{(", init, 0)
126 parenthese_open, parenthese_close = find_scope_borders(init, parenthese_open, "")
128 raise RuntimeError("Error! Can't find '(' or '{' in parse_initializer: '" + init + "'")
130 res["class_field"] = init[:parenthese_open].strip(" \n")
131 res["init_value"] = init[parenthese_open + 1 : parenthese_close]
154 If some argument is init value for class field, it adds property for this argument
/arkcompiler/runtime_core/compiler/tests/amd64/
H A Dasmjit_test.cpp57 code.init(rt.environment()); in TEST_F()
82 code.init(rt.environment()); in TEST_F()
90 func.init(FuncSignatureT<size_t, size_t, size_t>(CallConv::kIdHost), code.environment()); in TEST_F()
93 frame.init(func); in TEST_F()
123 code.init(rt.environment()); in TEST_F()
148 code.init(rt.environment()); in TEST_F()
173 code.init(env); in TEST_F()
181 func.init(FuncSignatureT<size_t, size_t, size_t>(CallConv::kIdHost), code.environment()); in TEST_F()
184 frame.init(func); in TEST_F()
/arkcompiler/runtime_core/static_core/compiler/tests/amd64/
H A Dasmjit_test.cpp61 code.init(rt.environment()); in TEST_F()
86 code.init(rt.environment()); in TEST_F()
94 func.init(FuncSignatureT<size_t, size_t, size_t>(CallConv::kIdHost), code.environment()); in TEST_F()
97 frame.init(func); in TEST_F()
127 code.init(rt.environment()); in TEST_F()
152 code.init(rt.environment()); in TEST_F()
177 code.init(env); in TEST_F()
185 func.init(FuncSignatureT<size_t, size_t, size_t>(CallConv::kIdHost), code.environment()); in TEST_F()
188 frame.init(func); in TEST_F()
/arkcompiler/runtime_core/compiler/tests/x86/
H A Dasmjit_test.cpp33 code.init(rt.environment()); in TEST_F()
58 code.init(rt.environment()); in TEST_F()
66 func.init(FuncSignatureT<size_t, size_t, size_t>(CallConv::kIdHost), code.environment()); in TEST_F()
69 frame.init(func); in TEST_F()
100 code.init(env); in TEST_F()
108 func.init(FuncSignatureT<size_t, size_t, size_t>(CallConv::kIdHost), code.environment()); in TEST_F()
111 frame.init(func); in TEST_F()
/arkcompiler/runtime_core/static_core/compiler/tests/x86/
H A Dasmjit_test.cpp32 code.init(rt.environment()); in TEST_F()
57 code.init(rt.environment()); in TEST_F()
65 func.init(FuncSignatureT<size_t, size_t, size_t>(CallConv::kIdHost), code.environment()); in TEST_F()
68 frame.init(func); in TEST_F()
99 code.init(env); in TEST_F()
107 func.init(FuncSignatureT<size_t, size_t, size_t>(CallConv::kIdHost), code.environment()); in TEST_F()
110 frame.init(func); in TEST_F()
/arkcompiler/ets_frontend/es2panda/ir/ts/
H A DtsEnumDeclaration.cpp245 bool IsComputedEnumMember(const ir::Expression *init) in IsComputedEnumMember() argument
247 if (init->IsLiteral()) { in IsComputedEnumMember()
248 return !init->AsLiteral()->IsStringLiteral() && !init->AsLiteral()->IsNumberLiteral(); in IsComputedEnumMember()
251 if (init->IsTemplateLiteral()) { in IsComputedEnumMember()
252 return !init->AsTemplateLiteral()->Quasis().empty(); in IsComputedEnumMember()
294 const ir::Expression *init = variable->Declaration()->Node()->AsTSEnumMember()->Init(); in InferEnumVariableType() local
296 if (!init) { in InferEnumVariableType()
306 if (IsComputedEnumMember(init)) { in InferEnumVariableType()
309 init in InferEnumVariableType()
[all...]
H A DtsEnumMember.h36 explicit TSEnumMember(Expression *key, Expression *init) in TSEnumMember() argument
37 : Statement(AstNodeType::TS_ENUM_MEMBER), key_(key), init_(init) in TSEnumMember()
/arkcompiler/ets_frontend/ets2panda/ir/statements/
H A DvariableDeclarator.h41 explicit VariableDeclarator(VariableDeclaratorFlag flag, Expression *ident, Expression *init) in VariableDeclarator() argument
42 : TypedStatement(AstNodeType::VARIABLE_DECLARATOR), id_(ident), init_(init), flag_(flag) in VariableDeclarator()
59 void SetInit(Expression *init) in SetInit() argument
61 init_ = init; in SetInit()
H A DvariableDeclarator.cpp59 dumper->Add({{"type", "VariableDeclarator"}, {"id", id_}, {"init", AstDumper::Nullish(init_)}}); in Dump()
86 auto *const init = init_ != nullptr ? init_->Clone(allocator, nullptr)->AsExpression() : nullptr; in Clone() local
88 if (auto *const clone = allocator->New<VariableDeclarator>(flag_, id, init); clone != nullptr) { in Clone()
92 if (init != nullptr) { in Clone()
93 init->SetParent(clone); in Clone()
H A DforUpdateStatement.h30 explicit ForUpdateStatement(AstNode *init, Expression *test, Expression *update, Statement *body) in ForUpdateStatement() argument
31 : LoopStatement(AstNodeType::FOR_UPDATE_STATEMENT), init_(init), test_(test), update_(update), body_(body) in ForUpdateStatement()
/arkcompiler/runtime_core/static_core/bytecode_optimizer/tests/
H A Dbc_lowering_test.cpp86 auto init = CreateEmptyGraph(); in TEST_F() local
87 GRAPH(init) in TEST_F()
113 init->SetLowLevelInstructionsEnabled(); in TEST_F()
115 init->RunPass<compiler::Lowering>(); in TEST_F()
116 init->RunPass<compiler::Cleanup>(); in TEST_F()
142 EXPECT_TRUE(GraphComparator().Compare(init, expected)); in TEST_F()
148 auto init = CreateEmptyGraph(); in TEST_F() local
149 GRAPH(init) in TEST_F()
188 init->SetLowLevelInstructionsEnabled(); in TEST_F()
190 init in TEST_F()
233 auto init = CreateEmptyGraph(); TEST_F() local
310 auto init = CreateEmptyGraph(); TEST_F() local
[all...]
/arkcompiler/ets_frontend/es2panda/compiler/base/
H A Ddestructuring.cpp97 const ir::Expression *init = nullptr; in GenArray() local
104 init = assignment->Right(); in GenArray()
110 if (init) { in GenArray()
118 init->Compile(pg); in GenArray()
133 const ir::Expression *init = nullptr; in GenObjectProperty() local
140 init = assignment->Right(); in GenObjectProperty()
154 if (init != nullptr) { in GenObjectProperty()
166 init->Compile(pg); in GenObjectProperty()
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/promise/
H A Dreturn_pending_promise_to_js_test.js18 function init() { function
81 let etsVm = init();
88 let etsVm = init();
/arkcompiler/ets_frontend/ets2panda/util/ast-builders/
H A DtsEnumMemberBuilder.h35 TSEnumMemberBuilder &SetInit(Expression *init) in SetInit() argument
37 init_ = init; in SetInit()
H A DvariableDeclaratorBuilder.h35 VariableDeclaratorBuilder &SetInit(Expression *init) in SetInit() argument
37 init_ = init; in SetInit()
H A DforUpdateStatementBuilder.h29 ForUpdateStatementBuilder &SetInit(AstNode *init) in SetInit() argument
31 init_ = init; in SetInit()
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/overwrites/
H A Dwsproto_handshake.py33 def init(self, **kwargs) -> None: function
47 return init
/arkcompiler/ets_runtime/ecmascript/extractortool/src/
H A Dzip_file_reader.cpp46 if (result->init()) { in CreateZipFileReader()
74 bool ZipFileReader::init() in init() function in panda::ecmascript::ZipFileReader
H A Dzip_file_reader_mem.cpp24 bool ZipFileReaderMem::init() in init() function in panda::ecmascript::ZipFileReaderMem
26 if (!ZipFileReader::init()) { in init()
/arkcompiler/ets_runtime/test/aotjsperftest/
H A Drun_js_perf_test.sh19 function init() function
54 init
/arkcompiler/ets_frontend/ets2panda/ir/ts/
H A DtsEnumMember.h26 explicit TSEnumMember(Expression *key, Expression *init) in TSEnumMember() argument
27 : Statement(AstNodeType::TS_ENUM_MEMBER), key_(key), init_(init) in TSEnumMember()
/arkcompiler/ets_frontend/es2panda/ir/statements/
H A DvariableDeclarator.h42 explicit VariableDeclarator(Expression *ident, Expression *init) in VariableDeclarator() argument
43 : Statement(AstNodeType::VARIABLE_DECLARATOR), id_(ident), init_(init) in VariableDeclarator()
/arkcompiler/ets_frontend/ets2panda/checker/ets/
H A Dhelpers.cpp564 checker::Type *ETSChecker::CheckArrayElements(ir::ArrayExpression *init) in CheckArrayElements() argument
567 for (auto e : init->AsArrayExpression()->Elements()) { in CheckArrayElements()
584 void ETSChecker::InferAliasLambdaType(ir::TypeNode *localTypeAnnotation, ir::ArrowFunctionExpression *init) in InferAliasLambdaType() argument
606 auto *const arrowFuncExpr = init; in InferAliasLambdaType()
616 ir::Expression *init) in FixOptionalVariableType()
620 if (init != nullptr && init->TsType()->IsETSEnumType()) { in FixOptionalVariableType()
621 init->SetBoxingUnboxingFlags(ir::BoxingUnboxingFlags::BOX_TO_ENUM); in FixOptionalVariableType()
657 bool ETSChecker::CheckInit(ir::Identifier *ident, ir::TypeNode *typeAnnotation, ir::Expression *init, in CheckInit() argument
661 if (init in CheckInit()
615 FixOptionalVariableType(varbinder::Variable *const bindingVar, ir::ModifierFlags flags, ir::Expression *init) FixOptionalVariableType() argument
702 CheckEnumType(ir::Expression *init, checker::Type *initType, const util::StringView &varName) CheckEnumType() argument
721 CheckVariableDeclaration(ir::Identifier *ident, ir::TypeNode *typeAnnotation, ir::Expression *init, ir::ModifierFlags const flags) CheckVariableDeclaration() argument
789 CheckAnnotationTypeForVariableDeclaration(checker::Type *annotationType, bool isUnionFunction, ir::Expression *init, checker::Type *initType) CheckAnnotationTypeForVariableDeclaration() argument
[all...]

Completed in 17 milliseconds

1234