Lines Matching refs:thread_
52 [[maybe_unused]] EcmaHandleScope scope(thread_);
60 auto emptySLayout = thread_->GlobalConstants()->GetHandledEmptySLayoutInfo();
79 env->SetSObjectFunctionPrototype(thread_, sObjPrototype);
88 env->Set##Name(thread_, sGlobalEnv->Get##Name());
97 [[maybe_unused]] EcmaHandleScope scope(thread_);
105 env->SetSObjectFunction(thread_, sObjectFunction);
114 sObjPrototype->SetPropertyInlinedProps(thread_, fieldIndex++, sObjectFunction.GetTaggedValue());
130 [[maybe_unused]] EcmaHandleScope scope(thread_);
131 const GlobalEnvConstants *globalConst = thread_->GlobalConstants();
152 JSHandle<JSObject> globalObject(thread_, env->GetGlobalObject());
154 PropertyDescriptor desc(thread_, JSHandle<JSTaggedValue>::Cast(arrayBufferFunction), true, false, true);
155 JSObject::DefineOwnProperty(thread_, globalObject, nameString, desc);
156 RETURN_IF_ABRUPT_COMPLETION(thread_);
171 arrayBufferPrototype->SetPropertyInlinedProps(thread_, fieldIndex++, strTag.GetTaggedValue());
186 env->SetSendableArrayBufferPrototype(thread_, arrayBufferPrototype);
187 env->SetSBuiltininArrayBufferFunction(thread_, arrayBufferFunction);
193 [[maybe_unused]] EcmaHandleScope scope(thread_);
194 const GlobalEnvConstants *globalConst = thread_->GlobalConstants();
213 JSHandle<JSObject> globalObject(thread_, env->GetGlobalObject());
215 PropertyDescriptor desc(thread_, JSHandle<JSTaggedValue>::Cast(setFunction), true, false, true);
216 JSObject::DefineOwnProperty(thread_, globalObject, nameString, desc);
217 RETURN_IF_ABRUPT_COMPLETION(thread_);
221 setPrototype->SetPropertyInlinedProps(thread_, fieldIndex++, setFunction.GetTaggedValue());
232 JSObject::GetMethod(thread_, JSHandle<JSTaggedValue>::Cast(setPrototype), values);
233 RETURN_IF_ABRUPT_COMPLETION(thread_);
234 setPrototype->SetPropertyInlinedProps(thread_, fieldIndex++, valuesFunc.GetTaggedValue());
238 setPrototype->SetPropertyInlinedProps(thread_, fieldIndex++, strTag.GetTaggedValue());
246 setPrototype->SetPropertyInlinedProps(thread_, fieldIndex++, valuesFunc.GetTaggedValue());
254 env->SetSharedSetPrototype(thread_, setPrototype);
255 env->SetSBuiltininSetFunction(thread_, setFunction);
261 [[maybe_unused]] EcmaHandleScope scope(thread_);
262 const GlobalEnvConstants *globalConst = thread_->GlobalConstants();
279 JSHandle<JSObject> globalObject(thread_, env->GetGlobalObject());
281 PropertyDescriptor desc(thread_, JSHandle<JSTaggedValue>::Cast(mapFunction), true, false, true);
282 JSObject::DefineOwnProperty(thread_, globalObject, nameString, desc);
283 RETURN_IF_ABRUPT_COMPLETION(thread_);
287 mapPrototype->SetPropertyInlinedProps(thread_, fieldIndex++, mapFunction.GetTaggedValue());
295 mapPrototype->SetPropertyInlinedProps(thread_, fieldIndex++, strTag.GetTaggedValue());
305 JSObject::GetMethod(thread_, JSHandle<JSTaggedValue>::Cast(mapPrototype), entries);
306 RETURN_IF_ABRUPT_COMPLETION(thread_);
307 mapPrototype->SetPropertyInlinedProps(thread_, fieldIndex++, entriesFunc.GetTaggedValue());
315 env->SetSharedMapPrototype(thread_, mapPrototype);
316 env->SetSBuiltininMapFunction(thread_, mapFunction);
321 [[maybe_unused]] EcmaHandleScope scope(thread_);
327 auto emptySLayout = thread_->GlobalConstants()->GetHandledEmptySLayoutInfo();
331 moduleNamespaceHClass->SetPrototype(thread_, JSTaggedValue::Null());
332 env->SetSharedModuleNamespaceClass(thread_, moduleNamespaceHClass.GetTaggedValue());
343 JSObject::SetPrototype(thread_, sAsyncFuncPrototype, env->GetSFunctionPrototype());
345 auto emptySLayout = thread_->GlobalConstants()->GetHandledEmptySLayoutInfo();
352 JSObject::SetPrototype(thread_, JSHandle<JSObject>(sAsyncFuncFunction), env->GetSFunctionFunction());
353 sAsyncFuncFunction->SetProtoOrHClass(thread_, sAsyncFuncIHClass);
354 env->SetSAsyncFunctionFunction(thread_, sAsyncFuncFunction);
355 env->SetSAsyncFunctionPrototype(thread_, sAsyncFuncPrototype);
356 JSHandle<JSTaggedValue> sAsyncFuncPrototypeVal(thread_, sAsyncFuncPrototype.GetTaggedValue());
359 env->SetSAsyncFunctionClass(thread_, sAsyncFuncClass);
365 [[maybe_unused]] EcmaHandleScope scope(thread_);
367 SetSFunctionName(sFuncPrototype, thread_->GlobalConstants()->GetHandledEmptyString());
369 auto emptySLayout = thread_->GlobalConstants()->GetHandledEmptySLayoutInfo();
381 env->SetSFunctionFunction(thread_, sFuncFunction);
382 env->SetSFunctionPrototype(thread_, sFuncPrototype);
388 env->SetSFunctionClassWithoutProto(thread_, functionClass);
392 env->SetSFunctionClassWithProto(thread_, functionClassWithProto);
397 env->SetSFunctionClassWithoutAccessor(thread_, functionClassWithoutAccessor);
400 sFuncPrototypeObj->SetPropertyInlinedProps(thread_, fieldIndex++, sFuncFunction.GetTaggedValue()); // constructor
411 SetSFunction(env, sFuncPrototypeObj, thread_->GlobalConstants()->GetHandledToStringString(),
430 layout->AddKey(thread_, index++, keyString.GetTaggedValue(), attributes);
442 const GlobalEnvConstants *globalConst = thread_->GlobalConstants();
456 layout->AddKey(thread_, index++, keyString.GetTaggedValue(), attributes);
478 layout->AddKey(thread_, index++, keyString.GetTaggedValue(), attributes);
507 layout->AddKey(thread_, index++, keyString.GetTaggedValue(), attributes);
536 layout->AddKey(thread_, index++, keyString.GetTaggedValue(), attributes);
565 layout->AddKey(thread_, index++, keyString.GetTaggedValue(), attributes);
594 layout->AddKey(thread_, index++, keyString.GetTaggedValue(), attributes);
623 layout->AddKey(thread_, index++, keyString.GetTaggedValue(), attributes);
654 layout->AddKey(thread_, index++, keyString.GetTaggedValue(), attributes);
685 layout->AddKey(thread_, index++, keyString.GetTaggedValue(), attributes);
716 layout->AddKey(thread_, index++, keyString.GetTaggedValue(), attributes);
745 layout->AddKey(thread_, index++, keyString.GetTaggedValue(), attributes);
764 ctor->SetPropertyInlinedProps(thread_, nameIndex, name.GetTaggedValue());
771 ctor->SetPropertyInlinedProps(thread_, lengthIndex, taggedLength);
777 ctor->SetPropertyInlinedProps(thread_, prototypeIndex, prototype);
786 ctor->SetProtoOrHClass(thread_, protoHClass);
815 obj->SetPropertyInlinedProps(thread_, index, function.GetTaggedValue());
822 accessor->SetGetter(thread_, getter);
823 accessor->SetSetter(thread_, setter);
824 obj->SetPropertyInlinedProps(thread_, index, accessor.GetTaggedValue());
885 key##Symbol->SetDescription(thread_, key##String.GetTaggedValue()); \
891 env->Set##Name##Symbol(thread_, name##Symbol);
899 auto accessor = thread_->GlobalConstants()->GetSharedArrayLengthAccessor();
902 arrFuncPrototype->SetPropertyInlinedProps(thread_, protoFieldIndex++, accessor);
913 layout->AddKey(thread_, 0, thread_->GlobalConstants()->GetHandledLengthString().GetTaggedValue(), attributes);
924 [[maybe_unused]] EcmaHandleScope scope(thread_);
925 const GlobalEnvConstants *globalConst = thread_->GlobalConstants();
945 arrFuncPrototype->SetPropertyInlinedProps(thread_, protoFieldIndex++, arrayFunction.GetTaggedValue());
946 JSHandle<JSObject> globalObject(thread_, env->GetGlobalObject());
948 PropertyDescriptor desc(thread_, JSHandle<JSTaggedValue>::Cast(arrayFunction), false, false, false);
949 JSObject::DefineOwnProperty(thread_, globalObject, nameString, desc);
950 RETURN_IF_ABRUPT_COMPLETION(thread_);
959 JSObject::GetMethod(thread_, JSHandle<JSTaggedValue>::Cast(arrFuncPrototype), values);
960 RETURN_IF_ABRUPT_COMPLETION(thread_);
968 arrFuncPrototype->SetPropertyInlinedProps(thread_, protoFieldIndex++, valuesFunc.GetTaggedValue());
982 env->SetSharedArrayFunction(thread_, arrayFunction);
983 env->SetSharedArrayPrototype(thread_, arrFuncPrototype);
990 [[maybe_unused]] EcmaHandleScope scope(thread_); \
991 const GlobalEnvConstants *globalConst = thread_->GlobalConstants(); \
1010 JSHandle<JSObject> globalObject(thread_, env->GetGlobalObject()); \
1012 PropertyDescriptor desc(thread_, JSHandle<JSTaggedValue>::Cast(arrayFunction), false, false, false); \
1013 JSObject::DefineOwnProperty(thread_, globalObject, nameString, desc); \
1014 RETURN_IF_ABRUPT_COMPLETION(thread_); \
1017 arrFuncPrototype->SetPropertyInlinedProps(thread_, fieldIndex++, arrayFunction.GetTaggedValue()); \
1018 arrFuncPrototype->SetPropertyInlinedProps(thread_, fieldIndex, JSTaggedValue(bytesPerElement)); \
1020 JSHandle<JSObject>(arrayFunction)->SetPropertyInlinedProps(thread_, fieldIndex, \
1022 env->Set##ctorName##Function(thread_, arrayFunction); \
1023 env->Set##ctorName##FunctionPrototype(thread_, arrFuncPrototypeValue); \
1024 env->Set##ctorName##RootHclass(thread_, arrFuncInstanceHClass); \
1025 env->Set##ctorName##RootHclassOnHeap(thread_, arrFuncInstanceHClassOnHeap); \
1034 [[maybe_unused]] EcmaHandleScope scope(thread_);
1035 const GlobalEnvConstants *globalConst = thread_->GlobalConstants();
1054 typedArrFuncPrototype->SetPropertyInlinedProps(thread_, fieldIndex++, typedArrayFunction.GetTaggedValue());
1071 JSObject::GetMethod(thread_, JSHandle<JSTaggedValue>::Cast(typedArrFuncPrototype), values);
1072 RETURN_IF_ABRUPT_COMPLETION(thread_);
1073 typedArrFuncPrototype->SetPropertyInlinedProps(thread_, fieldIndex++, valuesFunc.GetTaggedValue());
1093 env->SetSharedTypedArrayFunction(thread_, typedArrayFunction.GetTaggedValue());
1094 env->SetSharedTypedArrayPrototype(thread_, typedArrFuncPrototype);
1097 env->SetSharedSpecificTypedArrayFunctionClass(thread_, specificTypedArrayFuncClass);
1127 layout->AddKey(thread_, index++, keyString.GetTaggedValue(), attributes);
1155 layout->AddKey(thread_, index++, keyString.GetTaggedValue(), attributes);
1179 layout->AddKey(thread_, index++, keyString.GetTaggedValue(), attributes);
1203 layout->AddKey(thread_, index++, keyString.GetTaggedValue(), attributes);