Home
last modified time | relevance | path

Searched full:object (Results 1 – 25 of 605) sorted by relevance

12345678910>>...25

/ark/js_runtime/ecmascript/mem/
Dobject_xray-inl.h81 void ObjectXRay::VisitObjectBody(TaggedObject *object, JSHClass *klass, const EcmaObjectRangeVisito… in VisitObjectBody() argument
95 JSObject::Cast(object)->VisitRangeSlot(visitor); in VisitObjectBody()
98 JSGlobalObject::Cast(object)->VisitRangeSlot(visitor); in VisitObjectBody()
101 JSFunctionBase::Cast(object)->VisitRangeSlot(visitor); in VisitObjectBody()
104 JSFunction::Cast(object)->VisitRangeSlot(visitor); in VisitObjectBody()
107 JSGeneratorFunction::Cast(object)->VisitRangeSlot(visitor); in VisitObjectBody()
110 JSProxyRevocFunction::Cast(object)->VisitRangeSlot(visitor); in VisitObjectBody()
113 JSPromiseReactionsFunction::Cast(object)->VisitRangeSlot(visitor); in VisitObjectBody()
116 JSPromiseExecutorFunction::Cast(object)->VisitRangeSlot(visitor); in VisitObjectBody()
119 JSPromiseAllResolveElementFunction::Cast(object)->VisitRangeSlot(visitor); in VisitObjectBody()
[all …]
Dheap-inl.h107 auto object = reinterpret_cast<TaggedObject *>(toSpace_->Allocate(size)); in AllocateYoungOrHugeObject() local
108 if (object == nullptr) { in AllocateYoungOrHugeObject()
110 object = reinterpret_cast<TaggedObject *>(toSpace_->Allocate(size)); in AllocateYoungOrHugeObject()
111 if (object == nullptr) { in AllocateYoungOrHugeObject()
113 object = reinterpret_cast<TaggedObject *>(toSpace_->Allocate(size)); in AllocateYoungOrHugeObject()
114 if (UNLIKELY(object == nullptr)) { in AllocateYoungOrHugeObject()
121 object->SetClass(hclass); in AllocateYoungOrHugeObject()
122 OnAllocateEvent(reinterpret_cast<uintptr_t>(object)); in AllocateYoungOrHugeObject()
123 return object; in AllocateYoungOrHugeObject()
147 auto object = reinterpret_cast<TaggedObject *>(toSpace_->Allocate(size)); in TryAllocateYoungGeneration() local
[all …]
Dparallel_marker-inl.h33 inline void NonMovableMarker::MarkObject(uint32_t threadId, TaggedObject *object) in MarkObject() argument
35 Region *objectRegion = Region::ObjectAddressToRange(object); in MarkObject()
43 if (!markBitmap->AtomicTestAndSet(object)) { in MarkObject()
44 heap_->GetWorkList()->Push(threadId, object, objectRegion); in MarkObject()
171 inline void MovableMarker::UpdateForwardAddressIfSuccess(uint32_t threadId, TaggedObject *object, J… in UpdateForwardAddressIfSuccess() argument
174 …Utils::Copy(ToVoidPtr(toAddress + HEAD_SIZE), size - HEAD_SIZE, ToVoidPtr(ToUintPtr(object) + HEAD… in UpdateForwardAddressIfSuccess()
178 heap_->OnMoveEvent(reinterpret_cast<intptr_t>(object), toAddress); in UpdateForwardAddressIfSuccess()
185 inline bool MovableMarker::UpdateForwardAddressIfFailed(TaggedObject *object, uintptr_t toAddress, … in UpdateForwardAddressIfFailed() argument
189 TaggedObject *dst = MarkWord(object).ToForwardingAddress(); in UpdateForwardAddressIfFailed()
194 inline SlotStatus SemiGcMarker::MarkObject(uint32_t threadId, TaggedObject *object, ObjectSlot slot) in MarkObject() argument
[all …]
/ark/runtime_core/tests/cts-generator/cts-template/
Disinstance.yaml20 .record java.lang.Object <external>
36 .record panda.Object <external>
49 …Resolve object type by specified id and if an object in accumulator is an instance of the resolved…
51Object of type O is instance of type T if O is the same as T or is subtype of T. For arrays T shou…
60 description: Check that null object reference is not an instance of any class
63 'null' object is not an instance of any class.
75 - values: ['panda.Object']
80 description: Check that compiler fails when type_id cannot be resolved to object type
101 newobj v0, panda.Object
106 newobj v0, panda.Object
[all …]
Dcmp.obj.yaml19 title: Object equality comparison
20 … description: Perform equality comparison between object references in register and accumulator.
34 # Check cmp.obj with same object
35 newobj Object
44 .record Object {
48 .record Object {
53 .record Object {
58 .record Object {
63 .record Object {
68 .record Object {
[all …]
Dcall.acc.yaml466 .record panda.Object <external>
532 - panda.Object
544 - panda.Object[]
556 - panda.Object[][]
638 newarr v1, v1, panda.Object[]
662 newarr v1, v1, panda.Object[][]
679 .record panda.Object <external>
743 - panda.Object
755 - panda.Object[]
767 - panda.Object[][]
[all …]
Dcall.acc.short.yaml419 .record panda.Object <external>
483 - panda.Object
495 - panda.Object[]
507 - panda.Object[][]
589 newarr v1, v1, panda.Object[]
613 newarr v1, v1, panda.Object[][]
630 .record panda.Object <external>
694 - panda.Object
706 - panda.Object[]
718 - panda.Object[][]
[all …]
Dcheckcast.yaml19 .record java.lang.Object <external>
35 .record panda.Object <external>
48 Resolve object type by specified id and if an object in accumulator can be cast to the
58 description: Check that null object reference can be cast to any type
61 'null' object reference can be cast to every type.
81 - checkcast panda.Object
97 description: Check that null object reference can be cast to any array type
100 'null' object reference can be cast to every type.
121 - checkcast panda.Object[]
137 description: Check that any object can be cast to the base type
[all …]
Dstobj.obj.yaml19 .record panda.Object <external>
44 panda.Object fObj
45 panda.Object[] fObjArray
55 .record java.lang.Object <external>
56 .function void java.lang.Object.ctor(java.lang.Object a0) <external, ctor>
85 java.lang.Object fObj
86 java.lang.Object[] fObjArray
95 title: Store accumulator content into object field
97 Store accumulator content into object field by field_id.
107 description: Store accumulator content into object field by field_id.
[all …]
/ark/ts2abc/test262/
Des5_tests.txt1012 built-ins/Object/create/15.2.3.5-0-1.js
1013 built-ins/Object/create/15.2.3.5-0-2.js
1014 built-ins/Object/create/15.2.3.5-1.js
1015 built-ins/Object/create/15.2.3.5-1-1.js
1016 built-ins/Object/create/15.2.3.5-1-2.js
1017 built-ins/Object/create/15.2.3.5-1-3.js
1018 built-ins/Object/create/15.2.3.5-1-4.js
1019 built-ins/Object/create/15.2.3.5-2-1.js
1020 built-ins/Object/create/15.2.3.5-2-2.js
1021 built-ins/Object/create/15.2.3.5-3-1.js
[all …]
DCI_tests.txt71 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 …]
/ark/js_runtime/ecmascript/builtins/
Dbuiltins_object.h32 // 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 …]
Dbuiltins_object.cpp29 // 19.1.1.1 Object ( [ value ] )
33 BUILTINS_API_TRACE(argv->GetThread(), Object, Constructor); in ObjectConstructor()
60 // 19.1.2.1 Object.assign ( target, ...sources )
64 BUILTINS_API_TRACE(argv->GetThread(), Object, Assign); in Assign()
133 BUILTINS_API_TRACE(thread, Object, DefineProperties); in ObjectDefineProperties()
135 // 1.If Type(O) is not Object, throw a TypeError exception. in ObjectDefineProperties()
138 THROW_TYPE_ERROR_AND_RETURN(thread, "is not an object", JSTaggedValue::Exception()); in ObjectDefineProperties()
205 // 19.1.2.2 Object.create ( O [ , Properties ] )
209 BUILTINS_API_TRACE(argv->GetThread(), Object, Create); in Create()
212 // 1.If Type(O) is neither Object nor Null, throw a TypeError exception. in Create()
[all …]
/ark/js_runtime/ecmascript/tooling/base/
Dpt_events.cpp26 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 …]
/ark/js_runtime/ecmascript/tooling/test/
Ddebugger_events_test.cpp102 Local<ObjectRef> object = Local<ObjectRef>(result); in HWTEST_F_L0() local
105 ASSERT_TRUE(object->Has(ecmaVm, tmpStr)); in HWTEST_F_L0()
106 result = object->Get(ecmaVm, tmpStr); in HWTEST_F_L0()
111 ASSERT_TRUE(object->Has(ecmaVm, tmpStr)); in HWTEST_F_L0()
112 result = object->Get(ecmaVm, tmpStr); in HWTEST_F_L0()
122 Local<ObjectRef> object = resumed.ToObject(ecmaVm); in HWTEST_F_L0() local
125 ASSERT_TRUE(object->Has(ecmaVm, tmpStr)); in HWTEST_F_L0()
126 Local<JSValueRef> result = object->Get(ecmaVm, tmpStr); in HWTEST_F_L0()
131 ASSERT_TRUE(object->Has(ecmaVm, tmpStr)); in HWTEST_F_L0()
132 result = object->Get(ecmaVm, tmpStr); in HWTEST_F_L0()
[all …]
Ddebugger_types_test.cpp103 // normal params of params.sub-key = [ type = "object", ] in HWTEST_F_L0()
104 …tring() + R"({"id":0,"method":"Debugger.Test","params":{"type":")" + ObjectType::Object + R"("}})"; in HWTEST_F_L0()
107 EXPECT_EQ(ObjectType::Object, remoteObject->GetType()); in HWTEST_F_L0()
109 // abnormal params of params.sub-key = [ type = "object", subtype = "unknown"] in HWTEST_F_L0()
110 …g = std::string() + R"({"id":0,"method":"Debugger.Test","params":{"type":")" + ObjectType::Object + in HWTEST_F_L0()
115 // abnormal params of params.sub-key = [ type = "object", subtype = 100] in HWTEST_F_L0()
116 …g = std::string() + R"({"id":0,"method":"Debugger.Test","params":{"type":")" + ObjectType::Object + in HWTEST_F_L0()
121 // normal params of params.sub-key = [ type = "object", subtype = "array"] in HWTEST_F_L0()
122 …g = std::string() + R"({"id":0,"method":"Debugger.Test","params":{"type":")" + ObjectType::Object + in HWTEST_F_L0()
126 EXPECT_EQ(ObjectType::Object, remoteObject->GetType()); in HWTEST_F_L0()
[all …]
/ark/runtime_core/libpandabase/mem/
Dobject_pointer.h24 * @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 …]
/ark/runtime_core/runtime/mem/gc/
Dgc.h147 void MarkObjectHeader(ObjectHeader *object) const in MarkObjectHeader() argument
151 object->SetUnMarkedForGC<atomic_mark>(); in MarkObjectHeader()
154 object->SetMarkedForGC<atomic_mark>(); in MarkObjectHeader()
158 bool IsObjectHeaderMarked(ObjectHeader *object) const in IsObjectHeaderMarked() argument
162 return !object->IsMarkedForGC<atomic_mark>(); in IsObjectHeaderMarked()
164 return object->IsMarkedForGC<atomic_mark>(); in IsObjectHeaderMarked()
168 bool MarkIfNotMarked(ObjectHeader *object) const in MarkIfNotMarked() argument
170 MarkBitmap *bitmap = GetMarkBitMap(object); in MarkIfNotMarked()
172 if (bitmap->Test(object)) { in MarkIfNotMarked()
175 bitmap->Set(object); in MarkIfNotMarked()
[all …]
Dcrossing_map.h57 // This element (or map) can be used to get the first object address, which starts inside this page…
58 // or an object address, which crosses the borders of this page.
76 * \brief Add object to the Crossing map.
77 * @param obj_addr - pointer to the object (object header).
78 * @param obj_size - size of the object.
83 * \brief Remove object from the Crossing map.
85 * Therefore, during removing we need to send next and previous object parameters.
86 * @param obj_addr - pointer to the removing object (object header).
87 * @param obj_size - size of the removing object.
88 * @param next_obj_addr - pointer to the next object (object header). It can be nullptr.
[all …]
/ark/runtime_core/runtime/mem/
Dalloc_config.h30 …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 trust …
51 * \brief Initialize an object memory allocated by an allocator.
59 …per java spec, 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 …]
Dobject_helpers-inl.h50 ALWAYS_INLINE void operator()([[maybe_unused]] ObjectHeader *object, ObjectHeader *field_object, in operator()
53 return visitor_(object, field_object); in operator()
122 void GCStaticObjectHelpers::TraverseObject(ObjectHeader *object, BaseClass *base_cls, const FieldVi… in TraverseObject() argument
135 … is_volatile ? object->GetFieldObject<true>(offset) : object->GetFieldObject<false>(offset); in TraverseObject()
137 field_visitor(object, field_object, offset, is_volatile); in TraverseObject()
146 void GCStaticObjectHelpers::TraverseArray(ObjectHeader *object, BaseClass *base_cls, in TraverseArray() argument
153 auto *array_object = static_cast<coretypes::Array *>(object); in TraverseArray()
158 array_element_visitor(object, i, array_element); in TraverseArray()
164 void GCDynamicObjectHelpers::TraverseObject(ObjectHeader *object, BaseClass *base_cls, in TraverseObject() argument
170 LOG(DEBUG, GC) << "TraverseObject Current object: " << GetDebugInfoAboutObject(object); in TraverseObject()
[all …]
/ark/runtime_core/pandastdlib/
Dpandastdlib.pa15 .record panda.Object <external>
23 .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 …]
/ark/runtime_core/runtime/mem/gc/stw-gc/
Dstw-gc.cpp109 auto *object = this->PopObjectFromStack(stack); in MarkStack() local
110 auto *base_class = object->template ClassAddr<BaseClass>(); in MarkStack()
111 … LOG_IF(base_class == nullptr, DEBUG, GC) << " object's class is nullptr: " << std::hex << object; in MarkStack()
113 LOG_DEBUG_GC << "Current object: " << GetDebugInfoAboutObject(object); in MarkStack()
114 …late MarkInstance<LanguageConfig::LANG_TYPE, LanguageConfig::HAS_VALUE_OBJECT_TYPES>(stack, object, in MarkStack()
129 … string_table->Sweep([this](ObjectHeader *object) { return this->marker_.MarkChecker(object); }); in SweepStringTable() argument
132 …string_table->Sweep([this](ObjectHeader *object) { return this->marker_.template MarkChecker<true>… in SweepStringTable() argument
144 …>GetObjectAllocator()->Collect([this](ObjectHeader *object) { return this->marker_.MarkChecker(obj… in Sweep() argument
152 … [this](ObjectHeader *object) { return this->marker_.template MarkChecker<true>(object); }, in Sweep() argument
184 void StwGC<LanguageConfig>::InitGCBits(panda::ObjectHeader *object) in InitGCBits() argument
[all …]
/ark/runtime_core/docs/diagrams/
Dgc-mark.puactivity22 :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…
/ark/ts2abc/ts2panda/src/statement/
DforOfStatement.ts32 private object: VReg; property in IteratorRecord
35 constructor(object: VReg, nextMethod: VReg, type: IteratorType = IteratorType.Normal) {
37 this.object = object;
46 return this.object;
64 let object = pandaGen.getTemp();
74 let iterator: IteratorRecord = getIteratorRecord(pandaGen, stmt, method, object, type);
96 pandaGen.freeTemps(doneReg, method, object, loopEnv);
100 export function getIteratorRecord(pandagen: PandaGen, node: ts.Node, nextMethod: VReg, object: VReg…
103 pandagen.storeAccumulator(node, object);
104 pandagen.loadObjProperty(node, object, "next");
[all …]

12345678910>>...25