Home
last modified time | relevance | path

Searched refs:cases (Results 1 - 16 of 16) sorted by relevance

/arkcompiler/ets_frontend/ets2panda/util/ast-builders/
H A DswitchStatementBuilder.h38 SwitchStatementBuilder &SetCases(ArenaVector<SwitchCaseStatement *> cases) in SetCases() argument
40 cases_ = std::move(cases); in SetCases()
44 SwitchStatementBuilder &AddCases(SwitchCaseStatement *cases) in AddCases() argument
46 cases_.emplace_back(cases); in AddCases()
/arkcompiler/runtime_core/bytecode_optimizer/
H A Dbytecode_optimizer_isapi.rb56 Switch = Struct.new(:expr, :cases) do
59 cases.each do |c|
71 cases.each do |c|
143 def switch(expr, cases)
144 Switch.new(expr, cases)
180 # Type/cc cases for instruction selection
/arkcompiler/ets_frontend/ets2panda/ir/statements/
H A DswitchStatement.h39 explicit SwitchStatement(Expression *discriminant, ArenaVector<SwitchCaseStatement *> &&cases) in SwitchStatement() argument
40 : Statement(AstNodeType::SWITCH_STATEMENT), discriminant_(discriminant), cases_(std::move(cases)) in SwitchStatement()
/arkcompiler/ets_frontend/es2panda/ir/statements/
H A DswitchStatement.h42 ArenaVector<SwitchCaseStatement *> &&cases) in SwitchStatement()
43 : Statement(AstNodeType::SWITCH_STATEMENT), scope_(scope), discriminant_(discriminant), cases_(std::move(cases)) in SwitchStatement()
41 SwitchStatement(binder::LocalScope *scope, Expression *discriminant, ArenaVector<SwitchCaseStatement *> &&cases) SwitchStatement() argument
/arkcompiler/runtime_core/static_core/bytecode_optimizer/
H A Dbytecode_optimizer_isapi.rb56 Switch = Struct.new(:expr, :cases) do
59 cases.each do |c|
71 cases.each do |c|
162 def switch(expr, cases)
163 Switch.new(expr, cases)
228 # Type/cc cases for instruction selection
/arkcompiler/ets_frontend/es2panda/test/bytecode_file_size_comparison/test_cases/java_test_framework/
H A Drun_java.py44 description = "Execute Java test cases and generate a data file with the bytecode file size of the test cases."
80 cases = glob(glob_expression, recursive=True)
81 for case in cases:
H A Drun_javar8.py52 description = "Execute Java test cases and generate a data file with the bytecode file size of the test cases."
91 cases = glob(glob_expression, recursive=True)
92 for case in cases:
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/litecg/
H A Dlmir_builder.h35 set, but still with "just enough" features for general cases.
449 cases.push_back(std::make_pair(value, &bb)); in Case()
455 return builder.CreateSwitchInternal(type, cond, defaultBB, cases); in Done()
463 std::vector<std::pair<int64_t, BB *>> cases; member in maple::litecg::LMIRBuilder::SwitchBuilder
565 Stmt &CreateSwitchInternal(Type *type, Expr cond, BB &defaultBB, std::vector<std::pair<int64_t, BB *>> &cases);
/arkcompiler/ets_frontend/es2panda/test/size_statistics/
H A Dsize_statistics.py176 cases = glob(glob_expression, recursive=True)
177 for case in cases:
291 # Add benchmark cases and workload cases (js)
299 # Add workload cases (ts)
/arkcompiler/ets_frontend/ets2panda/test/unit/public/
H A Dast_builder_test.cpp337 ark::ArenaVector<ark::es2panda::ir::SwitchCaseStatement *> cases(Allocator()->Adapter()); in TEST_F()
341 cases.push_back(switchCase); in TEST_F()
342 auto switchStmnt = SwitchStatementBuilder(Allocator()).SetCases(cases).SetDiscriminant(thisExpr).Build(); in TEST_F()
/arkcompiler/ets_frontend/ets2panda/checker/ets/
H A Dhelpers.cpp881 // NOTE - it seems that all the other possible cases are assignments like: in ResolveSmartType()
883 // thus for such cases also leave the target type as is. in ResolveSmartType()
966 // NOTE: other cases (for example with functional types) will be implemented later on in CheckTestObjectCondition()
986 // NOTE: now we support only cases like 'if (x != null && y == null)' but don't support different type in CheckTestSmartCastCondition()
1067 // NOTE: it seems that no more cases are possible here! :) in ResolveSmartCastTypes()
1138 // NOTE: now we support only cases like 'if (x != null || y != null)' or 'if (x instanceof A || x instanceof B)' in CheckTestOrSmartCastCondition()
1728 void ETSChecker::CheckForSameSwitchCases(ArenaVector<ir::SwitchCaseStatement *> const &cases) in CheckForSameSwitchCases() argument
1730 CheckItemCasesConstant(cases); in CheckForSameSwitchCases()
1731 CheckItemCasesDuplicate(cases); in CheckForSameSwitchCases()
1780 void ETSChecker::CheckItemCasesConstant(ArenaVector<ir::SwitchCaseStatement *> const &cases) in CheckItemCasesConstant() argument
1825 CheckItemCasesDuplicate(ArenaVector<ir::SwitchCaseStatement *> const &cases) CheckItemCasesDuplicate() argument
[all...]
/arkcompiler/ets_frontend/es2panda/test/bytecode_file_size_comparison/
H A Dsize_compare.py110 description = "Generate bytecode file size statistics for js-ts-java benchmarking test cases."
244 cases = glob(glob_expression, recursive=True)
245 for case in cases:
351 # download workload cases
393 # add cases
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/litecg/
H A Dlmir_builder.cpp440 std::vector<std::pair<int64_t, BB *>> &cases) in CreateSwitchInternal()
443 for (auto caseBranch : cases) { in CreateSwitchInternal()
439 CreateSwitchInternal(Type *type, Expr cond, BB &defaultBB, std::vector<std::pair<int64_t, BB *>> &cases) CreateSwitchInternal() argument
/arkcompiler/ets_frontend/ets2panda/parser/
H A DstatementParser.cpp1147 ArenaVector<ir::SwitchCaseStatement *> cases(Allocator()->Adapter()); in ParseSwitchStatement()
1150 cases.push_back(ParseSwitchCaseStatement(&seenDefault)); in ParseSwitchStatement()
1153 auto *switchStatement = AllocNode<ir::SwitchStatement>(discriminant, std::move(cases)); in ParseSwitchStatement()
/arkcompiler/ets_frontend/ets2panda/checker/
H A DETSchecker.h568 void CheckForSameSwitchCases(ArenaVector<ir::SwitchCaseStatement *> const &cases);
794 void CheckItemCasesConstant(ArenaVector<ir::SwitchCaseStatement *> const &cases);
795 void CheckItemCasesDuplicate(ArenaVector<ir::SwitchCaseStatement *> const &cases);
/arkcompiler/ets_frontend/es2panda/parser/
H A DstatementParser.cpp1806 ArenaVector<ir::SwitchCaseStatement *> cases(Allocator()->Adapter()); in ParseSwitchStatement()
1809 cases.push_back(ParseSwitchCaseStatement(&seenDefault)); in ParseSwitchStatement()
1812 auto *switchStatement = AllocNode<ir::SwitchStatement>(localCtx.GetScope(), discriminant, std::move(cases)); in ParseSwitchStatement()

Completed in 19 milliseconds