Home
last modified time | relevance | path

Searched refs:rhs (Results 1 – 25 of 55) sorted by relevance

123

/arkcompiler/ets_runtime/ecmascript/compiler/
Dnumber_gate_info.h130 RangeInfo Union(const RangeInfo &rhs) const in Union() argument
132 return RangeInfo(std::min(min_, rhs.min_), std::max(max_, rhs.max_)); in Union()
135 RangeInfo intersection(const RangeInfo &rhs) const in intersection() argument
137 return RangeInfo(std::max(min_, rhs.min_), std::min(max_, rhs.max_)); in intersection()
140 bool MaybeAddOverflow(const RangeInfo &rhs) const in MaybeAddOverflow() argument
142 return (rhs.max_ > 0) && (max_ > INT32_MAX - rhs.max_); in MaybeAddOverflow()
145 bool MaybeAddUnderflow(const RangeInfo &rhs) const in MaybeAddUnderflow() argument
147 return (rhs.min_ < 0) && (min_ < INT32_MIN - rhs.min_); in MaybeAddUnderflow()
150 bool MaybeAddOverflowOrUnderflow(const RangeInfo &rhs) const in MaybeAddOverflowOrUnderflow() argument
152 return MaybeAddOverflow(rhs) || MaybeAddUnderflow(rhs); in MaybeAddOverflowOrUnderflow()
[all …]
Dvariable_type.h104 bool operator==(const VariableType &rhs) const
106 return (machineType_ == rhs.machineType_) && (gateType_ == rhs.gateType_);
109 bool operator!=(const VariableType &rhs) const
111 return (machineType_ != rhs.machineType_) || (gateType_ != rhs.gateType_);
114 bool operator<(const VariableType &rhs) const
116 …return (machineType_ < rhs.machineType_) || (machineType_ == rhs.machineType_ && gateType_ < rhs.g…
119 bool operator>(const VariableType &rhs) const
121 …return (machineType_ > rhs.machineType_) || (machineType_ == rhs.machineType_ && gateType_ > rhs.g…
124 bool operator<=(const VariableType &rhs) const
126 …return (machineType_ < rhs.machineType_) || (machineType_ == rhs.machineType_ && gateType_ <= rhs.…
[all …]
Dearly_elimination.cpp246 bool EarlyElimination::MayAccessOneMemory(GateRef lhs, GateRef rhs) in MayAccessOneMemory() argument
248 auto rop = acc_.GetOpCode(rhs); in MayAccessOneMemory()
252 ASSERT(acc_.GetMemoryType(rhs) == MemoryType::ELEMENT_TYPE); in MayAccessOneMemory()
257 auto ropIsTypedArray = acc_.GetTypedStoreOp(rhs) >= TypedStoreOp::TYPED_ARRAY_FIRST; in MayAccessOneMemory()
266 auto roff = acc_.GetValueIn(rhs, 1); in MayAccessOneMemory()
276 auto roff = acc_.GetOffset(rhs); in MayAccessOneMemory()
287 bool EarlyElimination::CompareOrder(GateRef lhs, GateRef rhs) in CompareOrder() argument
289 return GetGateOrder(lhs) < GetGateOrder(rhs); in CompareOrder()
292 bool EarlyElimination::CheckReplacement(GateRef lhs, GateRef rhs) in CheckReplacement() argument
294 if (!acc_.MetaDataEqu(lhs, rhs)) { in CheckReplacement()
[all …]
Dvalue_numbering.cpp68 bool ValueNumbering::CheckReplacement(GateRef lhs, GateRef rhs) in CheckReplacement() argument
70 if (!acc_.MetaDataEqu(lhs, rhs)) { in CheckReplacement()
71 if (acc_.GetOpCode(lhs) != acc_.GetOpCode(rhs)) { in CheckReplacement()
77 if (acc_.GetValueIn(lhs, i) != acc_.GetValueIn(rhs, i)) { in CheckReplacement()
82 ASSERT(acc_.HasFrameState(rhs)); in CheckReplacement()
83 if (acc_.GetFrameState(lhs) != acc_.GetFrameState(rhs)) { in CheckReplacement()
89 if (acc_.GetSrcType(lhs) != acc_.GetSrcType(rhs)) { in CheckReplacement()
92 if (acc_.GetDstType(lhs) != acc_.GetDstType(rhs)) { in CheckReplacement()
Dlater_elimination.cpp146 bool LaterElimination::CheckReplacement(GateRef lhs, GateRef rhs) in CheckReplacement() argument
148 if (!acc_.MetaDataEqu(lhs, rhs)) { in CheckReplacement()
149 if (acc_.GetOpCode(lhs) != acc_.GetOpCode(rhs)) { in CheckReplacement()
155 if (acc_.GetValueIn(lhs, i) != acc_.GetValueIn(rhs, i)) { in CheckReplacement()
163 if (acc_.GetIndex(lhs) != acc_.GetIndex(rhs)) { in CheckReplacement()
169 if (acc_.GetSrcType(lhs) != acc_.GetSrcType(rhs)) { in CheckReplacement()
172 if (acc_.GetDstType(lhs) != acc_.GetDstType(rhs)) { in CheckReplacement()
Drange_guard.h40 bool CheckInputSource(GateRef lhs, GateRef rhs);
41 uint32_t CheckIndexCheckLengthInput(GateRef lhs, GateRef rhs);
42 uint32_t CheckIndexCheckIndexInput(GateRef lhs, GateRef rhs);
Drange_guard.cpp165 uint32_t RangeGuard::CheckIndexCheckLengthInput(GateRef lhs, GateRef rhs) in CheckIndexCheckLengthInput() argument
171 …if (indexCheckLengthInput == rhs && indexCheckLengthInputOpcode == OpCode::LOAD_TYPED_ARRAY_LENGTH… in CheckIndexCheckLengthInput()
173 …} else if (indexCheckLengthInput == rhs && indexCheckLengthInputOpcode == OpCode::LOAD_ARRAY_LENGT… in CheckIndexCheckLengthInput()
180 uint32_t RangeGuard::CheckIndexCheckIndexInput(GateRef lhs, GateRef rhs) in CheckIndexCheckIndexInput() argument
188 …if (indexCheckIndexInput == rhs && indexCheckLengthInputOpcode == OpCode::LOAD_TYPED_ARRAY_LENGTH)… in CheckIndexCheckIndexInput()
190 …} else if (indexCheckIndexInput == rhs && indexCheckLengthInputOpcode == OpCode::LOAD_ARRAY_LENGTH… in CheckIndexCheckIndexInput()
Dearly_elimination.h71 bool CheckReplacement(GateRef lhs, GateRef rhs);
72 bool CheckRenameReplacement(GateRef lhs, GateRef rhs);
73 bool MayAccessOneMemory(GateRef lhs, GateRef rhs);
74 bool CompareOrder(GateRef lhs, GateRef rhs);
/arkcompiler/runtime_core/libpandabase/
Dmacros.h154 #define ASSERT_OP(lhs, op, rhs) do { \ argument
156 auto __rhs = rhs; \
158 std::cerr << "CHECK FAILED: " << #lhs << " " #op " " #rhs << std::endl; \
167 #define CHECK_LE(lhs, rhs) ASSERT_OP(lhs, <=, rhs) argument
169 #define CHECK_LT(lhs, rhs) ASSERT_OP(lhs, <, rhs) argument
171 #define CHECK_GE(lhs, rhs) ASSERT_OP(lhs, >=, rhs) argument
173 #define CHECK_GT(lhs, rhs) ASSERT_OP(lhs, >, rhs) argument
175 #define CHECK_EQ(lhs, rhs) ASSERT_OP(lhs, ==, rhs) argument
177 #define CHECK_NE(lhs, rhs) ASSERT_OP(lhs, !=, rhs) argument
215 #define ASSERT_OP(lhs, op, rhs) // NOLINTNEXTLINE(cppcoreguidelines-macro-usage) argument
[all …]
/arkcompiler/ets_frontend/ts2panda/tests/statements/
Dswitch.test.ts44 let rhs = new VReg(); variable
52 new Sta(rhs),
54 new Strictnoteq(new Imm(2), rhs),
75 let rhs = new VReg(); variable
85 new Sta(rhs),
87 new Strictnoteq(new Imm(2), rhs),
90 new Strictnoteq(new Imm(3), rhs),
112 let rhs = new VReg(); variable
122 new Sta(rhs),
124 new Strictnoteq(new Imm(2), rhs),
[all …]
DforIn.test.ts50 let rhs = new VReg(); variable
62 new Sta(rhs),
65 new Lda(rhs),
88 let rhs = new VReg(); variable
101 new Sta(rhs),
104 new Lda(rhs),
126 let rhs = new VReg(); variable
139 new Sta(rhs),
142 new Lda(rhs),
163 let rhs = new VReg(); variable
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/base/
Ddepend_chain_helper.cpp29 auto rhs = that->head_; in Merge() local
32 rhs = rhs->next; in Merge()
35 while (lhs != rhs) { in Merge()
38 rhs = rhs->next; in Merge()
53 auto rhs = that->head_; in Equals() local
54 while (lhs != rhs) { in Equals()
55 if (lhs->gate != rhs->gate) { in Equals()
59 rhs = rhs->next; in Equals()
/arkcompiler/runtime_core/libpandabase/tests/
Dserializer_test.cpp77 bool operator==(const PodStruct &lhs, const PodStruct &rhs) in operator ==() argument
79 …return lhs.a == rhs.a && lhs.b == rhs.b && lhs.c == rhs.c && lhs.d == rhs.d && lhs.e == rhs.e && l… in operator ==()
165 bool operator==(const TestStruct &lhs, const TestStruct &rhs) in operator ==() argument
167 …return lhs.a == rhs.a && lhs.b == rhs.b && lhs.c == rhs.c && lhs.d == rhs.d && lhs.e == rhs.e && l… in operator ==()
/arkcompiler/runtime_core/libpandabase/utils/
Dtype_converter.cpp63 bool operator==(const ValueUnit &lhs, const ValueUnit &rhs) in operator ==() argument
66 if (lhs.GetLiteral() != rhs.GetLiteral()) { in operator ==()
69 if (lhs.GetValue().index() != rhs.GetValue().index()) { in operator ==()
73 return std::fabs(lhs.GetDoubleValue() - rhs.GetDoubleValue()) < in operator ==()
74 std::pow(NUMERAL_SYSTEM, -std::max(lhs.GetPrecision(), rhs.GetPrecision())); in operator ==()
77 return lhs.GetUint64Value() == rhs.GetUint64Value(); in operator ==()
82 bool operator!=(const ValueUnit &lhs, const ValueUnit &rhs) in operator !=() argument
84 return !(lhs == rhs); in operator !=()
Djson_parser.h47 Value(Value &&rhs) noexcept in Value() argument
49 value_ = std::move(rhs.value_); in Value()
50 rhs.value_ = std::monostate {}; in Value()
52 Value &operator=(Value &&rhs) noexcept
54 value_ = std::move(rhs.value_);
55 rhs.value_ = std::monostate {};
60 void SetValue(T &&rhs) noexcept in SetValue() argument
62 value_ = std::forward<T>(rhs); in SetValue()
Dbit_table.h85 explicit BitTableRow(Reversed *rhs) : table_(rhs->table_), row_index_(rhs->row_index_) {} in BitTableRow() argument
125 bool operator==(const BitTableRow &rhs) const
127 return table_ == rhs.table_ && row_index_ == rhs.row_index_;
130 bool operator!=(const BitTableRow &rhs) const
132 return !(operator==(rhs));
187 bool operator==(const BitTableIterator &rhs) const
189 return row_ == rhs.row_;
192 bool operator!=(const BitTableIterator &rhs) const
194 return row_ != rhs.row_;
213 int32_t operator-(const BitTableIterator &rhs) const
[all …]
/arkcompiler/runtime_core/compiler/tests/x86/
Dasmjit_test.cpp63 x86::Gp rhs = a.zcx(); in TEST_F() local
70 frame.addDirtyRegs(lhs, rhs); in TEST_F()
73 args.assignAll(lhs, rhs); in TEST_F()
79 a.add(lhs, rhs); in TEST_F()
105 x86::Gp rhs = a.zcx(); in TEST_F() local
112 frame.addDirtyRegs(lhs, rhs); in TEST_F()
115 args.assignAll(lhs, rhs); in TEST_F()
121 a.add(lhs, rhs); in TEST_F()
141 typedef size_t (*Func)(size_t lhs, size_t rhs); in TEST_F()
/arkcompiler/ets_frontend/es2panda/compiler/base/
Ddestructuring.cpp174 static void GenObjectWithRest(PandaGen *pg, const ir::ObjectExpression *object, VReg rhs) in GenObjectWithRest() argument
185 pg->CreateObjectWithExcludedKeys(element, rhs, defaultProp, 0); in GenObjectWithRest()
196 pg->CreateObjectWithExcludedKeys(element, rhs, propStart, properties.size() - 1); in GenObjectWithRest()
210 GenObjectProperty(pg, object, element, rhs); in GenObjectWithRest()
214 static void GenObject(PandaGen *pg, const ir::ObjectExpression *object, VReg rhs) in GenObject() argument
223 pg->Condition(object, lexer::TokenType::PUNCTUATOR_NOT_STRICT_EQUAL, rhs, nullish); in GenObject()
225 pg->Condition(object, lexer::TokenType::PUNCTUATOR_NOT_STRICT_EQUAL, rhs, nullish); in GenObject()
234 return GenObjectWithRest(pg, object, rhs); in GenObject()
239 GenObjectProperty(pg, object, element, rhs); in GenObject()
247 VReg rhs = pg->AllocReg(); in Compile() local
[all …]
/arkcompiler/toolchain/tooling/test/utils/
Dtest_util.h254 #define ASSERT_EQ(lhs, rhs) \ argument
257 decltype(res1) res2 = (rhs); \
259 ASSERT_FAIL_(res1, res2, #lhs, #rhs, "equal to"); \
263 #define ASSERT_NE(lhs, rhs) \ argument
266 decltype(res1) res2 = (rhs); \
268 ASSERT_FAIL_(res1, res2, #lhs, #rhs, "not equal to"); \
272 #define ASSERT_STREQ(lhs, rhs) \ argument
275 decltype(res1) res2 = (rhs); \
277 ASSERT_FAIL_(res1, res2, #lhs, #rhs, "equal to"); \
297 #define ASSERT_LOCATION_EQ(lhs, rhs) \ argument
[all …]
/arkcompiler/runtime_core/compiler/tests/amd64/
Dasmjit_test.cpp87 x86::Gp rhs = a.zcx(); in TEST_F() local
94 frame.addDirtyRegs(lhs, rhs); in TEST_F()
97 args.assignAll(lhs, rhs); in TEST_F()
103 a.add(lhs, rhs); in TEST_F()
178 x86::Gp rhs = a.zcx(); in TEST_F() local
185 frame.addDirtyRegs(lhs, rhs); in TEST_F()
188 args.assignAll(lhs, rhs); in TEST_F()
194 a.add(lhs, rhs); in TEST_F()
214 typedef size_t (*Func)(size_t lhs, size_t rhs); in TEST_F()
/arkcompiler/runtime_core/compiler/optimizer/ir/
Dlocations.h69 bool operator==(Location rhs) const
71 return bit_fields_ == rhs.bit_fields_;
74 bool operator!=(Location rhs) const
76 return !(*this == rhs);
79 bool operator<(Location rhs) const
81 return bit_fields_ < rhs.bit_fields_;
/arkcompiler/runtime_core/libpandabase/mem/
Darena_allocator_stl_adapter.h149 const ArenaAllocatorAdapter<U, use_oom_handle> &rhs);
154 const ArenaAllocatorAdapter<T, use_oom_handle> &rhs)
156 return lhs.allocator_ == rhs.allocator_;
161 const ArenaAllocatorAdapter<T, use_oom_handle> &rhs)
163 return !(lhs == rhs);
/arkcompiler/ets_frontend/ts2panda/tests/expression/
DcmpBinary.test.ts301 let rhs = new VReg(); variable
314 new Sta(rhs),
325 let rhs = new VReg(); variable
329 new Sta(rhs),
331 new Isin(new Imm(1), rhs),
340 let rhs = new VReg(); variable
344 new Sta(rhs),
346 new Instanceof(new Imm(2), rhs),
/arkcompiler/ets_runtime/ecmascript/
Decma_string.cpp201 EcmaString *rhs = *rightFlat; in Compare() local
203 int32_t rhsCount = static_cast<int32_t>(rhs->GetLength()); in Compare()
206 if (!lhs->IsUtf16() && !rhs->IsUtf16()) { in Compare()
208 Span<const uint8_t> rhsSp(rhs->GetDataUtf8(), rhsCount); in Compare()
215 Span<const uint16_t> rhsSp(rhs->GetDataUtf16(), rhsCount); in Compare()
220 } else if (!rhs->IsUtf16()) { in Compare()
222 Span<const uint8_t> rhsSp(rhs->GetDataUtf8(), lhsCount); in Compare()
229 Span<const uint16_t> rhsSp(rhs->GetDataUtf16(), rhsCount); in Compare()
296 EcmaString *rhs = *search; in IndexOf() local
297 if (lhs == nullptr || rhs == nullptr) { in IndexOf()
[all …]
/arkcompiler/runtime_core/compiler/optimizer/ir_builder/
Dpbc_iterator.h37 bool operator!=(const BytecodeIterator &rhs)
39 return inst_.GetAddress() != rhs.inst_.GetAddress();

123