| /arkcompiler/runtime_core/docs/ |
| D | PBC2IR.md | 19 | lda.str | ref LoadString | 21 | lda.type | ref LoadType | 150 | ldarr.8 | SaveState, ref NullCheck, i32 LenArray, i32 BoundsCheck, i8 LoadArray | 151 | ldarru.8 | SaveState, ref NullCheck, i32 LenArray, i32 BoundsCheck, u8 LoadArray | 152 | ldarr.16 | SaveState, ref NullCheck, i32 LenArray, i32 BoundsCheck, i16 LoadArray | 153 | ldarru.16 | SaveState, ref NullCheck, i32 LenArray, i32 BoundsCheck, u16 LoadArray | 154 | ldarr | SaveState, ref NullCheck, i32 LenArray, i32 BoundsCheck, i32 LoadArray | 155 | ldarr.64 | SaveState, ref NullCheck, i32 LenArray, i32 BoundsCheck, i64 LoadArray | 156 | fldarr.32 | SaveState, ref NullCheck, i32 LenArray, i32 BoundsCheck, f32 LoadArray | 157 | fldarr.64 | SaveState, ref NullCheck, i32 LenArray, i32 BoundsCheck, f64 LoadArray | [all …]
|
| /arkcompiler/runtime_core/runtime/mem/refstorage/ |
| D | reference_storage.cpp | 73 bool ReferenceStorage::IsValidRef(const Reference *ref) in IsValidRef() argument 75 ASSERT(ref != nullptr); in IsValidRef() 76 auto type = Reference::GetType(ref); in IsValidRef() 80 res = StackReferenceCheck(ref); in IsValidRef() 82 // global-storage should accept ref with type in IsValidRef() 83 res = global_storage_->IsValidGlobalRef(ref); in IsValidRef() 85 auto ref_without_type = Reference::GetRefWithoutType(ref); in IsValidRef() 86 …ODO(alovkov): can be optimized with mmap + make additional checks that we really have ref in slots, in IsValidRef() 93 Reference::ObjectType ReferenceStorage::GetObjectType(const Reference *ref) in GetObjectType() argument 95 return ref->GetType(); in GetObjectType() [all …]
|
| D | global_object_storage.h | 50 * Check whether ref is a valid global reference or not. 52 bool IsValidGlobalRef(const Reference *ref) const; 131 … | Reference* (index) | index | 0/1 (ref-type) | 0/1 (ref-type) | 200 auto ref = IndexToReference(current_index); in Add() local 205 return ref; in Add() 232 ObjectHeader *Get(const Reference *ref) const in Get() argument 235 auto index = ReferenceToIndex(ref); in Get() 239 void Remove(const Reference *ref) in Remove() argument 242 auto index = ReferenceToIndex(ref); in Remove() 253 auto ref = storage_[index]; in UpdateMovedRefs() local [all …]
|
| D | global_object_storage.cpp | 44 bool GlobalObjectStorage::IsValidGlobalRef(const Reference *ref) const in IsValidGlobalRef() 46 ASSERT(ref != nullptr); in IsValidGlobalRef() 47 Reference::ObjectType type = Reference::GetType(ref); in IsValidGlobalRef() 50 if (!global_storage_->IsValidGlobalRef(ref)) { in IsValidGlobalRef() 54 if (!weak_storage_->IsValidGlobalRef(ref)) { in IsValidGlobalRef() 67 Reference *ref = nullptr; in Add() local 69 ref = global_storage_->Add(object); in Add() 71 ref = weak_storage_->Add(object); in Add() 73 if (ref != nullptr) { in Add() 74 ref = Reference::SetType(ref, type); in Add() [all …]
|
| D | ref_block.cpp | 36 auto *ref = reinterpret_cast<Reference *>(&refs_[index]); in AddRef() local 37 ref = Reference::SetType(ref, type); in AddRef() 38 return ref; in AddRef() 41 void RefBlock::Remove(const Reference *ref) in Remove() argument 44 ref = Reference::GetRefWithoutType(ref); in Remove() 46 auto ref_ptr = ToUintPtr(ref); in Remove() 65 … LOG(DEBUG, GC) << " Found root from ref-storage: " << mem::GetDebugInfoAboutObject(obj); in VisitObjects() 151 for (const auto &ref : refs) { in PrintBlock() local 152 std::cout << ref << " "; in PrintBlock()
|
| D | reference.h | 101 static ObjectType GetType(const Reference *ref) in GetType() argument 103 auto addr = ToUintPtr(ref); in GetType() 107 static Reference *SetType(Reference *ref, ObjectType type) in SetType() argument 109 auto addr = ToUintPtr(ref); in SetType() 124 static Reference *GetRefWithoutType(const Reference *ref) in GetRefWithoutType() argument 126 auto addr = ToUintPtr(ref); in GetRefWithoutType()
|
| /arkcompiler/runtime_core/compiler/tests/ |
| D | alias_analysis_test.cpp | 39 PARAMETER(0, 0).ref(); in TEST_F() 106 PARAMETER(0, 0).ref(); in TEST_F() 119 INST(8, Opcode::NullCheck).ref().Inputs(0, 7); in TEST_F() 127 INST(14, Opcode::NullCheck).ref().Inputs(0, 13); in TEST_F() 137 INST(20, Opcode::NullCheck).ref().Inputs(0, 19); in TEST_F() 143 INST(25, Opcode::NullCheck).ref().Inputs(0, 24); in TEST_F() 182 PARAMETER(0, 0).ref(); in TEST_F() 188 INST(3, Opcode::NullCheck).ref().Inputs(0, 2); in TEST_F() 202 INST(12, Opcode::NullCheck).ref().Inputs(0, 11); in TEST_F() 229 PARAMETER(0, 0).ref(); in TEST_F() [all …]
|
| D | memory_coalescing_test.cpp | 45 INST(44, Opcode::LoadAndInitClass).ref().Inputs().TypeId(68); in TEST_F() 46 INST(3, Opcode::NewArray).ref().Inputs(44, 0).TypeId(77); in TEST_F() 48 INST(42, Opcode::NullCheck).ref().Inputs(3, 41); in TEST_F() 64 INST(44, Opcode::LoadAndInitClass).ref().Inputs().TypeId(68); in TEST_F() 65 INST(3, Opcode::NewArray).ref().Inputs(44, 0).TypeId(77); in TEST_F() 67 INST(42, Opcode::NullCheck).ref().Inputs(3, 41); in TEST_F() 90 PARAMETER(5, 0).ref(); in TEST_F() 95 INST(36, Opcode::NullCheck).ref().Inputs(5, 35); in TEST_F() 117 PARAMETER(5, 0).ref(); in TEST_F() 122 INST(36, Opcode::NullCheck).ref().Inputs(5, 35); in TEST_F() [all …]
|
| D | code_sink_test.cpp | 86 PARAMETER(2, 2).ref(); in TEST_F() 91 INST(5, Opcode::NullCheck).ref().Inputs(2, 4); in TEST_F() 111 PARAMETER(2, 2).ref(); in TEST_F() 116 INST(5, Opcode::NullCheck).ref().Inputs(2, 4); in TEST_F() 180 PARAMETER(0, 0).ref(); in TEST_F() 181 PARAMETER(1, 1).ref(); in TEST_F() 212 PARAMETER(2, 2).ref(); in TEST_F() 243 PARAMETER(2, 2).ref(); in TEST_F() 280 PARAMETER(0, 0).ref(); in TEST_F() 281 PARAMETER(1, 1).ref(); in TEST_F() [all …]
|
| D | memory_barriers_test.cpp | 32 INST(4, Opcode::LoadAndInitClass).ref().Inputs(1); in TEST_F() 33 INST(2, Opcode::NewArray).ref().Inputs(4, 0, 1); in TEST_F() 35 INST(5, Opcode::NewObject).ref().Inputs(4, 3); in TEST_F() 39 INST(9, Opcode::LoadAndInitClass).ref().Inputs(8); in TEST_F() 40 INST(10, Opcode::NewObject).ref().Inputs(9, 8); in TEST_F() 45 INST(13, Opcode::Return).ref().Inputs(10); in TEST_F()
|
| /arkcompiler/runtime_core/bytecode_optimizer/tests/ |
| D | const_array_resolver_test.cpp | 32 INST(4, Opcode::LoadAndInitClass).ref().Inputs(20).TypeId(68); in TEST_F() 33 INST(3, Opcode::NewArray).ref().Inputs(4, 1, 20); in TEST_F() 36 INST(10, Opcode::Return).ref().Inputs(3); in TEST_F() 55 INST(4, Opcode::LoadAndInitClass).ref().Inputs(20).TypeId(68); in TEST_F() 57 INST(21, Opcode::LoadConstArray).ref().Inputs(22); in TEST_F() 58 INST(10, Opcode::Return).ref().Inputs(21); in TEST_F() 75 INST(4, Opcode::LoadAndInitClass).ref().Inputs(20).TypeId(68); in TEST_F() 76 INST(3, Opcode::NewArray).ref().Inputs(4, 1, 20); in TEST_F() 79 INST(10, Opcode::Return).ref().Inputs(3); in TEST_F() 109 INST(44, Opcode::LoadAndInitClass).ref().Inputs(3).TypeId(68); in TEST_F() [all …]
|
| D | bytecodeopt_peepholes_test.cpp | 100 INST(1, Opcode::LoadAndInitClass).ref().Inputs(0).TypeId(68); in TEST_F() 101 INST(2, Opcode::NewObject).ref().Inputs(1, 0).TypeId(68); in TEST_F() 119 INST(1, Opcode::LoadAndInitClass).ref().Inputs(0).TypeId(68); in TEST_F() 121 INST(8, Opcode::InitObject).ref().Inputs({{REFERENCE, 1}, {NO_TYPE, 3}}); in TEST_F() 138 PARAMETER(10, 0).ref(); in TEST_F() 143 INST(1, Opcode::LoadAndInitClass).ref().Inputs(0); in TEST_F() 144 INST(2, Opcode::NewObject).ref().Inputs(1, 0); in TEST_F() 146 INST(4, Opcode::NullCheck).ref().Inputs(10, 3); in TEST_F() 163 PARAMETER(10, 0).ref(); in TEST_F() 168 INST(1, Opcode::LoadAndInitClass).ref().Inputs(0); in TEST_F() [all …]
|
| /arkcompiler/runtime_core/compiler/docs/ |
| D | memory_barriers_doc.md | 75 2.ref NewArray 1 v0, v1 -> (v6, v3, v8, v11, v12) 77 4.ref LoadAndInitClass 'A' v3 -> (v5) 78 5.ref NewObject 2 v4, v3 -> (v6, v8, v11, v12) 82 9.ref LoadAndInitClass 'B' v8 -> (v10) 83 10.ref NewObject 4 v9, v8 -> (v11, v13) 86 13.ref Return v10 93 Instructions `2.ref NewArray`, `5.ref NewObject` and `10.ref NewObject` have flag `MEM_BARRIER` … 94 `7.void CallStatic` don't have the instructions `2.ref NewArray`, `5.ref NewObject` as inputs. 95 …mizeMemoryBarriers` will remove the flag from these instructions and skip in `10.ref NewObject`.
|
| /arkcompiler/runtime_core/tests/cts-generator/cts-template/ |
| D | lda.obj.yaml | 27 - sig: lda.obj v:in:ref 28 acc: out:ref 133 - sig: lda.obj v:in:ref 134 acc: out:ref 182 - sig: lda.obj v:in:ref 183 acc: out:ref 206 - sig: lda.obj v:in:ref 207 acc: out:ref 242 - sig: lda.obj v:in:ref 243 acc: out:ref [all …]
|
| D | mov.obj.yaml | 27 - sig: mov.obj v1:out:ref, v2:in:ref 135 - sig: mov.obj v1:out:ref, v2:in:ref 186 - sig: mov.obj v1:out:ref, v2:in:ref 230 - sig: mov.obj v1:out:ref, v2:in:ref 271 - sig: mov.obj v1:out:ref, v2:in:ref 311 - sig: mov.obj v1:out:ref, v2:in:ref 343 - sig: mov.obj v1:out:ref, v2:in:ref 390 - sig: mov.obj v1:out:ref, v2:in:ref 458 - sig: mov.obj v1:out:ref, v2:in:ref 527 - sig: mov.obj v1:out:ref, v2:in:ref
|
| D | sta.obj.yaml | 27 - sig: sta.obj v:out:ref 28 acc: in:ref 133 - sig: sta.obj v:out:ref 134 acc: in:ref 155 - sig: sta.obj v:out:ref 156 acc: in:ref 191 - sig: sta.obj v:out:ref 192 acc: in:ref 222 - sig: sta.obj v:out:ref 223 acc: in:ref [all …]
|
| D | monitor.yaml | 93 acc: in:ref 98 acc: in:ref 130 acc: in:ref 135 acc: in:ref 168 acc: in:ref 200 acc: in:ref 240 acc: in:ref 244 acc: in:ref 316 acc: in:ref 320 acc: in:ref
|
| D | lda.const.yaml | 28 - sig: lda.const v:out:ref, literalarray_id 76 - sig: lda.const v:out:ref, literalarray_id 108 - sig: lda.const v:out:ref, literalarray_id 157 - sig: lda.const v:out:ref, literalarray_id 199 - sig: lda.const v:out:ref, literalarray_id 240 - sig: lda.const v:out:ref, literalarray_id 300 - sig: lda.const v:out:ref, literalarray_id 343 - sig: lda.const v:out:ref, literalarray_id 385 - sig: lda.const v:out:ref, literalarray_id 427 - sig: lda.const v:out:ref, literalarray_id [all …]
|
| /arkcompiler/runtime_core/compiler/optimizer/ir/ |
| D | instructions.yaml | 242 signature: [d-ref] 253 signature: [d-ref, ref, int-ngc, save_state] 261 signature: [d-ref, ref, save_state] 269 signature: [d-ref, real-dyn, save_state] 277 signature: [d-real, ref-nc, int-bc] 283 signature: [d-u16, ref-nc, int-bc, int] 289 signature: [ref-nc, int-bc, real] 295 signature: [d-real, ref-nc] 303 signature: [d-real, ptr-ref, int] 310 signature: [d-real, ptr-ref] [all …]
|
| /arkcompiler/runtime_core/runtime/tests/ |
| D | object_helpers_test.cpp | 137 auto handler = [&found]([[maybe_unused]] ObjectHeader *obj, [[maybe_unused]] ObjectHeader *ref, in TEST_F() 163 …auto handler = [klass, &count, expected](ObjectHeader *obj, ObjectHeader *ref, uint32_t offset, bo… in TEST_F() argument 166 EXPECT_EQ(expected, ref); in TEST_F() 167 EXPECT_EQ(ref, ObjectAccessor::GetObject<false>(obj, offset)); in TEST_F() 192 …auto handler = [klass, &count, expected](ObjectHeader *obj, ObjectHeader *ref, uint32_t offset, bo… in TEST_F() argument 195 EXPECT_EQ(expected, ref); in TEST_F() 196 EXPECT_EQ(ref, ObjectAccessor::GetObject<true>(obj, offset)); in TEST_F() 223 …auto handler = [object, &count, expected](ObjectHeader *obj, ObjectHeader *ref, uint32_t offset, b… in TEST_F() argument 226 EXPECT_EQ(expected, ref); in TEST_F() 227 EXPECT_EQ(ref, ObjectAccessor::GetObject<false>(obj, offset)); in TEST_F() [all …]
|
| /arkcompiler/ets_frontend/test262/ |
| D | es2abc_skip_tests.json | 5 "language/expressions/async-arrow-function/dflt-params-ref-later.js", 6 "language/expressions/async-arrow-function/dflt-params-ref-self.js", 9 "language/expressions/async-function/named-dflt-params-ref-later.js", 10 "language/expressions/async-function/named-dflt-params-ref-self.js", 11 "language/expressions/async-function/nameless-dflt-params-ref-later.js", 12 "language/expressions/async-function/nameless-dflt-params-ref-self.js", 13 "language/statements/async-function/dflt-params-ref-later.js", 14 "language/statements/async-function/dflt-params-ref-self.js", 115 "language/expressions/async-generator/dflt-params-ref-later.js", 116 "language/expressions/async-generator/named-dflt-params-ref-self.js", [all …]
|
| /arkcompiler/runtime_core/compiler/optimizer/optimizations/ |
| D | object_type_check_elimination.cpp | 74 auto ref = inst->GetDataFlowInput(0); in TryEliminateIsInstance() local 81 ref->SetObjectTypeInfo(ObjectTypeInfo()); in TryEliminateIsInstance() 86 if (ref->GetOpcode() == Opcode::NullPtr) { in TryEliminateIsInstance() 91 auto ref_info = ref->GetObjectTypeInfo(); in TryEliminateIsInstance() 100 ref->SetObjectTypeInfo(ObjectTypeInfo()); in TryEliminateIsInstance() 109 auto ref = inst->GetDataFlowInput(0); in TryEliminateCheckCast() local 116 ref->SetObjectTypeInfo(ObjectTypeInfo()); in TryEliminateCheckCast() 120 if (ref->GetOpcode() == Opcode::NullPtr) { in TryEliminateCheckCast() 125 auto ref_info = ref->GetObjectTypeInfo(); in TryEliminateCheckCast() 137 ref->SetObjectTypeInfo(ObjectTypeInfo()); in TryEliminateCheckCast()
|
| /arkcompiler/ets_frontend/es2panda/typescript/types/ |
| D | typeReference.h | 25 explicit TypeReference(Type **ref) : Type(TypeFlag::TYPE_REFERENCE), ref_(ref) {} in TypeReference() argument 27 Type *Ref() in Ref() function 32 const Type *Ref() const in Ref() function
|
| /arkcompiler/ets_frontend/es2panda/compiler/core/ |
| D | function.cpp | 63 LReference ref = LReference::CreateLRef(pg, param, true); in CompileFunctionParameterDeclaration() local 65 [[maybe_unused]] binder::Variable *paramVar = ref.Variable(); in CompileFunctionParameterDeclaration() 67 if (ref.Kind() == ReferenceKind::DESTRUCTURING) { in CompileFunctionParameterDeclaration() 81 ref.Kind() == ReferenceKind::DESTRUCTURING ? in CompileFunctionParameterDeclaration() 82 pg->LoadAccumulator(func, paramReg) : ref.GetValue(); in CompileFunctionParameterDeclaration() 86 if (ref.Kind() == ReferenceKind::DESTRUCTURING) { in CompileFunctionParameterDeclaration() 97 ref.SetValue(); in CompileFunctionParameterDeclaration() 102 ref.SetValue(); in CompileFunctionParameterDeclaration() 111 } else if (ref.Kind() == ReferenceKind::DESTRUCTURING) { in CompileFunctionParameterDeclaration() 116 ref.SetValue(); in CompileFunctionParameterDeclaration()
|
| /arkcompiler/runtime_core/irtoc/scripts/ |
| D | interpreter.irt | 432 res1 := acc_value.ref 434 res2 := vreg_value(op).ref 436 Phi(res1, res2).ref 520 set_acc_object(acc_ptr, string).ref 527 set_acc_object(acc_ptr, type).ref 533 set_object(v, cnst).ref 667 set_object(vd, array).ref 673 null_check := NullCheck(vs.ref, ss).ref 682 null_check := NullCheck(vs.ref, ss).ref 694 null_check := NullCheck(vs.ref, ss).ref [all …]
|