/arkcompiler/ets_frontend/es2panda/parser/program/ |
H A D | program.cpp | 32 Program::Program(Program &&other) in Program() argument 33 : allocator_(std::move(other.allocator_)), in Program() 34 binder_(other.binder_), in Program() 35 ast_(other.ast_), in Program() 36 sourceCode_(other.sourceCode_), in Program() 37 sourceFile_(other.sourceFile_), in Program() 38 recordName_(other.recordName_), in Program() 39 formatedRecordName_(other.formatedRecordName_), in Program() 40 kind_(other.kind_), in Program() 41 extension_(other in Program() 62 operator =(Program &&other) operator =() argument [all...] |
/arkcompiler/runtime_core/static_core/irtoc/lang/ |
H A D | regmap.rb | 37 def +(other) 38 if other.is_a? Regmap 39 Regmap.new(@data.merge(other.data), direct: true) 40 elsif other.is_a? Hash 41 Regmap.new(@data.merge(other), direct: true) 43 raise "Unsupported type: #{other.class}" 47 def -(other) 48 if other.is_a? Regmap 49 Regmap.new(@data.select { |k, _| !other.data.key?(k) }, direct: true) 50 elsif other [all...] |
H A D | regmask.rb | 88 def +(other) 89 if other.is_a? RegMask 90 self.class.from_value(@regmap, @value | other.value) 91 elsif other.is_a? Regmap 92 other_value = other.data.values.inject(0) { |res, x| res | (1 << x) } 94 elsif other.is_a? Integer 95 self.class.from_value(@regmap, @value | (1 << other)) 96 elsif other.is_a? Symbol 98 value = @regmap[other] 99 raise "Register '#{other}' i [all...] |
/arkcompiler/runtime_core/static_core/runtime/interpreter/ |
H A D | acc_vregister-inl.h | 33 ALWAYS_INLINE inline AccVRegisterT(const AccVRegister &other) in AccVRegisterT() argument 35 SetValue(other.GetValue()); in AccVRegisterT() 36 SetTag(other.GetTag()); in AccVRegisterT() 79 ALWAYS_INLINE inline void Move(const StaticVRegisterRef &other) in Move() argument 81 this->payload_->SetValue(other.GetValue()); in Move() 82 this->payload_->SetTag(other.GetTag()); in Move() 85 ALWAYS_INLINE inline void Move(const DynamicVRegisterRef &other) in Move() argument 87 this->payload_->SetValue(other.GetValue()); in Move() 97 ALWAYS_INLINE inline AccVRegisterTRef &operator=(const AccVRegisterTRef &other) in operator =() argument 99 this->payload_->SetValue(other in operator =() 105 operator =(AccVRegisterTRef &&other) operator =() argument 121 MovePrimitive(const AccVRegisterTRef &other) MovePrimitive() argument 130 MoveReference(const AccVRegisterTRef &other) MoveReference() argument 139 Move(const AccVRegisterTRef &other) Move() argument [all...] |
H A D | vregister.h | 242 ALWAYS_INLINE inline void MovePrimitive(const T &other) in MovePrimitive() argument 244 ASSERT(!other.HasObject()); in MovePrimitive() 245 static_cast<T *>(this)->MovePrimitive(other); in MovePrimitive() 248 ALWAYS_INLINE inline void MoveReference(const T &other) in MoveReference() argument 250 ASSERT(other.HasObject()); in MoveReference() 251 static_cast<T *>(this)->MoveReference(other); in MoveReference() 254 ALWAYS_INLINE inline void Move(const T &other) in Move() argument 256 static_cast<T *>(this)->Move(other); in Move() 407 ALWAYS_INLINE inline StaticVRegisterRef &operator=(const StaticVRegisterRef &other) in operator =() argument 409 *payload_ = *other in operator =() 415 operator =(StaticVRegisterRef &&other) operator =() argument 427 MovePrimitive(const StaticVRegisterRef &other) MovePrimitive() argument 433 MoveReference(const StaticVRegisterRef &other) MoveReference() argument 439 Move(const StaticVRegisterRef &other) Move() argument 500 operator =(const DynamicVRegisterRef &other) operator =() argument 507 operator =(DynamicVRegisterRef &&other) operator =() argument 519 MovePrimitive(const DynamicVRegisterRef &other) MovePrimitive() argument 525 MoveReference(const DynamicVRegisterRef &other) MoveReference() argument 531 Move(const DynamicVRegisterRef &other) Move() argument [all...] |
/arkcompiler/ets_runtime/ecmascript/mem/ |
H A D | slots.h | 101 bool operator<(const ObjectSlot &other) const in operator <() 103 return slotAddress_ < other.slotAddress_; in operator <() 105 bool operator<=(const ObjectSlot &other) const in operator <=() 107 return slotAddress_ <= other.slotAddress_; in operator <=() 109 bool operator>(const ObjectSlot &other) const in operator >() 111 return slotAddress_ > other.slotAddress_; in operator >() 113 bool operator>=(const ObjectSlot &other) const in operator >=() 115 return slotAddress_ >= other.slotAddress_; in operator >=() 117 bool operator==(const ObjectSlot &other) const in operator ==() 119 return slotAddress_ == other in operator ==() [all...] |
H A D | chunk_allocator.h | 36 using other = ChunkAllocator<U>; 45 explicit ChunkAllocator(const ChunkAllocator<U> &other) : chunk_(other.chunk_) in ChunkAllocator() argument 53 ChunkAllocator(ChunkAllocator &&other) noexcept 55 chunk_ = other.chunk_; 56 other.chunk_ = nullptr; 58 ChunkAllocator &operator=(ChunkAllocator &&other) noexcept 60 chunk_ = other.chunk_; 61 other.chunk_ = nullptr; 107 bool operator==(ChunkAllocator const &other) cons [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/ |
H A D | sparse_datainfo.h | 35 SparseDataInfo(const SparseDataInfo &other, const MapleAllocator &alloc) in SparseDataInfo() argument 37 info(other.info, allocator), in SparseDataInfo() 38 maxRegNum(other.maxRegNum) in SparseDataInfo() 42 SparseDataInfo(const SparseDataInfo &other) in SparseDataInfo() argument 43 : allocator(other.allocator), in SparseDataInfo() 44 info(other.info, allocator), in SparseDataInfo() 45 maxRegNum(other.maxRegNum) in SparseDataInfo() 57 SparseDataInfo &operator=(const SparseDataInfo &other) in operator =() argument 59 if (this == &other) { in operator =() 62 allocator = other in operator =() [all...] |
/arkcompiler/runtime_core/libpandabase/mem/ |
H A D | mem_range.h | 48 bool IsIntersect(const MemRange &other) const in IsIntersect() 50 return ((end_address_ >= other.start_address_) && (end_address_ <= other.end_address_)) || in IsIntersect() 51 ((start_address_ >= other.start_address_) && (start_address_ <= other.end_address_)) || in IsIntersect() 52 ((start_address_ < other.start_address_) && (end_address_ > other.end_address_)); in IsIntersect() 55 bool Contains(const MemRange &other) const in Contains() 57 return start_address_ <= other.start_address_ && end_address_ >= other in Contains() [all...] |
H A D | arena_allocator_stl_adapter.h | 36 using other = ArenaAllocatorAdapter<U, use_oom_handler>; 45 ArenaAllocatorAdapter(const ArenaAllocatorAdapter<U, use_oom_handler> &other) : allocator_(other.allocator_) in ArenaAllocatorAdapter() argument 74 using other = ArenaAllocatorAdapter<U, use_oom_handler>; 83 ArenaAllocatorAdapter(const ArenaAllocatorAdapter<U, use_oom_handler> &other) : allocator_(other.allocator_) in ArenaAllocatorAdapter() argument 88 ArenaAllocatorAdapter(ArenaAllocatorAdapter &&other) noexcept 90 allocator_ = other.allocator_; 91 other.allocator_ = nullptr; 93 ArenaAllocatorAdapter &operator=(ArenaAllocatorAdapter &&other) noexcep [all...] |
/arkcompiler/runtime_core/static_core/libpandabase/mem/ |
H A D | mem_range.h | 46 bool IsIntersect(const MemRange &other) const in IsIntersect() 48 return ((endAddress_ >= other.startAddress_) && (endAddress_ <= other.endAddress_)) || in IsIntersect() 49 ((startAddress_ >= other.startAddress_) && (startAddress_ <= other.endAddress_)) || in IsIntersect() 50 ((startAddress_ < other.startAddress_) && (endAddress_ > other.endAddress_)); in IsIntersect() 53 bool Contains(const MemRange &other) const in Contains() 55 return startAddress_ <= other.startAddress_ && endAddress_ >= other in Contains() [all...] |
H A D | arena_allocator_stl_adapter.h | 38 using other = ArenaAllocatorAdapter<U, USE_OOM_HANDLER>; 47 ArenaAllocatorAdapter(const ArenaAllocatorAdapter<U, USE_OOM_HANDLER> &other) : allocator_(other.allocator_) in ArenaAllocatorAdapter() argument 78 using other = ArenaAllocatorAdapter<U, USE_OOM_HANDLER>; 87 ArenaAllocatorAdapter(const ArenaAllocatorAdapter<U, USE_OOM_HANDLER> &other) : allocator_(other.allocator_) in ArenaAllocatorAdapter() argument 92 ArenaAllocatorAdapter(ArenaAllocatorAdapter &&other) noexcept 94 allocator_ = other.allocator_; 95 other.allocator_ = nullptr; 97 ArenaAllocatorAdapter &operator=(ArenaAllocatorAdapter &&other) noexcep [all...] |
/arkcompiler/runtime_core/static_core/runtime/mem/ |
H A D | allocator_adapter.h | 38 using other = AllocatorAdapter<U, ALLOC_SCOPE_T>; 51 AllocatorAdapter(const AllocatorAdapter<U, ALLOC_SCOPE_T> &other) : allocator_(other.allocator_) in AllocatorAdapter() argument 57 AllocatorAdapter(AllocatorAdapter &&other) noexcept = default; 58 AllocatorAdapter &operator=(AllocatorAdapter &&other) noexcept = default; 86 using other = AllocatorAdapter<U, ALLOC_SCOPE_T>; 98 AllocatorAdapter(const AllocatorAdapter<U, ALLOC_SCOPE_T> &other) : allocator_(other.allocator_) in AllocatorAdapter() argument 104 AllocatorAdapter(AllocatorAdapter &&other) noexcept = default; 105 AllocatorAdapter &operator=(AllocatorAdapter &&other) noexcep [all...] |
/arkcompiler/runtime_core/libpandabase/utils/ |
H A D | small_vector.h | 235 SmallVector(const SmallVector &other) : allocator_(other.allocator_) in SmallVector() argument 237 if (other.IsStatic()) { in SmallVector() 239 buffer_.size = other.buffer_.size; in SmallVector() 243 new (&buffer_.data[i]) T(other.buffer_.data[i]); in SmallVector() 247 new (&vector_) VectorType(other.vector_); in SmallVector() 251 SmallVector(SmallVector &&other) noexcept : allocator_(other.allocator_) in allocator_() 253 if (other.IsStatic()) { in allocator_() 255 buffer_.size = other in allocator_() 274 operator =(const SmallVector &other) operator =() argument [all...] |
H A D | regmask.h | 179 constexpr Self operator&(Self other) const 181 return Self(GetValue() & other.GetValue()); 184 constexpr Self operator|(Self other) const 186 return Self(GetValue() | other.GetValue()); 189 constexpr Self operator^(Self other) const 191 return Self(GetValue() ^ other.GetValue()); 194 constexpr Self operator&=(Self other) 196 value_ &= other.GetValue(); 200 constexpr Self operator|=(Self other) 202 value_ |= other [all...] |
/arkcompiler/runtime_core/static_core/libpandabase/utils/ |
H A D | small_vector.h | 238 SmallVector(const SmallVector &other) : allocator_(other.allocator_) in SmallVector() argument 240 if (other.IsStatic()) { in SmallVector() 242 buffer.size = other.buffer.size; in SmallVector() 246 new (&buffer.data[i]) T(other.buffer.data[i]); in SmallVector() 250 new (&vector) VectorType(other.vector); in SmallVector() 254 SmallVector(SmallVector &&other) noexcept : allocator_(other.allocator_) in allocator_() 256 if (other.IsStatic()) { in allocator_() 258 buffer.size = other in allocator_() 277 operator =(const SmallVector &other) operator =() argument [all...] |
H A D | regmask.h | 184 constexpr Self operator&(Self other) const 186 return Self(GetValue() & other.GetValue()); 189 constexpr Self operator|(Self other) const 191 return Self(GetValue() | other.GetValue()); 194 constexpr Self operator^(Self other) const 196 return Self(GetValue() ^ other.GetValue()); 199 constexpr Self operator&=(Self other) 201 value_ &= other.GetValue(); 205 constexpr Self operator|=(Self other) 207 value_ |= other [all...] |
H A D | bit_vector.h | 63 BitReference &operator=(const BitReference &other) in operator =() argument 65 if (&other != this) { in operator =() 66 *this = bool(other); in operator =() 71 BitReference &operator=(BitReference &&other) noexcept 73 *this = bool(other); 81 bool operator==(const BitReference &other) const in operator ==() 83 return bool(*this) == bool(other); in operator ==() 85 bool operator<(const BitReference &other) const in operator <() 87 return !bool(*this) && bool(other); in operator <() 119 bool operator==(const BitVectorIterator<IS_CONST_OTHER> &other) cons 517 operator |=(const BitVectorBase<IS_FIXED_SIZE, AllocatorType> &other) operator |=() argument [all...] |
/arkcompiler/runtime_core/static_core/runtime/profilesaver/ |
H A D | profile_dump_info.h | 71 int Compare(const ExtractedResolvedClasses &other) const in Compare() 73 if (panda_file_checksum_ != other.panda_file_checksum_) { in Compare() 74 return static_cast<int>(panda_file_checksum_ - other.panda_file_checksum_); in Compare() 76 return panda_file_location_.compare(other.panda_file_location_); in Compare() 138 bool MergeWith(const ProfileDumpInfo &other); 224 bool operator==(const MethodWrapper &other) const in operator ==() 226 return methodId == other.methodId; in operator ==() 229 bool operator<(const MethodWrapper &other) const in operator <() 231 return methodId < other.methodId; in operator <() 239 bool operator==(const ClassWrapper &other) cons [all...] |
/arkcompiler/runtime_core/static_core/runtime/include/tooling/ |
H A D | pt_thread.h | 30 bool operator==(const PtThread &other) const in operator ==() 32 return managedThread_ == other.managedThread_; in operator ==() 35 bool operator!=(const PtThread &other) const in operator !=() 37 return !(*this == other); in operator !=() 40 bool operator<(const PtThread &other) const in operator <() 42 return managedThread_ < other.managedThread_; in operator <()
|
/arkcompiler/runtime_core/bytecode_optimizer/constant_propagation/ |
H A D | lattice_element.cpp | 37 LatticeElement *TopElement::Meet(LatticeElement *other) in Meet() argument 39 return other; in Meet() 55 LatticeElement *BottomElement::Meet(LatticeElement *other) in Meet() argument 101 LatticeElement *ConstantElement::Meet(LatticeElement *other) in Meet() argument 103 if (other->IsTopElement()) { in Meet() 106 if (other->IsBottomElement()) { in Meet() 107 return other; in Meet() 110 if (value_ == other->AsConstant()->value_) { in Meet()
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/mirrors/ |
H A D | primitive.py | 47 def __eq__(self, other: Any) -> bool: 48 if type(self) is type(other) or type(self).__name__ == type(other).__name__: 49 value = other.value if hasattr(other, "value") else other 51 if not hasattr(other, "value"): 52 return self.value == other
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/ets_proxy/ |
H A D | ets_method_set.cpp | 38 void EtsMethodSet::MergeWith(const EtsMethodSet &other) in MergeWith() argument 40 if (other.entries_.size() > entries_.size()) { in MergeWith() 41 entries_.resize(other.entries_.size()); in MergeWith() 43 for (uint32_t i = 0; i < other.entries_.size(); ++i) { in MergeWith() 44 EtsMethod *newMethod = other.entries_[i]; in MergeWith() 49 entries_[i] = other.entries_[i]; in MergeWith()
|
/arkcompiler/ets_runtime/ecmascript/compiler/base/ |
H A D | bit_set.h | 132 void CopyFrom(const BitSet &other) in CopyFrom() argument 134 ASSERT(wordCount_ == other.wordCount_); in CopyFrom() 135 wordCount_ = other.wordCount_; in CopyFrom() 137 data_.inlineWord_ = other.data_.inlineWord_; in CopyFrom() 141 data_.words_[i] = other.data_.words_[i]; in CopyFrom() 145 void CopyDataFrom(const BitSet &other) in CopyDataFrom() argument 147 ASSERT(wordCount_ >= other.wordCount_); in CopyDataFrom() 148 if (!other.UseWords()) { in CopyDataFrom() 150 data_.words_[0] = other.data_.inlineWord_; in CopyDataFrom() 152 data_.inlineWord_ = other in CopyDataFrom() [all...] |
/arkcompiler/runtime_core/static_core/platforms/windows/libpandabase/ |
H A D | cpu_affinity.cpp | 76 bool CpuSet::operator==(const CpuSet &other) const in operator ==() 78 return cpuset_ == other.cpuset_; in operator ==() 81 bool CpuSet::operator!=(const CpuSet &other) const in operator !=() 83 return cpuset_ != other.cpuset_; in operator !=() 110 CpuSet &CpuSet::operator&=(const CpuSet &other) in operator &=() argument 112 cpuset_ &= other.cpuset_; in operator &=() 116 CpuSet &CpuSet::operator|=(const CpuSet &other) in operator |=() argument 118 cpuset_ |= other.cpuset_; in operator |=() 122 CpuSet &CpuSet::operator^=(const CpuSet &other) in operator ^=() argument 124 cpuset_ ^= other in operator ^=() [all...] |