Home
last modified time | relevance | path

Searched refs:proto (Results 1 - 25 of 149) sorted by relevance

123456

/arkcompiler/ets_runtime/test/moduletest/multiprotoic/
H A Dmultiprotoic.js22 let proto = new P();
27 conditionArray.push(!(proto === protoT))
29 conditionArray.push(ArkTools.compareHClass(proto, protoT));
30 conditionArray.push(!ArkTools.isPrototype(proto));
42 Object.setPrototypeOf(obj1, proto);
43 Object.setPrototypeOf(obj2, proto);
44 Object.setPrototypeOf(obj3, proto);
46 conditionArray.push(ArkTools.isPrototype(proto));
48 conditionArray.push(!ArkTools.compareHClass(proto, protoT));
50 // set proto o
[all...]
/arkcompiler/ets_runtime/test/moduletest/setobjectwithproto/
H A Dsetobjectwithproto.js18 * @tc.desc:test set object with proto
86 var proto = Object.getPrototypeOf(value);
90 if (proto != Object.getPrototypeOf(value)) {
99 function TestSetPrototypeOf(object, proto) {
100 return (Object.setPrototypeOf(object, proto) === object) &&
101 (Object.getPrototypeOf(object) === proto);
/arkcompiler/ets_runtime/test/aottest/pgo_object_prototype/
H A Dpgo_object_prototype.js16 var proto = {
28 Object.setPrototypeOf(object, proto);
29 // Check usage of proto's HClass after AOT compile
30 print(proto.method(50));
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/
H A Dets_method.cpp77 auto proto = GetPandaMethod()->GetProto(); in GetNumArgSlots() local
78 auto &shorty = proto.GetShorty(); in GetNumArgSlots()
111 auto proto = GetPandaMethod()->GetProto(); in ResolveArgType() local
113 if (proto.GetShorty()[shortIdx].IsReference()) { in ResolveArgType()
117 ASSERT(refIdx <= proto.GetRefTypes().size()); in ResolveArgType()
118 return classLinker->GetClass(proto.GetRefTypes()[refIdx].data(), false, GetClass()->GetLoadContext()); in ResolveArgType()
148 auto proto = GetPandaMethod()->GetProto(); in GetMethodSignature() local
149 auto &shorty = proto.GetShorty(); in GetMethodSignature()
150 auto &refTypes = proto.GetRefTypes(); in GetMethodSignature()
/arkcompiler/ets_runtime/ecmascript/tests/
H A Ddump_test.cpp221 static JSHandle<JSMap> NewJSMap(JSThread *thread, ObjectFactory *factory, JSHandle<JSTaggedValue> proto) in NewJSMap() argument
223 JSHandle<JSHClass> mapClass = factory->NewEcmaHClass(JSMap::SIZE, JSType::JS_MAP, proto); in NewJSMap()
233 JSHandle<JSTaggedValue> proto = globalEnv->GetSFunctionPrototype(); in NewJSSharedMap() local
236 JSType::JS_SHARED_MAP, proto, emptySLayout); in NewJSSharedMap()
245 static JSHandle<JSSet> NewJSSet(JSThread *thread, ObjectFactory *factory, JSHandle<JSTaggedValue> proto) in NewJSSet() argument
247 JSHandle<JSHClass> setClass = factory->NewEcmaHClass(JSSet::SIZE, JSType::JS_SET, proto); in NewJSSet()
257 JSHandle<JSTaggedValue> proto = globalEnv->GetSFunctionPrototype(); in NewJSSharedSet() local
260 JSType::JS_SHARED_SET, proto, emptySLayout); in NewJSSharedSet()
272 JSHandle<JSTaggedValue> proto = globalEnv->GetObjectFunctionPrototype(); in NewJSAPIHashMap() local
273 JSHandle<JSHClass> mapClass = factory->NewEcmaHClass(JSAPIHashMap::SIZE, JSType::JS_API_HASH_MAP, proto); in NewJSAPIHashMap()
283 JSHandle<JSTaggedValue> proto = globalEnv->GetObjectFunctionPrototype(); NewJSAPIHashSet() local
294 JSHandle<JSTaggedValue> proto = globalEnv->GetObjectFunctionPrototype(); NewJSAPITreeMap() local
305 JSHandle<JSTaggedValue> proto = globalEnv->GetObjectFunctionPrototype(); NewJSAPITreeSet() local
316 JSHandle<JSTaggedValue> proto = globalEnv->GetObjectFunctionPrototype(); NewJSAPIPlainArray() local
332 JSHandle<JSTaggedValue> proto = globalEnv->GetObjectFunctionPrototype(); NewJSAPIList() local
343 JSHandle<JSTaggedValue> proto = globalEnv->GetObjectFunctionPrototype(); NewJSAPILinkedList() local
359 NewJSAPIArrayList(JSThread *thread, ObjectFactory *factory, JSHandle<JSTaggedValue> proto) NewJSAPIArrayList() argument
369 NewJSAPIStack(ObjectFactory *factory, JSHandle<JSTaggedValue> proto) NewJSAPIStack() argument
377 NewJSRegExp(JSThread *thread, ObjectFactory *factory, JSHandle<JSTaggedValue> proto) NewJSRegExp() argument
393 JSHandle<JSTaggedValue> proto = globalEnv->GetObjectFunctionPrototype(); NewJSAPILightWeightMap() local
414 JSHandle<JSTaggedValue> proto = globalEnv->GetObjectFunctionPrototype(); NewJSAPILightWeightSet() local
429 NewJSAPIQueue(JSThread *thread, ObjectFactory *factory, JSHandle<JSTaggedValue> proto) NewJSAPIQueue() argument
441 NewJSAPIDeque(JSThread *thread, ObjectFactory *factory, JSHandle<JSTaggedValue> proto) NewJSAPIDeque() argument
452 NewJSAPIVector(ObjectFactory *factory, JSHandle<JSTaggedValue> proto) NewJSAPIVector() argument
466 JSHandle<JSTaggedValue> proto = globalEnv->GetFunctionPrototype(); HWTEST_F_L0() local
[all...]
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/tests/
H A Dheap_dump_test.cpp190 JSHandle<JSObject> NewObject(uint32_t size, JSType type, JSHandle<JSTaggedValue> proto) in NewObject() argument
193 JSHandle<JSHClass> hclass = factory->NewEcmaHClass(size, type, proto); in NewObject()
197 JSHandle<JSObject> NewSObject(uint32_t size, JSType type, JSHandle<JSTaggedValue> proto) in NewSObject() argument
201 JSHandle<JSHClass> hclass = factory->NewSEcmaHClass(size, 0, type, proto, emptySLayout); in NewSObject()
209 JSHandle<JSTaggedValue> proto = instance->GetGlobalEnv()->GetFunctionPrototype(); in NewJSSet() local
210 JSHandle<JSObject> jsSetObject = NewObject(JSSet::SIZE, JSType::JS_SET, proto); in NewJSSet()
221 JSHandle<JSTaggedValue> proto = instance->GetGlobalEnv()->GetSFunctionPrototype(); in NewJSSharedSet() local
222 JSHandle<JSObject> jsSSetObject = NewSObject(JSSharedSet::SIZE, JSType::JS_SHARED_SET, proto); in NewJSSharedSet()
235 JSHandle<JSTaggedValue> proto = instance->GetGlobalEnv()->GetFunctionPrototype(); in NewJSMap() local
236 JSHandle<JSObject> jsMapObject = NewObject(JSMap::SIZE, JSType::JS_MAP, proto); in NewJSMap()
247 JSHandle<JSTaggedValue> proto = instance->GetGlobalEnv()->GetSFunctionPrototype(); NewJSSharedMap() local
261 JSHandle<JSTaggedValue> proto = instance->GetGlobalEnv()->GetFunctionPrototype(); NewJSWeakSet() local
273 JSHandle<JSTaggedValue> proto = instance->GetGlobalEnv()->GetFunctionPrototype(); NewJSWeakMap() local
309 JSHandle<JSTaggedValue> proto = instance->GetGlobalEnv()->GetFunctionPrototype(); NewJSRegExpIterator() local
331 JSHandle<JSTaggedValue> proto = instance->GetGlobalEnv()->GetFunctionPrototype(); NewJSAPIArrayList() local
342 JSHandle<JSTaggedValue> proto = instance->GetGlobalEnv()->GetObjectFunctionPrototype(); NewJSAPIHashMap() local
354 JSHandle<JSTaggedValue> proto = instance->GetGlobalEnv()->GetObjectFunctionPrototype(); NewJSAPIHashSet() local
367 JSHandle<JSTaggedValue> proto = instance->GetGlobalEnv()->GetObjectFunctionPrototype(); NewJSAPILightWeightMap() local
389 JSHandle<JSTaggedValue> proto = instance->GetGlobalEnv()->GetObjectFunctionPrototype(); NewJSAPILightWeightSet() local
408 JSHandle<JSTaggedValue> proto = instance->GetGlobalEnv()->GetObjectFunctionPrototype(); NewJSAPITreeMap() local
420 JSHandle<JSTaggedValue> proto = instance->GetGlobalEnv()->GetObjectFunctionPrototype(); NewJSAPITreeSet() local
433 JSHandle<JSTaggedValue> proto = instance->GetGlobalEnv()->GetFunctionPrototype(); NewJSAPIQueue() local
447 JSHandle<JSTaggedValue> proto = instance->GetGlobalEnv()->GetFunctionPrototype(); NewJSAPIDeque() local
459 JSHandle<JSTaggedValue> proto = instance->GetGlobalEnv()->GetFunctionPrototype(); NewJSAPIStack() local
470 JSHandle<JSTaggedValue> proto = instance->GetGlobalEnv()->GetObjectFunctionPrototype(); NewJSAPIPlainArray() local
487 JSHandle<JSTaggedValue> proto = instance->GetGlobalEnv()->GetObjectFunctionPrototype(); NewJSAPIList() local
499 JSHandle<JSTaggedValue> proto = instance->GetGlobalEnv()->GetObjectFunctionPrototype(); NewJSAPILinkedList() local
510 JSHandle<JSTaggedValue> proto = instance->GetGlobalEnv()->GetFunctionPrototype(); NewJSAPIVector() local
767 JSHandle<JSTaggedValue> proto = env->GetFunctionPrototype(); global() local
879 JSHandle<JSTaggedValue> proto = ecmaVm_->GetGlobalEnv()->GetFunctionPrototype(); HWTEST_F_L0() local
913 JSHandle<JSTaggedValue> proto = ecmaVm_->GetGlobalEnv()->GetFunctionPrototype(); HWTEST_F_L0() local
988 JSHandle<JSTaggedValue> proto = ecmaVm_->GetGlobalEnv()->GetFunctionPrototype(); HWTEST_F_L0() local
1118 JSHandle<JSTaggedValue> proto = ecmaVm_->GetGlobalEnv()->GetFunctionPrototype(); HWTEST_F_L0() local
1147 JSHandle<JSTaggedValue> proto = ecmaVm_->GetGlobalEnv()->GetFunctionPrototype(); HWTEST_F_L0() local
[all...]
/arkcompiler/ets_runtime/test/fuzztest/publicapilocalregexpref_fuzzer/
H A Dpublicapilocalregexpref_fuzzer.cpp41 JSHandle<JSTaggedValue> proto = globalEnv->GetObjectFunctionPrototype(); in LocalRegExpGetOriginalSourceFuzzTest() local
42 JSHandle<JSHClass> jSRegExpClass = factory->NewEcmaHClass(JSRegExp::SIZE, JSType::JS_REG_EXP, proto); in LocalRegExpGetOriginalSourceFuzzTest()
70 JSHandle<JSTaggedValue> proto = globalEnv->GetObjectFunctionPrototype(); in LocalRegExpRefGetOriginalFlagsFuzzTest() local
71 JSHandle<JSHClass> jSRegExpClass = factory->NewEcmaHClass(JSRegExp::SIZE, JSType::JS_REG_EXP, proto); in LocalRegExpRefGetOriginalFlagsFuzzTest()
98 JSHandle<JSTaggedValue> proto = globalEnv->GetObjectFunctionPrototype(); in LocalRegExpIsGlobalRefFuzzTest() local
99 JSHandle<JSGlobalObject> globalObject = JSHandle<JSGlobalObject>::Cast(proto); in LocalRegExpIsGlobalRefFuzzTest()
121 JSHandle<JSTaggedValue> proto = globalEnv->GetObjectFunctionPrototype(); in LocalRegExpIsIgnoreCaseFuzzTest() local
122 JSHandle<JSHClass> jSRegExpClass = factory->NewEcmaHClass(JSRegExp::SIZE, JSType::JS_REG_EXP, proto); in LocalRegExpIsIgnoreCaseFuzzTest()
145 JSHandle<JSTaggedValue> proto = globalEnv->GetObjectFunctionPrototype(); in LocalRegExpIsMultilineFuzzTest() local
146 JSHandle<JSHClass> jSRegExpClass = factory->NewEcmaHClass(JSRegExp::SIZE, JSType::JS_REG_EXP, proto); in LocalRegExpIsMultilineFuzzTest()
169 JSHandle<JSTaggedValue> proto = globalEnv->GetObjectFunctionPrototype(); LocalRegExpIsDotAllFuzzTest() local
193 JSHandle<JSTaggedValue> proto = globalEnv->GetObjectFunctionPrototype(); LocalRegExpIsUtf16FuzzTest() local
217 JSHandle<JSTaggedValue> proto = globalEnv->GetObjectFunctionPrototype(); LocalRegExpIsSticklFuzzTest() local
[all...]
/arkcompiler/ets_frontend/merge_abc/src/
H A Dmain.cpp24 namespace panda::proto { namespace in panda
78 proto::ProtobufSnapshotGenerator::GenerateProgram(protoFile, *(programs[idx++]), &allocator); in Run()
90 } // namespace panda::proto
94 panda::proto::ProtoMemManager mm; in main()
95 return panda::proto::Run(argc, argv); in main()
H A DassemblyFileLocationProto.h22 namespace panda::proto { namespace in panda
29 } // panda::proto
H A DassemblyFieldProto.h24 namespace panda::proto { namespace in panda
31 } // panda::proto
H A DassemblyProgramProto.h26 namespace panda::proto { namespace in panda
33 } // panda::proto
H A DassemblyRecordProto.h25 namespace panda::proto { namespace in panda
32 } // panda::proto
H A DassemblyLabelProto.h23 namespace panda::proto { namespace in panda
29 } // panda::proto
H A DassemblyInsProto.h23 namespace panda::proto { namespace in panda
29 } // panda::proto
H A DassemblyTypeProto.h23 namespace panda::proto { namespace in panda
30 } // panda::proto
/arkcompiler/ets_runtime/ecmascript/
H A Djs_hclass.cpp351 const JSHandle<JSTaggedValue> &proto, bool isChangeProto) in TransitionProto()
356 auto *newClass = jshclass->FindProtoTransitions(key.GetTaggedValue(), proto.GetTaggedValue()); in TransitionProto()
360 newClass = FindTransitionProtoForAOT(thread, jshclass, proto); in TransitionProto()
369 newJsHClass->SetPrototype(thread, proto.GetTaggedValue(), isChangeProto); in TransitionProto()
379 AddProtoTransitions(thread, jshclass, newJsHClass, key, proto); in TransitionProto()
387 const JSHandle<JSTaggedValue> &proto) in FindTransitionProtoForAOT()
389 if (!proto->IsECMAObject()) { in FindTransitionProtoForAOT()
392 JSHandle<JSHClass> baseIhc(thread, proto->GetTaggedObject()->GetClass()); in FindTransitionProtoForAOT()
405 ReBuildFunctionInheritanceRelationship(thread, proto, JSHandle<JSTaggedValue>(baseIhc), transIhc, transPhc); in FindTransitionProtoForAOT()
411 const JSHandle<JSTaggedValue> &proto, in ReBuildFunctionInheritanceRelationship()
350 TransitionProto(const JSThread *thread, const JSHandle<JSHClass> &jshclass, const JSHandle<JSTaggedValue> &proto, bool isChangeProto) TransitionProto() argument
386 FindTransitionProtoForAOT(const JSThread *thread, const JSHandle<JSHClass> &jshclass, const JSHandle<JSTaggedValue> &proto) FindTransitionProtoForAOT() argument
410 ReBuildFunctionInheritanceRelationship(const JSThread *thread, const JSHandle<JSTaggedValue> &proto, const JSHandle<JSTaggedValue> &baseIhc, const JSHandle<JSTaggedValue> &transIhc, const JSHandle<JSTaggedValue> &transPhc) ReBuildFunctionInheritanceRelationship() argument
435 CloneWithAddProto(const JSThread *thread, const JSHandle<JSHClass> &jshclass, const JSHandle<JSTaggedValue> &key, const JSHandle<JSTaggedValue> &proto) CloneWithAddProto() argument
449 TransProtoWithoutLayout(const JSThread *thread, const JSHandle<JSHClass> &jshclass, const JSHandle<JSTaggedValue> &proto) TransProtoWithoutLayout() argument
464 SetPrototype(const JSThread *thread, JSTaggedValue proto, bool isChangeProto) SetPrototype() argument
471 SetPrototypeWithNotification(const JSThread *thread, const JSHandle<JSHClass> &hclass, const JSHandle<JSTaggedValue> &proto, bool isChangeProto) SetPrototypeWithNotification() argument
487 SetPrototypeTransition(JSThread *thread, const JSHandle<JSObject> &object, const JSHandle<JSTaggedValue> &proto, bool isChangeProto) SetPrototypeTransition() argument
498 SetPrototype(const JSThread *thread, const JSHandle<JSTaggedValue> &proto, bool isChangeProto) SetPrototype() argument
507 OptimizePrototypeForIC(const JSThread *thread, const JSHandle<JSTaggedValue> &proto, bool isChangeProto) OptimizePrototypeForIC() argument
850 JSTaggedValue proto = jshclass->GetPrototype(); EnableProtoChangeMarker() local
980 JSTaggedValue proto = user->GetPrototype(); RegisterOnProtoChain() local
1027 JSTaggedValue proto = jshclass->GetPrototype(); UnregisterOnProtoChain() local
[all...]
H A Djs_hclass-inl.h30 bool JSHClass::ProtoIsFastJSArray(const JSThread *thread, const JSHandle<JSTaggedValue> proto, in ProtoIsFastJSArray() argument
37 if (proto->IsJSArray()) { in ProtoIsFastJSArray()
87 const JSHandle<JSTaggedValue> &proto) in AddProtoTransitions()
111 TransitionsDictionary::PutIfAbsent(thread, dict, key, JSHandle<JSTaggedValue>(child), proto).GetTaggedValue(); in AddProtoTransitions()
153 inline JSHClass *JSHClass::FindProtoTransitions(const JSTaggedValue &key, const JSTaggedValue &proto) in FindProtoTransitions() argument
163 auto entry = dict->FindEntry(key, proto); in FindProtoTransitions()
317 auto proto = hclass->GetProto(); in FindProtoHClass() local
318 if (proto.IsJSObject()) { in FindProtoHClass()
319 auto prototypeObj = JSObject::Cast(proto); in FindProtoHClass()
327 auto proto in FindProtoRootHClass() local
85 AddProtoTransitions(const JSThread *thread, const JSHandle<JSHClass> &parent, const JSHandle<JSHClass> &child, const JSHandle<JSTaggedValue> &key, const JSHandle<JSTaggedValue> &proto) AddProtoTransitions() argument
[all...]
H A Djs_for_in_iterator.cpp35 JSTaggedValue proto = hclass->GetPrototype(); in IsEnumCacheValid() local
36 if (!proto.IsECMAObject()) { in IsEnumCacheValid()
39 JSTaggedValue protoChangeMarker = proto.GetTaggedObject()->GetClass()->GetProtoChangeMarker(); in IsEnumCacheValid()
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefiscontainer_fuzzer/
H A Djsvaluerefiscontainer_fuzzer.cpp49 JSHandle<JSTaggedValue> proto = globalEnv->GetObjectFunctionPrototype(); in JSValueRefIsVectorFuzzTest() local
50 JSHandle<JSHClass> vectorClass = factory->NewEcmaHClass(JSAPIVector::SIZE, JSType::JS_API_VECTOR, proto); in JSValueRefIsVectorFuzzTest()
88 JSHandle<JSTaggedValue> proto = globalEnv->GetObjectFunctionPrototype(); in JSValueRefIsRegExpFuzzTest() local
89 JSHandle<JSHClass> jSRegExpClass = factory->NewEcmaHClass(JSRegExp::SIZE, JSType::JS_REG_EXP, proto); in JSValueRefIsRegExpFuzzTest()
143 JSHandle<JSTaggedValue> proto = globalEnv->GetObjectFunctionPrototype(); in JSValueRefIsTreeMapFuzzTest() local
144 JSHandle<JSHClass> mapClass = factory->NewEcmaHClass(JSAPITreeMap::SIZE, JSType::JS_API_TREE_MAP, proto); in JSValueRefIsTreeMapFuzzTest()
168 JSHandle<JSTaggedValue> proto = globalEnv->GetObjectFunctionPrototype(); in JSValueRefIsTreeSetFuzzTest() local
169 JSHandle<JSHClass> setClass = factory->NewEcmaHClass(JSAPITreeSet::SIZE, JSType::JS_API_TREE_SET, proto); in JSValueRefIsTreeSetFuzzTest()
/arkcompiler/runtime_core/static_core/runtime/include/
H A Dclass-inl.h441 inline Method *Class::GetDirectMethod(const uint8_t *mutf8Name, const Method::Proto &proto) const
445 sd, [&proto](const Method &method) { return method.GetProtoId() == proto; });
448 inline Method *Class::GetClassMethod(const uint8_t *mutf8Name, const Method::Proto &proto) const
451 return GetClassMethod(sd, proto);
454 inline Method *Class::GetClassMethod(const panda_file::File::StringData &sd, const Method::Proto &proto) const
457 sd, [&proto](const Method &method) { return method.GetProtoId() == proto; });
461 const Method::Proto &proto) const
464 sd, [&proto](cons
[all...]
/arkcompiler/ets_runtime/test/moduletest/instanceofic/
H A Dinstanceofic.js98 var proto = proto_desc.value; variable
99 print(proto instanceof RegExp);
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
H A Dbuiltins_sharedobject_test.cpp64 auto proto = ctorHClass->GetProto(); in HWTEST_F_L0() local
65 ASSERT_EQ(proto, env->GetSFunctionPrototype().GetTaggedValue()); in HWTEST_F_L0()
66 ASSERT_TRUE(proto.IsJSSharedFunction()); in HWTEST_F_L0()
67 JSHClass *protoHClass = proto.GetTaggedObject()->GetClass(); in HWTEST_F_L0()
/arkcompiler/ets_runtime/test/moduletest/builtins/
H A Dbuiltinsreflect.js98 let proto = target.__proto__;
103 target.__proto__ = proto;
/arkcompiler/ets_runtime/ecmascript/serializer/
H A Dbase_serializer.cpp139 JSTaggedValue proto = kclass->GetPrototype(); in SerializeHClassFieldIndividually() local
145 SerializeObjectProto(kclass, proto); in SerializeHClassFieldIndividually()
315 void BaseSerializer::SerializeObjectProto(JSHClass *kclass, JSTaggedValue proto) in SerializeObjectProto() argument
317 if (!proto.IsHeapObject()) { in SerializeObjectProto()
319 data_->WriteJSTaggedValue(proto); in SerializeObjectProto()
320 } else if (!SerializeReference(proto.GetTaggedObject()) && !SerializeRootObject(proto.GetTaggedObject())) { in SerializeObjectProto()
/arkcompiler/runtime_core/static_core/runtime/tests/
H A Dgetmethod_test.cpp108 Method::Proto proto(Method::Proto::ShortyVector {panda_file::Type(panda_file::Type::TypeId::VOID)}, in TEST_F()
111 Method *method = klass->GetClassMethod(utf::CStringAsMutf8(methodsName[i].c_str()), proto); in TEST_F()

Completed in 15 milliseconds

123456