/arkcompiler/runtime_core/static_core/runtime/ |
H A D | monitor.cpp | 90 void Monitor::InflateThinLock(MTManagedThread *thread, [[maybe_unused]] const VMHandle<ObjectHeader> &objHandle) in InflateThinLock() argument 104 ASSERT(objHandle.GetPtr() != nullptr); in InflateThinLock() 105 MarkWord mark = objHandle.GetPtr()->AtomicGetMark(); in InflateThinLock() 117 Inflate<true>(objHandle.GetPtr(), owner); in InflateThinLock() 138 VMHandle<ObjectHeader> &objHandle, in HandleLightLockedState() 148 bool ret = objHandle.GetPtr()->AtomicSetMark(mark, newMark); in HandleLightLockedState() 151 Monitor::TraceMonitorLock(objHandle.GetPtr(), false); in HandleLightLockedState() 152 thread->PushLocalObjectLocked(objHandle.GetPtr()); in HandleLightLockedState() 156 Monitor::Inflate(objHandle.GetPtr(), thread); in HandleLightLockedState() 177 thread->SetEnterMonitorObject(objHandle in HandleLightLockedState() 137 HandleLightLockedState(MarkWord &mark, MTManagedThread *thread, VMHandle<ObjectHeader> &objHandle, uint32_t &lightlockRetryCount, [[maybe_unused]] bool &shouldInflate, bool trylock) HandleLightLockedState() argument 195 HandleUnlockedState(MarkWord &mark, MTManagedThread *thread, VMHandle<ObjectHeader> &objHandle, bool &shouldInflate, bool trylock) HandleUnlockedState() argument 580 Acquire(MTManagedThread *thread, const VMHandle<ObjectHeader> &objHandle, bool trylock) Acquire() argument [all...] |
H A D | monitor.h | 199 bool Acquire(MTManagedThread *thread, const VMHandle<ObjectHeader> &objHandle, 212 VMHandle<ObjectHeader> &objHandle, 218 VMHandle<ObjectHeader> &objHandle,
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/ |
H A D | std_core_Value.cpp | 40 VMHandle<EtsObject> objHandle(coroutine, obj->GetCoreType()); in ValueAPISetFieldObject() 43 auto typeClass = objHandle.GetPtr()->GetClass(); in ValueAPISetFieldObject() 45 objHandle.GetPtr()->SetFieldObject(fieldObject, valHandle.GetPtr()); in ValueAPISetFieldObject() 53 VMHandle<EtsObject> objHandle(coroutine, obj->GetCoreType()); in SetFieldValue() 55 auto typeClass = objHandle.GetPtr()->GetClass(); in SetFieldValue() 58 objHandle.GetPtr()->SetFieldObject(fieldObject, EtsBoxPrimitive<T>::Create(coroutine, val)); in SetFieldValue() 61 objHandle.GetPtr()->SetFieldPrimitive<T>(fieldObject, val); in SetFieldValue() 108 VMHandle<EtsObject> objHandle(coroutine, obj->GetCoreType()); in ValueAPISetFieldByNameObject() 112 auto typeClass = objHandle.GetPtr()->GetClass(); in ValueAPISetFieldByNameObject() 114 objHandle in ValueAPISetFieldByNameObject() [all...] |
H A D | debugger_api.cpp | 121 VMHandle<ObjectHeader> objHandle(coroutine, obj); in DebuggerAPIGetLocalObject() 122 return EtsObject::FromCoreType(objHandle.GetPtr()); in DebuggerAPIGetLocalObject() 199 VMHandle<EtsObject> objHandle(coroutine, value->GetCoreType()); in DebuggerAPISetLocalObject() 201 DebuggerAPISetLocal<ObjectHeader *>(coroutine, regNumber, objHandle.GetPtr()->GetCoreType()); in DebuggerAPISetLocalObject()
|
H A D | std_core_Class.cpp | 91 LocalObjectHandle objHandle(coro, obj); in StdCoreClassCreateInstance() 97 return objHandle.GetPtr(); in StdCoreClassCreateInstance()
|
H A D | std_core_Type.cpp | 535 VMHandle<EtsObject> objHandle(coroutine, EtsObject::Create(typeClass)->GetCoreType()); in MakeClassInstance() 539 std::array<Value, 1> args {Value(objHandle.GetPtr()->GetCoreType())}; in MakeClassInstance() 547 return objHandle.GetPtr(); in MakeClassInstance()
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | object_fast_operator-inl.h | 380 JSHandle<JSObject> objHandle(thread, receiver); in TrySetPropertyByNameThroughCacheAtLocal() 382 ElementsKind oldKind = objHandle->GetJSHClass()->GetElementsKind(); in TrySetPropertyByNameThroughCacheAtLocal() 383 auto actualValue = JSHClass::ConvertOrTransitionWithRep(thread, objHandle, in TrySetPropertyByNameThroughCacheAtLocal() 385 JSObject::TryMigrateToGenericKindForJSObject(thread, objHandle, oldKind); in TrySetPropertyByNameThroughCacheAtLocal() 386 receiver = objHandle.GetTaggedValue(); in TrySetPropertyByNameThroughCacheAtLocal() 480 JSHandle<JSObject> objHandle(thread, receiver); in SetPropertyByName() 481 ElementsKind oldKind = objHandle->GetJSHClass()->GetElementsKind(); in SetPropertyByName() 482 auto actualValue = JSHClass::ConvertOrTransitionWithRep(thread, objHandle, in SetPropertyByName() 484 JSObject::TryMigrateToGenericKindForJSObject(thread, objHandle, oldKind); in SetPropertyByName() 485 receiver = objHandle in SetPropertyByName() 875 AddPropertyByName(JSThread *thread, JSHandle<JSObject> objHandle, JSHandle<JSTaggedValue> keyHandle, JSHandle<JSTaggedValue> valueHandle, PropertyAttributes attr) AddPropertyByName() argument [all...] |
H A D | object_operator.cpp | 734 JSHandle<JSObject> objHandle(receiver_); in UpdateDataValue() 735 ElementsKind oldKind = objHandle->GetJSHClass()->GetElementsKind(); in UpdateDataValue() 737 JSHClass::ConvertOrTransitionWithRep(thread_, objHandle, key_, value, attr); in UpdateDataValue() 738 JSObject::TryMigrateToGenericKindForJSObject(thread_, objHandle, oldKind); in UpdateDataValue() 1061 JSHandle<JSObject> objHandle(receiver_); in AddPropertyInternal() 1062 ElementsKind oldKind = objHandle->GetJSHClass()->GetElementsKind(); in AddPropertyInternal() 1064 JSHClass::ConvertOrTransitionWithRep(thread_, objHandle, key_, value, attr); in AddPropertyInternal() 1065 JSObject::TryMigrateToGenericKindForJSObject(thread_, objHandle, oldKind); in AddPropertyInternal()
|
H A D | property_accessor.cpp | 281 JSMutableHandle<JSTaggedValue> objHandle(thread_, JSTaggedValue::Undefined()); in MergeRemainings() 294 objHandle.Update(visited[k]); in MergeRemainings() 296 has = JSTaggedValue::GetOwnProperty(thread_, objHandle, keyHandle, desc); in MergeRemainings()
|
H A D | object_fast_operator.h | 111 static inline PropertyAttributes AddPropertyByName(JSThread *thread, JSHandle<JSObject> objHandle,
|
H A D | js_object.cpp | 1706 JSHandle<JSObject> objHandle = thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(constructor); in ObjectCreate() local 1707 SetPrototype(thread, objHandle, JSHandle<JSTaggedValue>(proto)); in ObjectCreate() 1708 return objHandle; in ObjectCreate() 2210 JSHandle<JSObject> objHandle = thread->GetEcmaVM()->GetFactory()->NewJSObjectByConstructor(objFunc); in FromPropertyDescriptor() local 2216 bool success = CreateDataProperty(thread, objHandle, valueStr, desc.GetValue()); in FromPropertyDescriptor() 2223 [[maybe_unused]] bool success = CreateDataProperty(thread, objHandle, writableStr, writable); in FromPropertyDescriptor() 2229 bool success = CreateDataProperty(thread, objHandle, getStr, desc.GetGetter()); in FromPropertyDescriptor() 2235 bool success = CreateDataProperty(thread, objHandle, setStr, desc.GetSetter()); in FromPropertyDescriptor() 2243 [[maybe_unused]] bool success = CreateDataProperty(thread, objHandle, enumerableStr, enumerable); in FromPropertyDescriptor() 2251 [[maybe_unused]] bool success = CreateDataProperty(thread, objHandle, configurableSt in FromPropertyDescriptor() [all...] |
/arkcompiler/ets_runtime/ecmascript/interpreter/ |
H A D | slow_runtime_stub.cpp | 109 JSHandle<JSTaggedValue> objHandle(thread, value); in GetPropIterator() 110 return RuntimeStubs::RuntimeGetPropIterator(thread, objHandle); in GetPropIterator() 312 JSHandle<JSTaggedValue> objHandle(thread, obj); in DelObjProp() 314 return RuntimeStubs::RuntimeDelObjProp(thread, objHandle, propHandle); in DelObjProp() 352 JSHandle<JSTaggedValue> objHandle(thread, obj); in IsIn() 353 return RuntimeStubs::RuntimeIsIn(thread, propHandle, objHandle); in IsIn() 361 JSHandle<JSTaggedValue> objHandle(thread, obj); in Instanceof() 363 return RuntimeStubs::RuntimeInstanceof(thread, objHandle, targetHandle); in Instanceof() 527 JSHandle<JSTaggedValue> objHandle(thread, obj); in StOwnByName() 530 return RuntimeStubs::RuntimeStOwnByName(thread, objHandle, propHandl in StOwnByName() [all...] |
/arkcompiler/runtime_core/static_core/runtime/tests/ |
H A D | monitor_test.cpp | 241 VMHandle<ObjectHeader> objHandle(thread, header); in TEST_F() 242 Monitor::MonitorEnter(objHandle.GetPtr()); in TEST_F() 243 ASSERT_TRUE(objHandle->AtomicGetMark().GetState() == MarkWord::STATE_LIGHT_LOCKED); in TEST_F() 244 ASSERT_TRUE(Monitor::Inflate(objHandle.GetPtr(), thread)); in TEST_F() 245 ASSERT_TRUE(objHandle->AtomicGetMark().GetState() == MarkWord::STATE_HEAVY_LOCKED); in TEST_F() 247 ASSERT_TRUE(objHandle->AtomicGetMark().GetState() == MarkWord::STATE_HEAVY_LOCKED); in TEST_F() 248 Monitor::MonitorExit(objHandle.GetPtr()); in TEST_F() 249 ASSERT_TRUE(objHandle->AtomicGetMark().GetState() == MarkWord::STATE_HEAVY_LOCKED); in TEST_F() 251 ASSERT_TRUE(objHandle->AtomicGetMark().GetState() == MarkWord::STATE_UNLOCKED); in TEST_F() 252 ASSERT_FALSE(Monitor::HoldsLock(objHandle in TEST_F() [all...] |
H A D | intrusive_gc_test_api_test.cpp | 79 VMHandle<ObjectHeader> objHandle(thread, object); in TEST_P() 86 object = objHandle.GetPtr(); // GC may move the object in TEST_P()
|
/arkcompiler/ets_runtime/ecmascript/shared_objects/ |
H A D | concurrent_api_scope.h | 34 ConcurrentApiScope(JSThread *thread, const JSHandle<JSTaggedValue> &objHandle, SCheckMode mode = SCheckMode::CHECK) in ConcurrentApiScope() argument 35 : thread_(thread), objHandle_(objHandle), checkMode_(mode) in ConcurrentApiScope()
|
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
H A D | builtins_object_test.cpp | 191 JSHandle<JSObject> objHandle = in HWTEST_F_L0() local 193 EXPECT_TRUE(*objHandle != nullptr); in HWTEST_F_L0() 200 JSObject::DefineOwnProperty(thread, objHandle, key, descNw); in HWTEST_F_L0() 206 hpObjCallInfo->SetCallArg(1, objHandle.GetTaggedValue()); in HWTEST_F_L0() 236 JSHandle<JSObject> objHandle = in HWTEST_F_L0() local 252 objCallInfo->SetCallArg(0, objHandle.GetTaggedValue()); in HWTEST_F_L0() 275 JSHandle<JSObject> objHandle = in HWTEST_F_L0() local 287 JSObject::GetOwnProperty(thread, objHandle, key, descNw); in HWTEST_F_L0() 293 objCallInfo->SetCallArg(0, objHandle.GetTaggedValue()); in HWTEST_F_L0() 336 JSHandle<JSObject> objHandle in HWTEST_F_L0() local 368 JSHandle<JSObject> objHandle = HWTEST_F_L0() local 391 JSHandle<JSObject> objHandle = HWTEST_F_L0() local [all...] |
/arkcompiler/ets_runtime/ecmascript/builtins/ |
H A D | builtins_sendable_arraybuffer.cpp | 171 JSHandle<JSObject> objHandle(thisHandle); in Slice() 172 JSHandle<JSTaggedValue> constructor = JSObject::SpeciesConstructor(thread, objHandle, defaultConstructor); in Slice() 280 JSHandle<JSObject> objHandle(srcBuffer); in CloneArrayBuffer() 281 constructor = JSObject::SpeciesConstructor(thread, objHandle, defaultConstructor); in CloneArrayBuffer()
|
H A D | builtins_sharedarraybuffer.cpp | 206 JSHandle<JSObject> objHandle(thisHandle); in Slice() 207 JSHandle<JSTaggedValue> constructor = JSObject::SpeciesConstructor(thread, objHandle, defaultConstructor); in Slice()
|
H A D | builtins_arraybuffer.cpp | 166 JSHandle<JSObject> objHandle(thisHandle); in Slice() 167 JSHandle<JSTaggedValue> constructor = JSObject::SpeciesConstructor(thread, objHandle, defaultConstructor); in Slice() 287 JSHandle<JSObject> objHandle(srcBuffer); in CloneArrayBuffer() 288 constructor = JSObject::SpeciesConstructor(thread, objHandle, defaultConstructor); in CloneArrayBuffer()
|
/arkcompiler/runtime_core/static_core/runtime/include/ |
H A D | runtime_notification.h | 288 VMHandle<ObjectHeader> objHandle(thread, exceptionObject); in ExceptionThrowEvent() 291 listener->ExceptionThrow(thread, method, objHandle.GetPtr(), bcOffset); in ExceptionThrowEvent() 301 VMHandle<ObjectHeader> objHandle(thread, exceptionObject); in ExceptionCatchEvent() 304 listener->ExceptionCatch(thread, method, objHandle.GetPtr(), bcOffset); in ExceptionCatchEvent()
|
/arkcompiler/ets_runtime/ecmascript/ic/ |
H A D | ic_runtime_stub-inl.h | 329 JSHandle<JSObject> objHandle(thread, receiver); in StoreWithTransition() 332 objHandle->SynchronizedSetClass(thread, newHClass); in StoreWithTransition() 333 JSObject::TryMigrateToGenericKindForJSObject(thread, objHandle, oldKind); in StoreWithTransition() 338 TaggedArray *array = TaggedArray::Cast(objHandle->GetProperties().GetTaggedObject()); in StoreWithTransition() 351 uint32_t maxNonInlinedFastPropsCapacity = objHandle->GetNonInlinedFastPropsCapacity(); in StoreWithTransition() 357 objHandle->SetProperties(thread, properties); in StoreWithTransition() 363 StoreField(thread, *objHandle, value, handlerInfo); in StoreWithTransition()
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
H A D | concurrent_marking_test.cpp | 166 JSHandle<JSObject> objHandle(thread, obj); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/base/ |
H A D | json_parser.cpp | 1328 JSHandle<JSTaggedValue> objHandle(holder); 1329 JSHandle<JSTaggedValue> val = JSTaggedValue::GetProperty(thread, objHandle, name).GetValue(); 1369 EcmaRuntimeCallInfo *info = EcmaInterpreter::NewRuntimeCallInfo(thread, receiver, objHandle, undefined, argsLength);
|
/arkcompiler/ets_runtime/ecmascript/stubs/ |
H A D | runtime_stubs-inl.h | 732 JSHandle<JSTaggedValue> objHandle(thread, obj); in RuntimeLdObjByName() 735 res = JSObject::CallGetter(thread, AccessorData::Cast(receiver.GetTaggedObject()), objHandle); in RuntimeLdObjByName() 738 res = JSTaggedValue::GetProperty(thread, objHandle, propHandle).GetValue().GetTaggedValue(); in RuntimeLdObjByName() 1261 const JSHandle<JSTaggedValue> &objHandle, in RuntimeStOwnByNameWithNameSet() 1269 bool enumerable = !(objHandle->IsClassPrototype() || objHandle->IsClassConstructor()); in RuntimeStOwnByNameWithNameSet() 1272 bool ret = JSTaggedValue::DefineOwnProperty(thread, objHandle, propHandle, desc); in RuntimeStOwnByNameWithNameSet() 1260 RuntimeStOwnByNameWithNameSet(JSThread *thread, const JSHandle<JSTaggedValue> &objHandle, const JSHandle<JSTaggedValue> &propHandle, const JSHandle<JSTaggedValue> &valueHandle) RuntimeStOwnByNameWithNameSet() argument
|
H A D | runtime_stubs.cpp | 390 JSHandle<JSObject> objHandle(thread, JSTaggedValue(reinterpret_cast<TaggedObject *>(receiver))); in DEF_RUNTIME_STUBS() 391 JSHandle<NameDictionary> dictHandle(JSObject::TransitionToDictionary(thread, objHandle)); in DEF_RUNTIME_STUBS() 414 JSHandle<JSObject> objHandle(thread, JSTaggedValue(reinterpret_cast<TaggedObject *>(receiver))); in DEF_RUNTIME_STUBS() 416 JSObject::ElementsToDictionary(thread, objHandle); in DEF_RUNTIME_STUBS() 418 JSHandle<NumberDictionary> dict(thread, objHandle->GetElements()); in DEF_RUNTIME_STUBS() 429 JSHandle<JSObject> objHandle = GetHArg<JSObject>(argv, argc, 0); // 0: means the zeroth parameter in DEF_RUNTIME_STUBS() local 442 uint32_t maxNonInlinedFastPropsCapacity = objHandle->GetNonInlinedFastPropsCapacity(); in DEF_RUNTIME_STUBS() 448 objHandle->SetProperties(thread, properties); in DEF_RUNTIME_STUBS()
|