| /arkcompiler/ets_runtime/ecmascript/mem/ |
| D | object_xray.h | 123 …inline void VisitObjectBody(TaggedObject *object, JSHClass *klass, const EcmaObjectRangeVisitor &v… in VisitObjectBody() argument 140 JSObject::Cast(object)->VisitRangeSlot(visitor); in VisitObjectBody() 143 JSAsyncFromSyncIterator::Cast(object)->VisitRangeSlot(visitor); in VisitObjectBody() 146 JSGlobalObject::Cast(object)->VisitRangeSlot(visitor); in VisitObjectBody() 149 auto jsFunctionBase = JSFunctionBase::Cast(object); in VisitObjectBody() 154 auto jsFunction = JSFunction::Cast(object); in VisitObjectBody() 159 auto jsGeneratorFunction = JSGeneratorFunction::Cast(object); in VisitObjectBody() 164 auto jsGeneratorFunction = JSAsyncGeneratorFunction::Cast(object); in VisitObjectBody() 169 auto jsProxyRevocFunction = JSProxyRevocFunction::Cast(object); in VisitObjectBody() 174 auto jsPromiseReactionsFunction = JSPromiseReactionsFunction::Cast(object); in VisitObjectBody() [all …]
|
| D | heap-inl.h | 35 #define CHECK_OBJ_AND_THROW_OOM_ERROR(object, size, space, message) … argument 36 …if (UNLIKELY((object) == nullptr)) { … 39 …object = reinterpret_cast<TaggedObject *>((space)->Allocate(size)); … 133 auto object = reinterpret_cast<TaggedObject *>(activeSemiSpace_->Allocate(size)); in AllocateYoungOrHugeObject() local 134 if (object == nullptr) { in AllocateYoungOrHugeObject() 136 object = reinterpret_cast<TaggedObject *>(activeSemiSpace_->Allocate(size)); in AllocateYoungOrHugeObject() 137 if (object == nullptr) { in AllocateYoungOrHugeObject() 139 object = reinterpret_cast<TaggedObject *>(activeSemiSpace_->Allocate(size)); in AllocateYoungOrHugeObject() 140 … CHECK_OBJ_AND_THROW_OOM_ERROR(object, size, activeSemiSpace_, "Heap::AllocateYoungOrHugeObject"); in AllocateYoungOrHugeObject() 143 return object; in AllocateYoungOrHugeObject() [all …]
|
| D | parallel_marker-inl.h | 30 inline void NonMovableMarker::MarkObject(uint32_t threadId, TaggedObject *object) in MarkObject() argument 32 Region *objectRegion = Region::ObjectAddressToRange(object); in MarkObject() 38 if (objectRegion->AtomicMark(object)) { in MarkObject() 39 workManager_->Push(threadId, object, objectRegion); in MarkObject() 183 inline void MovableMarker::UpdateForwardAddressIfSuccess(uint32_t threadId, TaggedObject *object, J… in UpdateForwardAddressIfSuccess() argument 186 …if (memcpy_s(ToVoidPtr(toAddress + HEAD_SIZE), size - HEAD_SIZE, ToVoidPtr(ToUintPtr(object) + HEA… in UpdateForwardAddressIfSuccess() 196 …heap_->OnMoveEvent(reinterpret_cast<intptr_t>(object), reinterpret_cast<TaggedObject *>(toAddress)… in UpdateForwardAddressIfSuccess() 203 inline bool MovableMarker::UpdateForwardAddressIfFailed(TaggedObject *object, uintptr_t toAddress, … in UpdateForwardAddressIfFailed() argument 207 TaggedObject *dst = MarkWord(object).ToForwardingAddress(); in UpdateForwardAddressIfFailed() 212 inline SlotStatus SemiGCMarker::MarkObject(uint32_t threadId, TaggedObject *object, ObjectSlot slot) in MarkObject() argument [all …]
|
| /arkcompiler/runtime_core/runtime/mem/gc/ |
| D | gc_marker.h | 54 const ObjectHeader *object, const BaseClass *cls); 63 …* Iterate over all fields with references of object and add all not null object references to the … 65 * @param object 66 …* @param base_cls - class of object(used for perf in case if class for the object already was obta… 68 …void HandleObject(GCMarkingStackType *objects_stack, const ObjectHeader *object, const Class *cls); 71 * Iterate over class data and add all found not null object references to the objects_stack 78 * For arrays of objects add all not null object references to the objects_stack 80 * @param array_object - array object 81 * @param cls - class of array object(used for perf) 94 const ObjectHeader *object, const BaseClass *cls); [all …]
|
| D | gc_adaptive_stack.h | 53 * This method should be used when we find new object by field from another object. 54 * @param from_object from which object we found object by reference, nullptr for roots 55 * @param object object which will be added to the stack 57 void PushToStack(const ObjectHeader *from_object, const ObjectHeader *object); 60 * This method should be used when we find new object as a root 62 * @param object object which will be added to the stack 64 void PushToStack(RootType root_type, const ObjectHeader *object); 67 * \brief Pop an object from source stack. 69 * and return an object from it. 73 * \brief Check that destination or source stack has at least one object. [all …]
|
| /arkcompiler/runtime_core/tests/cts-generator/cts-template/ |
| D | isinstance.yaml | 20 .record panda.Object <external> 38 .record panda.Object <external> 51 …Resolve object type by specified id and if an object in accumulator is an instance of the resolved… 53 …Object of type O is instance of type T if O is the same as T or is subtype of T. For arrays T shou… 62 description: Check that null object reference is not an instance of any class 65 'null' object is not an instance of any class. 77 - values: ['panda.Object'] 82 description: Check that null object reference is not an instance of any class 85 'null' object is not an instance of any class. 98 - values: ['panda.Object'] [all …]
|
| D | stobj.v.obj.yaml | 18 .record panda.Object <external> 38 panda.Object fObj 39 panda.Object[] fObjArray 45 .record panda.Object <external> 65 panda.Object fObj 66 panda.Object[] fObjArray 72 title: Store register content into object field 74 Store register content into object field by field_id. 84 description: Store register content into object field by field_id. 113 # v0 (object) not initialized in the frame [all …]
|
| D | call.virt.short.yaml | 33 panda.Object[] faPO 46 panda.Object[] faPO 72 title: Object calls 74 Call indicated object method, i.e. create new frame, pass values of arguments and 80 …constant-pool based on object reference using language-specific semantics (currently only PandaAss… 82 Object reference is passed in the first source register, arguments are passed starting from 84 Non-range instructions can be used to pass up to 4 arguments (including object reference). 88 the needed number of arguments starting from 'vs' register (including object reference). 249 - '.record panda.Object <external>' 250 - ',panda.Object[] a1' [all …]
|
| /arkcompiler/ets_frontend/test262/ |
| D | es5_tests.txt | 98 built-ins/BigInt/prototype/valueOf/this-value-invalid-object-throws.js 137 language/expressions/does-not-equals/bigint-and-object.js 145 language/expressions/equals/bigint-and-object.js 217 language/expressions/strict-does-not-equals/bigint-and-object.js 225 language/expressions/strict-equals/bigint-and-object.js 1225 built-ins/Object/create/15.2.3.5-0-1.js 1226 built-ins/Object/create/15.2.3.5-0-2.js 1227 built-ins/Object/create/15.2.3.5-1.js 1228 built-ins/Object/create/15.2.3.5-1-1.js 1229 built-ins/Object/create/15.2.3.5-1-2.js [all …]
|
| D | CI_tests.txt | 71 built-ins/NativeErrors/RangeError/is-error-object.js 81 built-ins/NativeErrors/SyntaxError/is-error-object.js 85 built-ins/NativeErrors/SyntaxError/prototype/not-error-object.js 116 built-ins/Promise/all/ctx-non-object.js 135 built-ins/Promise/race/ctx-non-object.js 149 built-ins/Promise/reject/ctx-non-object.js 202 built-ins/Reflect/set/target-is-not-object-throws.js 206 built-ins/Reflect/setPrototypeOf/proto-is-not-object-and-not-null-throws.js 217 built-ins/Object/S15.2.1.1_A1_T1.js 218 built-ins/Object/S15.2.1.1_A2_T1.js [all …]
|
| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins_object.h | 32 // 19.1.1.1Object ( [ value ] ) 35 // 19.1.2.1Object.assign ( target, ...sources ) 37 // 19.1.2.2Object.create ( O [ , Properties ] ) 39 // 19.1.2.3Object.defineProperties ( O, Properties ) 41 // 19.1.2.4Object.defineProperty ( O, P, Attributes ) 43 // 19.1.2.5Object.freeze ( O ) 45 // 19.1.2.6Object.getOwnPropertyDescriptor ( O, P ) 47 // 19.1.2.7Object.getOwnPropertyNames ( O ) 49 // 19.1.2.8Object.getOwnPropertySymbols ( O ) 51 // 19.1.2.9Object.getPrototypeOf ( O ) [all …]
|
| D | builtins_object.cpp | 31 // 19.1.1.1 Object ( [ value ] ) 36 BUILTINS_API_TRACE(thread, Object, Constructor); in ObjectConstructor() 63 // 19.1.2.1 Object.assign ( target, ...sources ) 68 BUILTINS_API_TRACE(thread, Object, Assign); in Assign() 139 BUILTINS_API_TRACE(thread, Object, DefineProperties); in ObjectDefineProperties() 141 // 1.If Type(O) is not Object, throw a TypeError exception. in ObjectDefineProperties() 144 THROW_TYPE_ERROR_AND_RETURN(thread, "is not an object", JSTaggedValue::Exception()); in ObjectDefineProperties() 211 // 19.1.2.2 Object.create ( O [ , Properties ] ) 216 BUILTINS_API_TRACE(thread, Object, Create); in Create() 218 // 1.If Type(O) is neither Object nor Null, throw a TypeError exception. in Create() [all …]
|
| /arkcompiler/toolchain/tooling/base/ |
| D | pt_events.cpp | 26 std::unique_ptr<PtJson> object = PtJson::CreateObject(); in ToJson() local 27 object->Add("method", GetName().c_str()); in ToJson() 28 object->Add("params", result); in ToJson() 30 return object; in ToJson() 58 std::unique_ptr<PtJson> object = PtJson::CreateObject(); in ToJson() local 59 object->Add("method", GetName().c_str()); in ToJson() 60 object->Add("params", result); in ToJson() 62 return object; in ToJson() 69 std::unique_ptr<PtJson> object = PtJson::CreateObject(); in ToJson() local 70 object->Add("method", GetName().c_str()); in ToJson() [all …]
|
| /arkcompiler/runtime_core/pandastdlib/ |
| D | pandastdlib.pa | 15 .record panda.Object <external> 24 .record Object {} 30 panda.Object cause 35 panda.Object cause 40 panda.Object cause 45 panda.Object cause 50 panda.Object cause 55 panda.Object cause 60 panda.Object cause 65 panda.Object cause [all …]
|
| /arkcompiler/runtime_core/runtime/mem/ |
| D | object_helpers.h | 59 * Validate that object is correct from point of view of GC. 60 * For example it checks that class of the object is not nullptr. 61 * @param from_object object from which we found object by reference 62 * @param object object which we want to validate 65 [[maybe_unused]] const ObjectHeader *object) in ValidateObject() argument 68 if (object == nullptr) { in ValidateObject() 71 …an be null, because sometimes we call Validate when we don't know previous object (for example when in ValidateObject() 73 if (object->template ClassAddr<BaseClass>() == nullptr) { in ValidateObject() 74 …LOG(ERROR, GC) << " Broken object doesn't have class: " << object << " accessed from object: " << … in ValidateObject() 81 * Validate that object (which is gc-root) is correct from point of view of GC [all …]
|
| D | alloc_config.h | 30 …d be raw memory for any reason or memory for object in the programming language. If it's a memory … 31 …* we can cast void* to object and get the specific size of this object, otherwise we should believ… 50 * \brief Initialize an object memory allocated by an allocator. 58 // zero init should be visible from other threads even if pointer to object was fetched in MemoryInit() 65 * \brief Record new allocation of an object and add it to Crossing Map. 73 * \brief Record free call of an object and remove it from Crossing Map. 74 * @param obj_addr - pointer to the removing object (object header). 75 * @param obj_size - size of the removing object. 76 * @param next_obj_addr - pointer to the next object (object header). It can be nullptr. 77 * @param prev_obj_addr - pointer to the previous object (object header). It can be nullptr. [all …]
|
| D | heap_verifier.cpp | 57 LOG_HEAP_VERIFIER << "Heap corruption found! Heap object " << std::hex << object_header in operator ()() 58 << " references a dead object at " << referent; in operator ()() 61 LOG_HEAP_VERIFIER << "Heap corruption found! Heap object " << std::hex << object_header in operator ()() 62 << " references a forwarded object at " << referent; in operator ()() 81 …LOG_HEAP_VERIFIER << "Heap corruption found! Root references a dead object at " << std::hex << ref… in operator ()() 84 …LOG_HEAP_VERIFIER << "Heap corruption found! Root references a forwarded object at " << std::hex <… in operator ()() 142 … LOG_HEAP_VERIFIER << "Heap object " << std::hex << object_header << " is forwarded object"; in VerifyAll() 147 LOG_HEAP_VERIFIER << "Heap object " << std::hex << object_header in VerifyAll() 153 auto collect_objects = [&](ObjectHeader *object) { in VerifyAll() argument 154 heap_objects.insert(object); in VerifyAll() [all …]
|
| /arkcompiler/runtime_core/libpandabase/mem/ |
| D | object_pointer.h | 24 * @class ObjectPointer<class Object> 26 * \brief This class is wrapper for object types. 28 …* Wraps pointer Object * into class ObjectPointer<Object> and provides interfaces to work with it … 29 * This is needed to use object pointers of size 32 bits in 64-bit architectures. 31 template <class Object> 36 ObjectPointer(Object *object) : object_(ToObjPtrType(object)) in ObjectPointer() argument 39 ASSERT(IsInObjectsAddressSpace(ToUintPtr(object))); in ObjectPointer() 54 ObjectPointer &operator=(const Object *object) 57 ASSERT(IsInObjectsAddressSpace(ToUintPtr(object))); 59 object_ = ToObjPtrType(object); [all …]
|
| /arkcompiler/ets_runtime/test/aottest/aot_compatibility_test/builtins_api/ |
| D | expect_output.txt | 15 Object.getOwnPropertyNames: 16 Object.getOwnPropertyDescriptor: undefined 17 Object.keys(): 23 Object.getOwnPropertyNames: b 24 Object.getOwnPropertyDescriptor: [object Object] 25 Object.keys(): b 29 Reflect.getOwnPropertyDescriptor(): [object Object]
|
| D | builtins_api.ts | 23 print("Object.getOwnPropertyNames:", Object.getOwnPropertyNames(this)); 24 print("Object.getOwnPropertyDescriptor:", Object.getOwnPropertyDescriptor(this,"b")); 25 print("Object.keys():", Object.keys(this)); 32 print("Object.getOwnPropertyNames:", Object.getOwnPropertyNames(this)); 33 print("Object.getOwnPropertyDescriptor:", Object.getOwnPropertyDescriptor(this,"b")); 34 print("Object.keys():", Object.keys(this));
|
| /arkcompiler/runtime_core/runtime/mem/gc/stw-gc/ |
| D | stw-gc.h | 34 bool MarkIfNotMarked(ObjectHeader *object) const in MarkIfNotMarked() argument 37 return Base::template MarkIfNotMarked<false>(object); in MarkIfNotMarked() 39 return Base::template MarkIfNotMarked<true>(object); in MarkIfNotMarked() 42 void Mark(ObjectHeader *object) const in Mark() argument 45 LOG(DEBUG, GC) << "Set mark for GC " << GetDebugInfoAboutObject(object); in Mark() 46 Base::template Mark<false>(object); in Mark() 48 LOG(DEBUG, GC) << "Set unmark for GC " << GetDebugInfoAboutObject(object); in Mark() 49 Base::template Mark<true>(object); in Mark() 53 bool IsMarked(const ObjectHeader *object) const in IsMarked() argument 56 LOG(DEBUG, GC) << "Get marked for GC " << GetDebugInfoAboutObject(object); in IsMarked() [all …]
|
| /arkcompiler/runtime_core/docs/diagrams/ |
| D | gc-mark.puactivity | 22 :Get an object from the stack; 23 if (object is in collected space) then(Yes) 24 if (The object is a Reference object in the same generation space with reference) then(Yes) 25 if (the referent object is marked) then(Yes) 27 :Put the object into the corresponding queue; 31 :Mark all fields in object; 37 mark object == mark object and add all non-primitive fields to the Mark Stack 38 …mark all fields in object == mark all directly referenced objects and add their un-marked fields t…
|
| /arkcompiler/runtime_core/runtime/mem/gc/heap-space-misc/ |
| D | crossing_map.h | 30 // since now we dirty card by object header, so disable cross-border 58 // This element (or map) can be used to get the first object address, which starts inside this page… 59 // or an object address, which crosses the borders of this page. 77 * \brief Add object to the Crossing map. 78 * @param obj_addr - pointer to the object (object header). 79 * @param obj_size - size of the object. 84 * \brief Remove object from the Crossing map. 86 * Therefore, during removing we need to send next and previous object parameters. 87 * @param obj_addr - pointer to the removing object (object header). 88 * @param obj_size - size of the removing object. [all …]
|
| /arkcompiler/runtime_core/runtime/tests/tooling/ |
| D | test_runner.h | 61 … void Exception(PtThread thread, Method *method, const PtLocation &location, ObjectHeader *object, in Exception() argument 65 test_->exception(thread, method, location, object, catch_method, catch_location); in Exception() 69 …onCatch(PtThread thread, Method *method, const PtLocation &location, ObjectHeader *object) override in ExceptionCatch() argument 72 test_->exception_catch(thread, method, location, object); in ExceptionCatch() 76 …d PropertyAccess(PtThread thread, Method *method, const PtLocation &location, ObjectHeader *object, in PropertyAccess() argument 80 test_->property_access(thread, method, location, object, property); in PropertyAccess() 84 …ertyModification(PtThread thread, Method *method, const PtLocation &location, ObjectHeader *object, in PropertyModification() argument 88 test_->property_modification(thread, method, location, object, property, new_value); in PropertyModification() 199 void InspectRequested(PtObject object, PtObject hints) override in InspectRequested() argument 202 test_->inspect_requested(object, hints); in InspectRequested() [all …]
|
| /arkcompiler/runtime_core/runtime/tooling/inspector/tests/ |
| D | json_property_test.cpp | 32 JsonObject object(R"({ in TEST() local 36 const JsonObject &b = **object.GetValue<JsonObject::JsonObjPointer>("b"); in TEST() 39 EXPECT_TRUE(GetProperty<JsonObject::NumT>(doubleValue, object, "a")); in TEST() 43 EXPECT_TRUE(GetProperty<JsonObject::NumT>(intValue, object, "a")); in TEST() 47 EXPECT_FALSE(GetProperty<JsonObject::StringT>(stringValue, object, "a")); in TEST() 51 EXPECT_TRUE(GetProperty<JsonObject::JsonObjPointer>(objectValue, object, "b")); in TEST() 54 EXPECT_TRUE(GetProperty<JsonObject::StringT>(stringValue, object, "b", "s", "x")); in TEST() 57 EXPECT_FALSE(GetProperty<JsonObject::NumT>(intValue, object, "b", "s", "x")); in TEST() 60 EXPECT_FALSE(GetProperty<JsonObject::NumT>(intValue, object, "c")); in TEST() 67 JsonObject object(R"({"foo": {"bar": true}})"); in TEST() local [all …]
|