Home
last modified time | relevance | path

Searched full:isinstance (Results 1 – 25 of 146) sorted by relevance

123456

/arkcompiler/runtime_core/static_core/tests/checked/
Disinstance_elimination.pa17 #! CHECKER IsInstance cannot be replaced by true for nullable object.
21 #! INST_COUNT "IsInstance", 2
37 isinstance A
42 isinstance A
52 #! CHECKER IsInstance inputs from both branches have type A, replace with true.
56 #! INST "IsInstance"
58 #! INST_NOT "IsInstance"
70 isinstance A
90 #! CHECKER Not applied, IsInstance result is different for two branches.
94 #! INST "IsInstance"
[all …]
Disinstance_elimination_test.pa14 #! CHECKER IsInstance Elimination applied
18 #! INST_NOT "IsInstance"
27 isinstance A1
32 isinstance A1
36 isinstance A1
Disinstance_nullcheck.pa20 #! CHECKER Null check inside IsInstance can be omitted if its input is NullCheck
22 #! EVENT /CodegenSimplification,ISINSTANCE,SKIP_NULLCHECK/
27 isinstance R
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/srcdumper/
Dutil_srcdumper.py59 if isinstance(ast, list):
63 elif isinstance(ast, dict):
74 if isinstance(ast, list):
76 if isinstance(ast[i], dict) and ast[i].get("type") == "EmptyStatement":
81 elif isinstance(ast, dict):
90 if isinstance(ast, list):
92 if isinstance(ast[i], dict) and ast[i].get("type") == "BlockStatement":
99 elif isinstance(ast, dict):
101 if not isinstance(value, dict) or value.get("type") != "BlockStatement":
114 if isinstance(ast, list):
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/compiler_verification/
Dast.py63 if not isinstance(statements_list, list):
76 if isinstance(ast_node, dict):
77 … if (name := ast_node.get("name")) and isinstance(name, str) and name.startswith(prefix):
80 if isinstance(ast_node, list):
88 if isinstance(ast_node, dict):
89 if (stmts := ast_node.get("statements")) and isinstance(stmts, list):
94 elif isinstance(ast_node, list):
96 … _remove_cctor_call(x) for x in ast_node if not (isinstance(x, dict) and _imports_trigger_cctor(x))
104 if not isinstance(statements_list, list):
112 if key == "name" and isinstance(value, str):
[all …]
/arkcompiler/runtime_core/static_core/compiler/docs/
Dobject_type_check_elimination_doc.md3 **Object Type Check Elimination** - optimization which try to reduce number of IsInstance/CheckCast…
13 Visit `IsInstance` and `CheckCast` instructions in RPO order and try to elimiate them.
15 ### IsInstance subsection
17 `IsInstance` is replaced by 1 if an object in input can be cast to the resolved type, else replaced…
38 isinstance A // will replaced by 1
41 isinstance A // will replaced by 0
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/
Dobject_type_check_elimination.cpp67 * This function try to replace IsInstance with a constant.
68 * If input of IsInstance is Nullptr then it replaced by zero constant.
72 ASSERT(inst->GetOpcode() == Opcode::IsInstance); in TryEliminateIsInstance()
85 auto isInstance = inst->CastToIsInstance(); in TryEliminateIsInstance() local
86 if (!graph->IsBytecodeOptimizer() && IsMember(ref, isInstance->GetTypeId(), isInstance)) { in TryEliminateIsInstance()
93 auto tgtKlass = graph->GetRuntime()->GetClass(isInstance->GetMethod(), isInstance->GetTypeId()); in TryEliminateIsInstance()
95 // But we can't change the IsInstance to Deoptimize, because we can resolve after compilation in TryEliminateIsInstance()
103 // If ref can be null, IsInstance cannot be changed to true in TryEliminateIsInstance()
113 // If class of ref can be subclass of ref_klass, IsInstance cannot be changed to false in TryEliminateIsInstance()
174 case Opcode::IsInstance: in IsMember()
[all …]
Dobject_type_check_elimination.h61 * This function try to replace IsInstance with a constant.
62 * If input of IsInstance is Nullptr then it replaced by zero constant.
83 static bool IsSuccessfulIsInstance(IsInstanceInst *isInstance, uint32_t typeId, Inst *refUser);
/arkcompiler/runtime_core/static_core/tests/cts-assembly/
Dobj-25.pa16 #Assert that operation isinstance works fine
30 isinstance Asm
34 isinstance Asm
37 isinstance panda.Object
Dobj-35.pa14 # check that isinstance doesn't trigger cctor
34 isinstance R1
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/options/
Ddecorator_value.py72 if isinstance(cli_name, str):
75 elif isinstance(cli_name, list):
91 if isinstance(names, str):
113 if isinstance(name, str):
120 if name_value is not None and isinstance(name_value, list):
130 if isinstance(cli_value, bool):
138 if isinstance(cli_value, int):
146 if isinstance(cli_value, str) and cli_value.lower() == "all":
154 if isinstance(cli_value, int):
170 if isinstance(cli_value, str):
[all …]
Dyaml_document.py67 if current and isinstance(current, dict) and part in current.keys():
71 if current is None or isinstance(current, (bool, int, list, str)):
93 …if current_value and isinstance(current_value, dict) and parent_value and isinstance(parent_value,…
97 …if current_value and isinstance(current_value, list) and parent_value and isinstance(parent_value,…
/arkcompiler/runtime_core/tests/cts-assembly/
Dobj-25.pa14 #Assert that operation isinstance works fine
28 isinstance Asm
32 isinstance Asm
Dobj-35.pa14 # check that isinstance doesn't trigger cctor
34 isinstance R1
/arkcompiler/runtime_core/static_core/tests/cts-generator/cts-template/
Disinstance.yaml25 - file-name: "isinstance"
34 - sig: isinstance type_id
48 isinstance %s
67 isinstance %s
111 isinstance panda.Object
114 isinstance panda.Class
117 isinstance panda.String
120 isinstance panda.ClassCastException
123 isinstance R
145 isinstance %s
[all …]
/arkcompiler/runtime_core/tests/cts-generator/cts-template/
Disinstance.yaml47 - file-name: "isinstance"
56 - sig: isinstance type_id
72 isinstance %s
93 isinstance %s
117 isinstance %s
162 isinstance panda.Object
165 isinstance panda.Class
168 isinstance panda.String
171 isinstance panda.ClassCastException
174 isinstance R
[all …]
Dthrow.yaml147 isinstance panda.NullPointerException
150 isinstance panda.Object
180 isinstance panda.NullPointerException
183 isinstance panda.Object
322 isinstance panda.NullPointerException
325 isinstance panda.Object
336 isinstance E1
339 isinstance panda.Object
350 isinstance E2
353 isinstance panda.Object
[all …]
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/
Dchapters.py59 if not yaml_header or not isinstance(yaml_header, dict):
62 if not yaml_chapters or not isinstance(yaml_chapters, list):
65 if not isinstance(yaml_chapter, dict):
79 if isinstance(yaml_item, str):
81 elif isinstance(yaml_item, dict):
83 if sub_name == 'exclude' and isinstance(sub_items, list):
93 if not isinstance(yaml_items, list):
/arkcompiler/runtime_core/libabckit/tests/ut/isa/isa_static/is_instance/
Dis_instance.cpp49 AbckitInst *isInstance = g_statG->iCreateIsInstance(graph, initObj, type); in TransformIsInstanceIr() local
50 ASSERT_NE(isInstance, nullptr); in TransformIsInstanceIr()
53 g_implG->iInsertAfter(isInstance, initObj); in TransformIsInstanceIr()
56 helpers::ReplaceInst(ret, g_statG->iCreateReturn(graph, isInstance)); in TransformIsInstanceIr()
/arkcompiler/runtime_core/static_core/tests/irtoc-interpreter-tests/
Dnewobj.pa47 isinstance Asm
52 isinstance Asm
/arkcompiler/runtime_core/tests/irtoc-interpreter-tests/
Dnewobj.pa47 isinstance Asm
52 isinstance Asm
/arkcompiler/runtime_core/libabckit/tests/ut/ir_core/graph_verifier/
Dgraph_verifier.cpp48 AbckitInst *isInstance = g_statG->iCreateIsInstance(graph, initObj, type); in TransformIrNegativeInst() local
49 ASSERT_NE(isInstance, nullptr); in TransformIrNegativeInst()
53 g_implG->iSetInput(isInstance, idx, 0); in TransformIrNegativeInst()
56 g_implG->iInsertAfter(isInstance, initObj); in TransformIrNegativeInst()
59 helpers::ReplaceInst(ret, g_statG->iCreateReturn(graph, isInstance)); in TransformIrNegativeInst()
/arkcompiler/runtime_core/libabckit/tests/ut/isa/isa_static/classes/
Dclasses_api.cpp62 AbckitInst *isInstance = g_statG->iCreateIsInstance(graph, initObj, type); in IsetClass() local
63 ASSERT_NE(isInstance, nullptr); in IsetClass()
66 g_statG->iSetClass(isInstance, klass); in IsetClass()
69 g_implG->iInsertAfter(isInstance, initObj); in IsetClass()
72 helpers::ReplaceInst(ret, g_statG->iCreateReturn(graph, isInstance)); in IsetClass()
/arkcompiler/runtime_core/static_core/plugins/ets/tests/checked/
Dets_typeof_compare1.sts22 //! INST_NOT "IsInstance"
25 //! INST_COUNT "IsInstance",1
Dets_typeof_compare6.sts22 //! INST_NOT "IsInstance"
25 //! INST_COUNT "IsInstance",1

123456