Lines Matching refs:glue
131 GateRef NewObjectStubBuilder::NewJSObject(GateRef glue, GateRef hclass) in NewJSObject() argument
139 SetGlue(glue); in NewJSObject()
182 GateRef NewObjectStubBuilder::NewTaggedArray(GateRef glue, GateRef len) in NewTaggedArray() argument
192 SetGlue(glue); in NewTaggedArray()
222 GateRef NewObjectStubBuilder::ExtendArray(GateRef glue, GateRef elements, GateRef newLen) in ExtendArray() argument
232 SetGlue(glue); in ExtendArray()
240 array = newBuilder.NewTaggedArray(glue, newLen); in ExtendArray()
249 Store(VariableType::INT32(), glue, *array, IntPtr(TaggedArray::LENGTH_OFFSET), newLen); in ExtendArray()
251 …Store(VariableType::INT32(), glue, *array, IntPtr(TaggedArray::EXTRA_LENGTH_OFFSET), oldExtractLen… in ExtendArray()
271 SetValueToTaggedArray(VariableType::JS_ANY(), glue, *array, *index, value); in ExtendArray()
277 SetValueToTaggedArray(VariableType::INT64(), glue, *array, *index, value); in ExtendArray()
308 SetValueToTaggedArray(VariableType::JS_ANY(), glue, *array, *index, Hole()); in ExtendArray()
313 … SetValueToTaggedArray(VariableType::INT64(), glue, *array, *index, SpecialHole()); in ExtendArray()
337 GateRef NewObjectStubBuilder::CopyArray(GateRef glue, GateRef elements, GateRef oldLen, GateRef new… in CopyArray() argument
350 result = GetEmptyArray(glue); in CopyArray()
359 result = ExtendArray(glue, elements, newLen); in CopyArray()
364 GateRef array = newBuilder.NewTaggedArray(glue, newLen); in CopyArray()
365 Store(VariableType::INT32(), glue, array, IntPtr(TaggedArray::LENGTH_OFFSET), newLen); in CopyArray()
367 …Store(VariableType::INT32(), glue, array, IntPtr(TaggedArray::EXTRA_LENGTH_OFFSET), oldExtractLen); in CopyArray()
379 SetValueToTaggedArray(VariableType::JS_ANY(), glue, array, *index, value); in CopyArray()
399 GateRef NewObjectStubBuilder::NewJSForinIterator(GateRef glue, GateRef receiver, GateRef keys, Gate… in NewJSForinIterator() argument
403 GateRef glueGlobalEnv = Load(VariableType::NATIVE_POINTER(), glue, glueGlobalEnvOffset); in NewJSForinIterator()
405 GateRef iter = NewJSObject(glue, hclass); in NewJSForinIterator()
407 SetObjectOfForInIterator(glue, iter, receiver); in NewJSForinIterator()
408 SetCachedHclassOfForInIterator(glue, iter, cachedHclass); in NewJSForinIterator()
409 SetKeysOfForInIterator(glue, iter, keys); in NewJSForinIterator()
410 SetIndexOfForInIterator(glue, iter, Int32(EnumCache::ENUM_CACHE_HEADER_SIZE)); in NewJSForinIterator()
412 SetLengthOfForInIterator(glue, iter, length); in NewJSForinIterator()
416 GateRef NewObjectStubBuilder::LoadHClassFromMethod(GateRef glue, GateRef method) in LoadHClassFromMethod() argument
438 GateRef glueGlobalEnv = Load(VariableType::NATIVE_POINTER(), glue, glueGlobalEnvOffset); in LoadHClassFromMethod()
490 FatalPrint(glue, { Int32(GET_MESSAGE_STRING_ID(ThisBranchIsUnreachable)) }); in LoadHClassFromMethod()
499 GateRef NewObjectStubBuilder::NewJSFunction(GateRef glue, GateRef constpool, GateRef module, GateRe… in NewJSFunction() argument
522 GateRef method = GetMethodFromConstPool(glue, constpool, module, index); in NewJSFunction()
523 GateRef hclass = LoadHClassFromMethod(glue, method); in NewJSFunction()
524 result = NewJSObject(glue, hclass); in NewJSFunction()
525 SetExtensibleToBitfield(glue, hclass, true); in NewJSFunction()
526 SetCallableToBitfield(glue, hclass, true); in NewJSFunction()
528 InitializeJSFunction(glue, *result, kind); in NewJSFunction()
529 SetMethodToFunction(glue, *result, method); in NewJSFunction()
535 CallRuntime(glue, RTSTUB_ID(AOTEnableProtoChangeMarker), { *result, *ihc}); in NewJSFunction()
544 void NewObjectStubBuilder::NewJSFunction(GateRef glue, GateRef jsFunc, GateRef index, GateRef lengt… in NewJSFunction() argument
552 result->WriteVariable(NewJSFunction(glue, constPool, module, index)); in NewJSFunction()
553 Branch(HasPendingException(glue), &hasException, ¬Exception); in NewJSFunction()
567 void NewObjectStubBuilder::InitializeJSFunction(GateRef glue, GateRef func, GateRef kind) in InitializeJSFunction() argument
584 SetLexicalEnvToFunction(glue, func, Undefined()); in InitializeJSFunction()
585 SetHomeObjectToFunction(glue, func, Undefined()); in InitializeJSFunction()
586 SetProtoOrHClassToFunction(glue, func, Hole()); in InitializeJSFunction()
587 SetWorkNodePointerToFunction(glue, func, NullPtr()); in InitializeJSFunction()
588 SetMethodToFunction(glue, func, Undefined()); in InitializeJSFunction()
593 auto funcprotoAccessor = GetGlobalConstantValue(VariableType::JS_POINTER(), glue, in InitializeJSFunction()
598 SetPropertyInlinedProps(glue, func, hclass, funcprotoAccessor, in InitializeJSFunction()
600 auto funcAccessor = GetGlobalConstantValue(VariableType::JS_POINTER(), glue, in InitializeJSFunction()
602 SetPropertyInlinedProps(glue, func, hclass, funcAccessor, in InitializeJSFunction()
604 funcAccessor = GetGlobalConstantValue(VariableType::JS_POINTER(), glue, in InitializeJSFunction()
606 SetPropertyInlinedProps(glue, func, hclass, funcAccessor, in InitializeJSFunction()
611 thisObj = CallRuntime(glue, RTSTUB_ID(InitializeGeneratorFunction), {kind}); in InitializeJSFunction()
612 SetProtoOrHClassToFunction(glue, func, *thisObj); in InitializeJSFunction()
621 … CallRuntime(glue, RTSTUB_ID(FunctionDefineOwnProperty), {func, funcprotoAccessor, kind}); in InitializeJSFunction()
631 auto funcAccessor = GetGlobalConstantValue(VariableType::JS_POINTER(), glue, in InitializeJSFunction()
633 …SetPropertyInlinedProps(glue, func, hclass, funcAccessor, Int32(JSFunction::NAME_INLINE_PROPERTY_I… in InitializeJSFunction()
634 funcAccessor = GetGlobalConstantValue(VariableType::JS_POINTER(), glue, in InitializeJSFunction()
636 …SetPropertyInlinedProps(glue, func, hclass, funcAccessor, Int32(JSFunction::LENGTH_INLINE_PROPERTY… in InitializeJSFunction()
645 GateRef NewObjectStubBuilder::EnumerateObjectProperties(GateRef glue, GateRef obj) in EnumerateObjectProperties() argument
664 object = CallRuntime(glue, RTSTUB_ID(PrimitiveStringCreate), { obj });; in EnumerateObjectProperties()
669 object = ToPrototypeOrObj(glue, obj); in EnumerateObjectProperties()
675 GateRef enumCache = TryGetEnumCache(glue, *object); in EnumerateObjectProperties()
680 result = NewJSForinIterator(glue, *object, enumCache, hclass); in EnumerateObjectProperties()
685 GateRef emptyArray = GetEmptyArray(glue); in EnumerateObjectProperties()
686 result = NewJSForinIterator(glue, Undefined(), emptyArray, Undefined()); in EnumerateObjectProperties()
692 result = CallRuntime(glue, RTSTUB_ID(GetPropIteratorSlowpath), { *object }); in EnumerateObjectProperties()
865 GateRef NewObjectStubBuilder::NewTrackInfo(GateRef glue, GateRef cachedHClass, GateRef cachedFunc, in NewTrackInfo() argument
874 …auto hclass = GetGlobalConstantValue(VariableType::JS_POINTER(), glue, ConstantIndex::TRACK_INFO_C… in NewTrackInfo()
876 SetParameters(glue, size); in NewTrackInfo()
881 Store(VariableType::JS_POINTER(), glue, *result, cachedHClassOffset, cachedHClass); in NewTrackInfo()
884 Store(VariableType::JS_POINTER(), glue, *result, cachedFuncOffset, weakCachedFunc); in NewTrackInfo()
886 Store(VariableType::INT32(), glue, *result, arrayLengthOffset, arraySize); in NewTrackInfo()
887 SetSpaceFlagToTrackInfo(glue, *result, Int32(spaceFlag)); in NewTrackInfo()
889 SetElementsKindToTrackInfo(glue, *result, elementsKind); in NewTrackInfo()
997 GateRef NewObjectStubBuilder::FastNewThisObject(GateRef glue, GateRef ctor) in FastNewThisObject() argument
1020 SetParameters(glue, 0); in FastNewThisObject()
1025 thisObj = CallRuntime(glue, RTSTUB_ID(NewThisObject), {ctor, Undefined()}); in FastNewThisObject()
1034 GateRef NewObjectStubBuilder::FastSuperAllocateThis(GateRef glue, GateRef superCtor, GateRef newTar… in FastSuperAllocateThis() argument
1073 SetParameters(glue, 0); in FastSuperAllocateThis()
1078 thisObj = CallRuntime(glue, RTSTUB_ID(NewThisObject), {superCtor, newTarget}); in FastSuperAllocateThis()
1087 GateRef NewObjectStubBuilder::NewThisObjectChecked(GateRef glue, GateRef ctor) in NewThisObjectChecked() argument
1112 thisObj = FastNewThisObject(glue, ctor); in NewThisObjectChecked()
1127 GateRef NewObjectStubBuilder::LoadTrackInfo(GateRef glue, GateRef jsFunc, GateRef pc, GateRef profi… in LoadTrackInfo() argument
1147 auto hclass = LoadArrayHClassSlowPath(glue, jsFunc, pc, arrayLiteral, callback); in LoadTrackInfo()
1150 ret = NewTrackInfo(glue, hclass, jsFunc, RegionSpaceFlag::IN_YOUNG_SPACE, Int32(0)); in LoadTrackInfo()
1153 ret = NewTrackInfo(glue, hclass, jsFunc, RegionSpaceFlag::IN_YOUNG_SPACE, arrayLength); in LoadTrackInfo()
1156 SetValueToTaggedArray(VariableType::JS_POINTER(), glue, profileTypeInfo, slotId, *ret); in LoadTrackInfo()
1167 GateRef glue, GateRef jsFunc, GateRef pc, GateRef arrayLiteral, ProfileOperation callback) in LoadArrayHClassSlowPath() argument
1186 GateRef gConstAddr = Load(VariableType::JS_ANY(), glue, in LoadArrayHClassSlowPath()
1198 … GateRef glueGlobalEnv = Load(VariableType::NATIVE_POINTER(), glue, glueGlobalEnvOffset); in LoadArrayHClassSlowPath()
1204 …GetGlobalConstantValue(VariableType::JS_POINTER(), glue, ConstantIndex::ELEMENT_NONE_HCLASS_INDEX); in LoadArrayHClassSlowPath()
1217 GateRef NewObjectStubBuilder::CreateEmptyArrayCommon(GateRef glue, GateRef hclass, GateRef trackInf… in CreateEmptyArrayCommon() argument
1228 VariableType::JS_POINTER(), glue, ConstantIndex::EMPTY_ARRAY_OBJECT_INDEX); in CreateEmptyArrayCommon()
1229 SetParameters(glue, size); in CreateEmptyArrayCommon()
1237 GateRef NewObjectStubBuilder::CreateEmptyObject(GateRef glue) in CreateEmptyObject() argument
1241 GateRef glueGlobalEnv = Load(VariableType::NATIVE_POINTER(), glue, glueGlobalEnvOffset); in CreateEmptyObject()
1244 return NewJSObject(glue, hclass); in CreateEmptyObject()
1247 GateRef NewObjectStubBuilder::CreateEmptyArray(GateRef glue) in CreateEmptyArray() argument
1252 GateRef glueGlobalEnv = Load(VariableType::NATIVE_POINTER(), glue, glueGlobalEnvOffset); in CreateEmptyArray()
1255 return CreateEmptyArrayCommon(glue, hclass, *trackInfo); in CreateEmptyArray()
1259 …GateRef glue, GateRef jsFunc, GateRef pc, GateRef profileTypeInfo, GateRef slotId, ProfileOperatio… in CreateEmptyArray() argument
1273 …trackInfo = LoadTrackInfo(glue, jsFunc, pc, profileTypeInfo, slotId, Circuit::NullGate(), callback… in CreateEmptyArray()
1280 hclass = LoadArrayHClassSlowPath(glue, jsFunc, pc, Circuit::NullGate(), callback); in CreateEmptyArray()
1284 GateRef result = CreateEmptyArrayCommon(glue, *hclass, *trackInfo); in CreateEmptyArray()
1289 GateRef NewObjectStubBuilder::CreateArrayWithBuffer(GateRef glue, in CreateArrayWithBuffer() argument
1305 auto obj = GetArrayLiteralFromConstPool(glue, constPool, index, module); in CreateArrayWithBuffer()
1313 trackInfo = LoadTrackInfo(glue, jsFunc, pc, profileTypeInfo, slotId, obj, callback); in CreateArrayWithBuffer()
1320 hclass = LoadArrayHClassSlowPath(glue, jsFunc, pc, obj, callback); in CreateArrayWithBuffer()
1326 SetParameters(glue, size); in CreateArrayWithBuffer()
1395 GateRef NewObjectStubBuilder::NewTaggedSubArray(GateRef glue, GateRef srcTypedArray, in NewTaggedSubArray() argument
1408 GateRef obj = NewJSObject(glue, arrayCls); in NewTaggedSubArray()
1411 …Store(VariableType::JS_POINTER(), glue, obj, IntPtr(JSTypedArray::VIEWED_ARRAY_BUFFER_OFFSET), buf… in NewTaggedSubArray()
1412 …Store(VariableType::JS_POINTER(), glue, obj, IntPtr(JSTypedArray::TYPED_ARRAY_NAME_OFFSET), constr… in NewTaggedSubArray()
1413 … Store(VariableType::INT32(), glue, obj, IntPtr(JSTypedArray::BYTE_LENGTH_OFFSET), newByteLength); in NewTaggedSubArray()
1414 …Store(VariableType::INT32(), glue, obj, IntPtr(JSTypedArray::BYTE_OFFSET_OFFSET), beginByteOffset); in NewTaggedSubArray()
1415 Store(VariableType::INT32(), glue, obj, IntPtr(JSTypedArray::ARRAY_LENGTH_OFFSET), newLength); in NewTaggedSubArray()
1416 Store(VariableType::INT32(), glue, obj, IntPtr(JSTypedArray::CONTENT_TYPE_OFFSET), contentType); in NewTaggedSubArray()