/arkcompiler/ets_runtime/ecmascript/tests/ |
H A D | machine_code_test.cpp | 54 MachineCodeDesc desc; in HWTEST_F_L0() local 55 desc.codeType = MachineCodeType::BASELINE_CODE; in HWTEST_F_L0() 56 desc.instructionsSize = 100; in HWTEST_F_L0() 57 desc.instructionsAddr = 1000; in HWTEST_F_L0() 58 desc.stackMapSizeAlign = 100; in HWTEST_F_L0() 59 TaggedObject *machineCode = factory->NewMachineCodeObject(100, desc); in HWTEST_F_L0() 60 factory->SetMachineCodeObjectData(machineCode, 100, desc, method); in HWTEST_F_L0() 68 MachineCodeDesc desc; in HWTEST_F_L0() local 69 desc.codeType = MachineCodeType::FAST_JIT_CODE; in HWTEST_F_L0() 70 desc in HWTEST_F_L0() 88 MachineCodeDesc desc; HWTEST_F_L0() local 116 MachineCodeDesc desc; HWTEST_F_L0() local [all...] |
H A D | js_primitive_ref_test.cpp | 43 PropertyDescriptor desc(thread); in HWTEST_F_L0() 44 status = JSPrimitiveRef::GetOwnProperty(thread, str, idx, desc); in HWTEST_F_L0() 47 JSHandle<EcmaString> h2 = JSTaggedValue::ToString(thread, desc.GetValue()); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/mem/ |
H A D | machine_code.cpp | 37 static int MachineCodeCopyToCache([[maybe_unused]] const MachineCodeDesc &desc, [[maybe_unused]] uint8_t *pText) in MachineCodeCopyToCache() argument 40 if (memcpy_s(pText, desc.codeSizeAlign, reinterpret_cast<uint8_t*>(desc.codeAddr), desc.codeSize) != EOK) { in MachineCodeCopyToCache() 48 bool MachineCode::SetText(const MachineCodeDesc &desc) in SetText() argument 52 if (desc.rodataSizeBeforeTextAlign != 0) { in SetText() 53 if (memcpy_s(pText, desc.rodataSizeBeforeTextAlign, in SetText() 54 reinterpret_cast<uint8_t*>(desc.rodataAddrBeforeText), in SetText() 55 desc.rodataSizeBeforeText) != EOK) { // LCOV_EXCL_BR_LINE in SetText() 59 pText += desc in SetText() 79 SetNonText(const MachineCodeDesc &desc, EntityId methodId) SetNonText() argument 115 SetData(const MachineCodeDesc &desc, JSHandle<Method> &method, size_t dataSize) SetData() argument 161 SetBaselineCodeData(const MachineCodeDesc &desc, JSHandle<Method> &method, size_t dataSize) SetBaselineCodeData() argument [all...] |
H A D | jit_fort_memdesc.h | 76 inline void SetNext(MemDesc *desc) in SetNext() argument 78 next_ = desc; in SetNext() 144 inline void ReturnDescToPool(MemDesc *desc) in ReturnDescToPool() argument 147 Add(desc); in ReturnDescToPool()
|
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/ |
H A D | pgo_profiler_layout.h | 180 void InsertKeyAndDesc(const PGOHandler &handler, PropertyDesc &desc); 191 RootHClassLayoutDesc(const RootHClassLayoutDesc &desc) in RootHClassLayoutDesc() argument 192 : HClassLayoutDesc(desc.type_, desc.childs_), objType_(desc.objType_), objSize_(desc.objSize_), in RootHClassLayoutDesc() 193 layoutDesc_(desc.layoutDesc_) {} in RootHClassLayoutDesc() 194 RootHClassLayoutDesc& operator=(const RootHClassLayoutDesc &desc) in operator =() argument 196 this->type_ = desc.type_; in operator =() 197 this->childs_ = desc in operator =() 250 ChildHClassLayoutDesc(const ChildHClassLayoutDesc &desc) ChildHClassLayoutDesc() argument 252 operator =(const ChildHClassLayoutDesc &desc) operator =() argument 396 CaculateSize(const RootHClassLayoutDesc &desc) CaculateSize() argument 407 Merge(const RootHClassLayoutDesc &desc) Merge() argument 486 CaculateSize(const ChildHClassLayoutDesc &desc) CaculateSize() argument 495 Merge(const ChildHClassLayoutDesc &desc) Merge() argument 544 CaculateSize(const PGOHClassTreeDesc &desc) CaculateSize() argument 559 GetTypeString(const PGOHClassTreeDesc &desc) GetTypeString() argument 585 Merge(const PGOHClassTreeDesc &desc) Merge() argument [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/pgo_type/ |
H A D | pgo_hclass_generator.cpp | 21 PGOHClassTreeDesc *desc; in FindHClassLayoutDesc() local 22 typeRecorder_.GetHClassTreeDesc(type, &desc); in FindHClassLayoutDesc() 23 if (desc == nullptr) { in FindHClassLayoutDesc() 26 if (desc->GetHClassLayoutDesc(type.GetProfileType()) == nullptr) { in FindHClassLayoutDesc() 36 PGOHClassTreeDesc *desc; in GenerateHClass() local 37 if (!typeRecorder_.GetHClassTreeDesc(type, &desc)) { in GenerateHClass() 41 auto rootHClassDesc = desc->GetHClassLayoutDesc(rootType); in GenerateHClass() 48 CaculateMaxNumOfObj(desc, rootHClassDesc, rootNumOfProps, maxNumOfProps); in GenerateHClass() 63 CreateChildHClass(rootType, desc, rootHClass, rootHClassDesc); in GenerateHClass() 69 PGOHClassTreeDesc *desc; in GenerateIHClass() local 102 PGOHClassTreeDesc *desc; CaculateMaxNumOfObjIncludeProtoTransition() local 117 CaculateMaxNumOfObj( const PGOHClassTreeDesc *desc, const HClassLayoutDesc *parent, uint32_t lastNum, uint32_t &maxNum) const CaculateMaxNumOfObj() argument 179 CreateChildHClass(ProfileType rootType, const PGOHClassTreeDesc *desc, const JSHandle<JSHClass> &parent, const HClassLayoutDesc *parentLayoutDesc) const CreateChildHClass() argument [all...] |
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/test262/ |
H A D | util_test262.py | 52 desc = descriptor.parse_descriptor() 56 if "includes" in desc: 57 includes.extend(desc["includes"]) 60 if 'flags' in desc and 'async' in desc["flags"]: 63 negative_phase = desc["negative_phase"] if 'negative_phase' in desc else 'pass' 64 negative_type = desc["negative_type"] if 'negative_type' in desc else '' 68 'flags': desc["flag [all...] |
H A D | test_js_test262.py | 37 desc = self.util.process_descriptor(descriptor) 47 if 'module' in desc['flags']: 49 if 'noStrict' in desc['flags']: 56 lambda o, e, rc: self.es2panda_result_validator(o, e, rc, desc, test_abc) 89 lambda o, e, rc: bool(self.util.validate_runtime_result(rc, e, desc, o)) 95 actual_return_code: int, desc: Dict[str, Any], output_path: str) -> bool: 99 desc,
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
H A D | jit_compiler.cpp | 179 static ARK_INLINE bool CopyCodeToFort(MachineCodeDesc &desc) in CopyCodeToFort() argument 181 uint8_t *pText = reinterpret_cast<uint8_t*>(desc.instructionsAddr); in CopyCodeToFort() 182 if (desc.rodataSizeBeforeTextAlign != 0) { in CopyCodeToFort() 183 pText += desc.rodataSizeBeforeTextAlign; in CopyCodeToFort() 186 if ((uintptr_t)desc.codeSigner == 0) { in CopyCodeToFort() 187 if (memcpy_s(pText, desc.codeSizeAlign, reinterpret_cast<uint8_t*>(desc.codeAddr), desc.codeSize) != EOK) { in CopyCodeToFort() 194 << std::hex << (uintptr_t)desc.codeAddr << " size: " << desc in CopyCodeToFort() 217 AllocFromFortAndCopy(CompilationEnv &compilationEnv, MachineCodeDesc &desc) AllocFromFortAndCopy() argument [all...] |
/arkcompiler/ets_frontend/ets2panda/lexer/scripts/ |
H A D | keywords.rb | 65 all_words = data.keywords.select do |desc| 66 s_kw = Set.new(desc&.keyword) 67 groups = [s_kw, Set.new(desc&.keyword_like), Set.new(desc&.custom_handler)] 77 keywords = data.keywords.select do |desc| 78 desc&.keyword&.include? extension.name or desc&.custom_handler&.include? extension.name 82 @extensions[extension.name]['keyword_starts'] = Set.new(keywords.map { |desc| desc.name[0] }) 84 @extensions[extension.name]['all_word_starts'] = Set.new(all_words.map { |desc| des [all...] |
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/js_proxy/ |
H A D | js_proxy.h | 42 Span<const uint8_t> desc(descriptor, utf::Mutf8Size(descriptor)); in IsProxyClass() 43 return desc[0] == 'L' && desc[1] == '$' && desc[desc.size() - 1] == ';' && desc[desc.size() - 2U] == '$'; in IsProxyClass()
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | js_arguments.cpp | 23 const JSHandle<JSTaggedValue> &key, PropertyDescriptor &desc) in GetOwnProperty() 25 // 1 ~ 3 Let desc be OrdinaryGetOwnProperty(args, P). in GetOwnProperty() 26 JSObject::OrdinaryGetOwnProperty(thread, JSHandle<JSObject>(args), key, desc); in GetOwnProperty() 27 if (desc.IsEmpty()) { in GetOwnProperty() 31 // 8.If IsDataDescriptor(desc) is true and P is "caller" and desc.[[Value]] is a strict mode Function object, in GetOwnProperty() 34 if (desc.IsDataDescriptor() && JSTaggedValue::SameValue(key.GetTaggedValue(), caller.GetTaggedValue()) && in GetOwnProperty() 35 desc.GetValue()->IsJSFunction()) { in GetOwnProperty() 38 // 9.Return desc. in GetOwnProperty() 43 const JSHandle<JSTaggedValue> &key, const PropertyDescriptor &desc) in DefineOwnProperty() 22 GetOwnProperty(JSThread *thread, const JSHandle<JSArguments> &args, const JSHandle<JSTaggedValue> &key, PropertyDescriptor &desc) GetOwnProperty() argument 42 DefineOwnProperty(JSThread *thread, const JSHandle<JSArguments> &args, const JSHandle<JSTaggedValue> &key, const PropertyDescriptor &desc) DefineOwnProperty() argument [all...] |
H A D | js_primitive_ref.cpp | 40 PropertyDescriptor desc(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue(length)), false, false, false); in StringCreate() 41 [[maybe_unused]] bool status = JSTaggedValue::DefinePropertyOrThrow(thread, str, lengthStr, desc); in StringCreate() 49 PropertyDescriptor *desc) in StringGetIndexProperty() 65 desc->SetValue(value); in StringGetIndexProperty() 66 desc->SetEnumerable(true); in StringGetIndexProperty() 67 desc->SetWritable(false); in StringGetIndexProperty() 68 desc->SetConfigurable(false); in StringGetIndexProperty() 48 StringGetIndexProperty(const JSThread *thread, const JSHandle<JSObject> &obj, uint32_t index, PropertyDescriptor *desc) StringGetIndexProperty() argument
|
H A D | filter_helper.h | 39 static bool IgnoreKeyByFilter(T &desc, uint32_t filter) in IgnoreKeyByFilter() argument 44 if ((filter & NATIVE_WRITABLE) && !desc.IsWritable()) { in IgnoreKeyByFilter() 47 if ((filter & NATIVE_ENUMERABLE) && !desc.IsEnumerable()) { in IgnoreKeyByFilter() 50 if ((filter & NATIVE_CONFIGURABLE) && !desc.IsConfigurable()) { in IgnoreKeyByFilter()
|
H A D | js_object.cpp | 30 PropertyAttributes::PropertyAttributes(const PropertyDescriptor &desc) in PropertyAttributes() argument 33 if (desc.HasWritable()) { in PropertyAttributes() 34 SetWritable(desc.IsWritable()); in PropertyAttributes() 37 if (desc.HasEnumerable()) { in PropertyAttributes() 38 SetEnumerable(desc.IsEnumerable()); in PropertyAttributes() 41 if (desc.HasConfigurable()) { in PropertyAttributes() 42 SetConfigurable(desc.IsConfigurable()); in PropertyAttributes() 45 if (desc.IsAccessorDescriptor()) { in PropertyAttributes() 49 if (desc.HasValue() && desc in PropertyAttributes() 1217 GetOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTaggedValue> &key, PropertyDescriptor &desc) GetOwnProperty() argument 1223 GlobalGetOwnProperty(JSThread *thread, const JSHandle<JSTaggedValue> &key, PropertyDescriptor &desc) GlobalGetOwnProperty() argument 1243 OrdinaryGetOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTaggedValue> &key, PropertyDescriptor &desc) OrdinaryGetOwnProperty() argument 1267 DefineOwnProperty(JSThread *thread, ObjectOperator *op, const PropertyDescriptor &desc, SCheckMode sCheckMode) DefineOwnProperty() argument 1273 DefineOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTaggedValue> &key, const PropertyDescriptor &desc, SCheckMode sCheckMode) DefineOwnProperty() argument 1279 DefineOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t index, const PropertyDescriptor &desc, SCheckMode sCheckMode) DefineOwnProperty() argument 1286 OrdinaryDefineOwnProperty(JSThread *thread, ObjectOperator *op, const PropertyDescriptor &desc, SCheckMode sCheckMode) OrdinaryDefineOwnProperty() argument 1301 OrdinaryDefineOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj, const JSHandle<JSTaggedValue> &key, const PropertyDescriptor &desc, SCheckMode sCheckMode) OrdinaryDefineOwnProperty() argument 1312 OrdinaryDefineOwnProperty(JSThread *thread, const JSHandle<JSObject> &obj, uint32_t index, const PropertyDescriptor &desc, SCheckMode sCheckMode) OrdinaryDefineOwnProperty() argument 1324 ValidateDataDescriptorWhenConfigurable(ObjectOperator *op, const PropertyDescriptor &desc, const PropertyDescriptor ¤t, SCheckMode sCheckMode) ValidateDataDescriptorWhenConfigurable() argument 1350 ValidateAndApplyPropertyDescriptor(ObjectOperator *op, bool extensible, const PropertyDescriptor &desc, const PropertyDescriptor ¤t, SCheckMode sCheckMode) ValidateAndApplyPropertyDescriptor() argument 1479 IsCompatiblePropertyDescriptor(bool extensible, const PropertyDescriptor &desc, const PropertyDescriptor ¤t) IsCompatiblePropertyDescriptor() argument 1864 PropertyDescriptor desc = currentDesc.IsAccessorDescriptor() ? descNoConf : descNoConfWrite; SetIntegrityLevel() local 2200 FromPropertyDescriptor(JSThread *thread, const PropertyDescriptor &desc) FromPropertyDescriptor() argument 2257 ToPropertyDescriptorFast(JSThread *thread, const JSHandle<JSTaggedValue> &obj, PropertyDescriptor &desc) ToPropertyDescriptorFast() argument 2322 ToPropertyDescriptor(JSThread *thread, const JSHandle<JSTaggedValue> &obj, PropertyDescriptor &desc) ToPropertyDescriptor() argument 2499 CompletePropertyDescriptor(const JSThread *thread, PropertyDescriptor &desc) CompletePropertyDescriptor() argument [all...] |
H A D | object_operator.cpp | 425 void ObjectOperator::ToPropertyDescriptor(PropertyDescriptor &desc) const in ToPropertyDescriptor() 433 desc.SetWritable(IsWritable()); in ToPropertyDescriptor() 435 desc.SetValue(JSHandle<JSTaggedValue>(thread_, val)); in ToPropertyDescriptor() 436 desc.SetSharedFieldType(GetSharedFieldType()); in ToPropertyDescriptor() 446 desc.SetWritable(IsWritable()); in ToPropertyDescriptor() 454 desc.SetValue(value); in ToPropertyDescriptor() 456 desc.SetGetter(JSHandle<JSTaggedValue>(thread_, accessor->GetGetter())); in ToPropertyDescriptor() 457 desc.SetSetter(JSHandle<JSTaggedValue>(thread_, accessor->GetSetter())); in ToPropertyDescriptor() 461 desc.SetEnumerable(IsEnumerable()); in ToPropertyDescriptor() 462 desc in ToPropertyDescriptor() 763 WriteDataProperty(const JSHandle<JSObject> &receiver, const PropertyDescriptor &desc) WriteDataProperty() argument [all...] |
/arkcompiler/ets_frontend/ets2panda/parser/ |
H A D | parserImpl.cpp | 253 void ParserImpl::ParseClassAccessor(ClassElementDescriptor *desc, char32_t *nextCp) in ParseClassAccessor() argument 255 ConsumeClassPrivateIdentifier(desc, nextCp); in ParseClassAccessor() 269 ThrowIfPrivateIdent(desc, "Unexpected identifier"); in ParseClassAccessor() 275 desc->methodKind = in ParseClassAccessor() 277 desc->methodStart = lexer_->GetToken().Start(); in ParseClassAccessor() 280 ConsumeClassPrivateIdentifier(desc, nextCp); in ParseClassAccessor() 283 void ParserImpl::ThrowIfPrivateIdent(ClassElementDescriptor *desc, const char *msg) in ThrowIfPrivateIdent() argument 285 if (desc->isPrivateIdent) { in ThrowIfPrivateIdent() 292 void ParserImpl::ValidateClassKey(ClassElementDescriptor *desc) in ValidateClassKey() argument 294 if (((desc in ValidateClassKey() 343 ParseClassKey(ClassElementDescriptor *desc) ParseClassKey() argument 402 ValidateClassMethodStart(ClassElementDescriptor *desc, [[maybe_unused]] ir::TypeNode *typeAnnotation) ValidateClassMethodStart() argument 418 ValidateClassSetter([[maybe_unused]] ClassElementDescriptor *desc, [[maybe_unused]] const ArenaVector<ir::AstNode *> &properties, [[maybe_unused]] ir::Expression *propName, ir::ScriptFunction *func) ValidateClassSetter() argument 427 ValidateClassGetter([[maybe_unused]] ClassElementDescriptor *desc, [[maybe_unused]] const ArenaVector<ir::AstNode *> &properties, [[maybe_unused]] ir::Expression *propName, ir::ScriptFunction *func) ValidateClassGetter() argument 436 ParseClassMethod(ClassElementDescriptor *desc, const ArenaVector<ir::AstNode *> &properties, ir::Expression *propName, lexer::SourcePosition *propEnd) ParseClassMethod() argument 469 ParseClassProperty(ClassElementDescriptor *desc, const ArenaVector<ir::AstNode *> &properties, ir::Expression *propName, ir::TypeNode *typeAnnotation) ParseClassProperty() argument 507 CheckClassGeneratorMethod(ClassElementDescriptor *desc, char32_t *nextCp) CheckClassGeneratorMethod() argument 529 ConsumeClassPrivateIdentifier(ClassElementDescriptor *desc, char32_t *nextCp) ConsumeClassPrivateIdentifier() argument [all...] |
/arkcompiler/ets_runtime/ecmascript/jit/ |
H A D | jit_task.cpp | 129 static void ComputeAlignedSizes(MachineCodeDesc &desc) in ComputeAlignedSizes() argument 131 desc.funcEntryDesSizeAlign = AlignUp(desc.funcEntryDesSize, MachineCode::TEXT_ALIGN); in ComputeAlignedSizes() 132 desc.stackMapSizeAlign = AlignUp(desc.stackMapOrOffsetTableSize, MachineCode::DATA_ALIGN); in ComputeAlignedSizes() 133 desc.rodataSizeBeforeTextAlign = AlignUp(desc.rodataSizeBeforeText, MachineCode::TEXT_ALIGN); in ComputeAlignedSizes() 135 if (desc.codeType == MachineCodeType::BASELINE_CODE) { in ComputeAlignedSizes() 136 desc.codeSizeAlign = Jit::GetInstance()->IsEnableJitFort() ? in ComputeAlignedSizes() 137 AlignUp(desc in ComputeAlignedSizes() [all...] |
/arkcompiler/ets_frontend/es2panda/test/ |
H A D | test262util.py | 102 desc = self.parse_descriptor(header) 108 for include in desc['includes']: 156 def validate_parse_result(return_code, std_err, desc, out): 157 is_negative = (desc['negative_phase'] == 'parse') 166 return is_negative and (desc['negative_type'] in out), False 170 def validate_runtime_result(self, return_code, std_err, desc, out): 171 is_negative = (desc['negative_phase'] == 'runtime') or ( 172 desc['negative_phase'] == 'resolution') 179 if 'async' in desc['flags']: 184 return is_negative and (desc['negative_typ [all...] |
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/astchecker/ |
H A D | test_astchecker.py | 42 desc = Descriptor(self.path).get_descriptor() 44 if 'flags' in desc and 'dynamic-ast' in desc['flags']: 49 if 'flags' in desc and 'module' in desc['flags']:
|
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/parser/ |
H A D | test_js_parser.py | 36 desc = Descriptor(self.path).get_descriptor() 38 if 'flags' in desc and 'dynamic-ast' in desc['flags']: 43 if 'flags' in desc and 'module' in desc['flags']:
|
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
H A D | builtins_sharedobject_test.cpp | 52 PropertyDescriptor desc(thread); in HWTEST_F_L0() 54 JSObject::GetOwnProperty(thread, JSHandle<JSObject>(sharedObjectPrototype), constructorKey, desc); in HWTEST_F_L0() 55 auto ctor = desc.GetValue(); in HWTEST_F_L0() 89 PropertyDescriptor desc(thread); in HWTEST_F_L0() 91 JSObject::GetOwnProperty(thread, JSHandle<JSObject>(sFunctionPrototype), constructorKey, desc); in HWTEST_F_L0() 92 auto ctor = desc.GetValue(); in HWTEST_F_L0() 113 PropertyDescriptor desc(thread); in HWTEST_F_L0() 114 JSObject::GetOwnProperty(thread, JSHandle<JSObject>(sFunctionPrototype), JSHandle<JSTaggedValue>(callStr), desc); in HWTEST_F_L0() 115 auto method = desc.GetValue(); in HWTEST_F_L0()
|
/arkcompiler/ets_frontend/es2panda/typescript/core/ |
H A D | typeCreation.cpp | 160 Type *Checker::CreateTupleType(ObjectDescriptor *desc, ArenaVector<ElementFlags> &&elementFlags, in CreateTupleType() argument 163 CHECK_NOT_NULL(desc); in CreateTupleType() 164 desc->stringIndexInfo = allocator_->New<IndexInfo>(GlobalAnyType(), "x", readonly); in CreateTupleType() 165 return allocator_->New<TupleType>(desc, std::move(elementFlags), combinedFlags, minLength, fixedLength, readonly); in CreateTupleType() 168 Type *Checker::CreateTupleType(ObjectDescriptor *desc, ArenaVector<ElementFlags> &&elementFlags, in CreateTupleType() argument 172 CHECK_NOT_NULL(desc); in CreateTupleType() 173 desc->stringIndexInfo = allocator_->New<IndexInfo>(GlobalAnyType(), "x", readonly); in CreateTupleType() 176 return allocator_->New<TupleType>(desc, std::move(elementFlags), combinedFlags, minLength, fixedLength, in CreateTupleType() 180 return allocator_->New<TupleType>(desc, std::move(elementFlags), combinedFlags, minLength, fixedLength, readonly); in CreateTupleType()
|
/arkcompiler/ets_runtime/ecmascript/module/ |
H A D | js_module_namespace.cpp | 219 PropertyDescriptor desc) in DefineOwnProperty() 224 bool res = JSObject::OrdinaryDefineOwnProperty(thread, JSHandle<JSObject>(obj), key, desc); in DefineOwnProperty() 238 if (desc.IsAccessorDescriptor()) { in DefineOwnProperty() 241 if (desc.HasConfigurable() && desc.IsConfigurable()) { in DefineOwnProperty() 244 if (desc.HasEnumerable() && !desc.IsEnumerable()) { in DefineOwnProperty() 247 if (desc.HasWritable() && !desc.IsWritable()) { in DefineOwnProperty() 252 if (desc in DefineOwnProperty() 216 DefineOwnProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &key, PropertyDescriptor desc) DefineOwnProperty() argument 293 GetOwnProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, const JSHandle<JSTaggedValue> &key, PropertyDescriptor &desc) GetOwnProperty() argument [all...] |
/arkcompiler/ets_runtime/ecmascript/jspandafile/ |
H A D | js_pandafile_manager.cpp | 169 // JSPandaFile desc cannot be empty, if buffer with empty filename, use pf filename as a descriptor. in LoadJSPandaFile() 170 const CString &desc = filename.empty() ? pf->GetFilename().c_str() : filename; in LoadJSPandaFile() local 172 std::shared_ptr<JSPandaFile> jsPandaFile = GenerateJSPandaFile(thread, pf.release(), desc, entryPoint); in LoadJSPandaFile() 216 // JSPandaFile desc cannot be empty, if buffer with empty filename, use pf filename as a descriptor. in LoadJSPandaFileSecure() 217 const CString &desc = filename.empty() ? pf->GetFilename().c_str() : filename; in LoadJSPandaFileSecure() local 219 std::shared_ptr<JSPandaFile> jsPandaFile = GenerateJSPandaFile(thread, pf.release(), desc, entryPoint); in LoadJSPandaFileSecure() 389 std::shared_ptr<JSPandaFile> JSPandaFileManager::OpenJSPandaFile(const CString &filename, const CString &desc) in OpenJSPandaFile() argument 397 return NewJSPandaFile(pf.release(), desc); in OpenJSPandaFile() 413 std::shared_ptr<JSPandaFile> JSPandaFileManager::NewJSPandaFile(const panda_file::File *pf, const CString &desc) in NewJSPandaFile() argument 415 std::shared_ptr<JSPandaFile> jsPandaFile = std::make_shared<JSPandaFile>(pf, desc); in NewJSPandaFile() 492 GetModuleNameFromDesc(const std::string &desc) GetModuleNameFromDesc() argument 522 GenerateJSPandaFile(JSThread *thread, const panda_file::File *pf, const CString &desc, std::string_view entryPoint) GenerateJSPandaFile() argument [all...] |