Home
last modified time | relevance | path

Searched refs:ComparisonResult (Results 1 - 24 of 24) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/ic/
H A Dic_compare_op.cpp214 ComparisonResult CompareOp::Compare(JSThread *thread, JSTaggedValue left, in Compare()
220 ComparisonResult ret = ComparisonResult::UNDEFINED; in Compare()
233 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread, ComparisonResult::UNDEFINED); in Compare()
250 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread, ComparisonResult::UNDEFINED); in Compare()
268 ret = ComparisonResult::LESS; in Compare()
270 ret = ComparisonResult::EQUAL; in Compare()
272 ret = ComparisonResult::GREAT; in Compare()
280 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread, ComparisonResult::UNDEFINED); in Compare()
289 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread, ComparisonResult in Compare()
[all...]
H A Dic_compare_op.h62 static ComparisonResult Compare(JSThread *thread, JSTaggedValue left,
/arkcompiler/ets_runtime/ecmascript/
H A Dtagged_tree.cpp315 ComparisonResult res; in FindEntry()
319 if (res == ComparisonResult::EQUAL) { in FindEntry()
321 } else if (res == ComparisonResult::LESS) { in FindEntry()
340 ComparisonResult TaggedTree<Derived>::EntryCompare(JSThread *thread, const JSHandle<JSTaggedValue> valueX, in EntryCompare()
348 return valueY->IsUndefined() ? ComparisonResult::EQUAL : ComparisonResult::GREAT; in EntryCompare()
351 return ComparisonResult::LESS; in EntryCompare()
354 return valueY->IsNull() ? ComparisonResult::EQUAL : ComparisonResult::GREAT; in EntryCompare()
357 return ComparisonResult in EntryCompare()
[all...]
H A Djs_bigint.cpp837 ComparisonResult BigInt::Compare(const JSTaggedValue &x, const JSTaggedValue &y) in Compare()
844 ComparisonResult BigInt::Compare(const BigInt *x, const BigInt *y) in Compare()
849 return xSign ? ComparisonResult::LESS : ComparisonResult::GREAT; in Compare()
851 ComparisonResult compar = AbsolutelyCompare(x, y); in Compare()
852 if (xSign && compar != ComparisonResult::EQUAL) { in Compare()
853 return compar == ComparisonResult::LESS ? ComparisonResult::GREAT : ComparisonResult::LESS; in Compare()
860 return Compare(x, y) == ComparisonResult in LessThan()
[all...]
H A Dtagged_tree.h133 static ComparisonResult EntryCompare(JSThread *thread, const JSHandle<JSTaggedValue> valueX,
343 inline static ComparisonResult OrdinayEntryCompare(JSThread *thread, const JSHandle<JSTaggedValue> valueX, in OrdinayEntryCompare()
351 return ComparisonResult::LESS; in OrdinayEntryCompare()
354 return ComparisonResult::EQUAL; in OrdinayEntryCompare()
356 return ComparisonResult::GREAT; in OrdinayEntryCompare()
364 return ComparisonResult::LESS; in OrdinayEntryCompare()
367 return ComparisonResult::GREAT; in OrdinayEntryCompare()
H A Djs_bigint.h28 enum class ComparisonResult;
91 static ComparisonResult Compare(const JSTaggedValue &x, const JSTaggedValue &y);
119 static ComparisonResult CompareWithNumber(JSHandle<BigInt> bigint, JSHandle<JSTaggedValue> number);
178 static ComparisonResult Compare(const BigInt *x, const BigInt *y);
179 static ComparisonResult AbsolutelyCompare(const BigInt *x, const BigInt *y);
H A Djs_tagged_value.cpp544 return BigInt::CompareWithNumber(bigint, y) == ComparisonResult::EQUAL; in EqualBigInt()
665 ComparisonResult JSTaggedValue::Compare(JSThread *thread, const JSHandle<JSTaggedValue> &x, in Compare()
674 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread, ComparisonResult::UNDEFINED); in Compare()
676 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread, ComparisonResult::UNDEFINED); in Compare()
682 return ComparisonResult::LESS; in Compare()
685 return ComparisonResult::EQUAL; in Compare()
687 return ComparisonResult::GREAT; in Compare()
696 return ComparisonResult::UNDEFINED; in Compare()
701 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread, ComparisonResult::UNDEFINED); in Compare()
706 ComparisonResult re in Compare()
[all...]
H A Djs_tagged_value-inl.h147 ComparisonResult result = Compare(thread, x, y); in Less()
148 return result == ComparisonResult::LESS; in Less()
193 inline ComparisonResult JSTaggedValue::StrictNumberCompare(double x, double y) in StrictNumberCompare()
196 return ComparisonResult::UNDEFINED; in StrictNumberCompare()
199 return ComparisonResult::LESS; in StrictNumberCompare()
202 return ComparisonResult::GREAT; in StrictNumberCompare()
204 return ComparisonResult::EQUAL; in StrictNumberCompare()
H A Djs_tagged_value.h56 enum class ComparisonResult { class
702 static ComparisonResult Compare(JSThread *thread, const JSHandle<JSTaggedValue> &x,
705 static ComparisonResult StrictNumberCompare(double x, double y);
H A Djs_array.cpp723 ComparisonResult res = JSTaggedValue::Compare(thread, vv, value); in IncludeInSortedValue()
724 if (res == ComparisonResult::EQUAL) { in IncludeInSortedValue()
726 } else if (res == ComparisonResult::LESS) { in IncludeInSortedValue()
/arkcompiler/ets_runtime/ecmascript/tests/
H A Dtest_common.h99 ComparisonResult res = ComparisonResult::UNDEFINED; in TestCompareFunction()
105 return res == ComparisonResult::GREAT ? JSTaggedValue(1) in TestCompareFunction()
106 : (res == ComparisonResult::LESS ? JSTaggedValue(-1) : JSTaggedValue(0)); in TestCompareFunction()
H A Djs_bigint_test.cpp44 EXPECT_EQ(BigInt::Compare(bigint1.GetTaggedValue(), bigint1.GetTaggedValue()), ComparisonResult::EQUAL); in HWTEST_F_L0()
45 EXPECT_EQ(BigInt::Compare(bigint3.GetTaggedValue(), bigint2.GetTaggedValue()), ComparisonResult::LESS); in HWTEST_F_L0()
46 EXPECT_EQ(BigInt::Compare(bigint1.GetTaggedValue(), bigint2.GetTaggedValue()), ComparisonResult::LESS); in HWTEST_F_L0()
47 EXPECT_EQ(BigInt::Compare(bigint2.GetTaggedValue(), bigint1.GetTaggedValue()), ComparisonResult::GREAT); in HWTEST_F_L0()
48 EXPECT_EQ(BigInt::Compare(bigint2.GetTaggedValue(), bigint3.GetTaggedValue()), ComparisonResult::GREAT); in HWTEST_F_L0()
49 EXPECT_EQ(BigInt::Compare(bigint3.GetTaggedValue(), bigint4.GetTaggedValue()), ComparisonResult::LESS); in HWTEST_F_L0()
50 EXPECT_EQ(BigInt::Compare(bigint4.GetTaggedValue(), bigint3.GetTaggedValue()), ComparisonResult::GREAT); in HWTEST_F_L0()
53 EXPECT_EQ(BigInt::Compare(zero.GetTaggedValue(), bigint1.GetTaggedValue()), ComparisonResult::LESS); in HWTEST_F_L0()
54 EXPECT_EQ(BigInt::Compare(bigint1.GetTaggedValue(), zero.GetTaggedValue()), ComparisonResult::GREAT); in HWTEST_F_L0()
55 EXPECT_EQ(BigInt::Compare(zero.GetTaggedValue(), zero.GetTaggedValue()), ComparisonResult in HWTEST_F_L0()
[all...]
H A Dtagged_tree_test.cpp96 ComparisonResult result = TaggedTree<T>::EntryCompare(thread, leftKey, indexKey, tree); in IsVaildRBTree()
97 if (tree->GetParent(ileft) != index || result != ComparisonResult::LESS) { in IsVaildRBTree()
105 ComparisonResult result = TaggedTree<T>::EntryCompare(thread, rightKey, indexKey, tree); in IsVaildRBTree()
106 if (tree->GetParent(iright) != index || result != ComparisonResult::GREAT) { in IsVaildRBTree()
/arkcompiler/ets_runtime/ecmascript/base/
H A Darray_helper.cpp212 ComparisonResult compareResult = JSTaggedValue::Compare(thread, xValueHandle, yValueHandle); in SortCompare()
213 if (compareResult == ComparisonResult::GREAT) { in SortCompare()
216 if (compareResult == ComparisonResult::LESS) { in SortCompare()
H A Dtyped_array_helper.cpp1155 ComparisonResult compareResult = JSTaggedValue::Compare(thread, firstValue, secondValue); in SortCompare()
1161 if (compareResult == ComparisonResult::LESS) { in SortCompare()
1164 if (compareResult == ComparisonResult::GREAT) { in SortCompare()
1182 ComparisonResult compareResult = JSTaggedValue::Compare(thread, firstValue, secondValue); in SortCompare()
1183 if (compareResult == ComparisonResult::LESS) { in SortCompare()
1186 if (compareResult == ComparisonResult::GREAT) { in SortCompare()
/arkcompiler/ets_runtime/ecmascript/shared_objects/
H A Djs_shared_array.cpp525 ComparisonResult res = JSTaggedValue::Compare(thread, vv, value); in IncludeInSortedValue()
526 if (res == ComparisonResult::EQUAL) { in IncludeInSortedValue()
528 } else if (res == ComparisonResult::LESS) { in IncludeInSortedValue()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mpl2mpl/include/
H A Dconstantfold.h90 int64 ComparisonResult(Opcode op, T *leftConst, T *rightConst) const;
/arkcompiler/ets_runtime/ecmascript/containers/tests/
H A Dcontainers_treeset_test.cpp101 ComparisonResult res = ComparisonResult::UNDEFINED; in TestCompareFunction()
107 return res == ComparisonResult::GREAT ? in TestCompareFunction()
108 JSTaggedValue(1) : (res == ComparisonResult::LESS ? JSTaggedValue(-1) : JSTaggedValue(0)); in TestCompareFunction()
H A Dcontainers_treemap_test.cpp104 ComparisonResult res = ComparisonResult::UNDEFINED; in TestCompareFunction()
110 return res == ComparisonResult::GREAT ? in TestCompareFunction()
111 JSTaggedValue(1) : (res == ComparisonResult::LESS ? JSTaggedValue(-1) : JSTaggedValue(0)); in TestCompareFunction()
/arkcompiler/ets_runtime/ecmascript/stubs/
H A Druntime_stubs-inl.h1813 bool ret = JSTaggedValue::Compare(thread, left, right) == ComparisonResult::LESS; in RuntimeLess()
1821 bool ret = JSTaggedValue::Compare(thread, left, right) <= ComparisonResult::EQUAL; in RuntimeLessEq()
1829 bool ret = JSTaggedValue::Compare(thread, left, right) == ComparisonResult::GREAT; in RuntimeGreater()
1837 ComparisonResult comparison = JSTaggedValue::Compare(thread, left, right); in RuntimeGreaterEq()
1838 bool ret = (comparison == ComparisonResult::GREAT) || (comparison == ComparisonResult::EQUAL); in RuntimeGreaterEq()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mpl2mpl/src/
H A Dconstantfold.cpp551 int64 ConstantFold::ComparisonResult(Opcode op, T *leftConst, T *rightConst) const in ComparisonResult() function in maple::__anon90::ConstantFold
608 ComparisonResult(opcode, safe_cast<MIRDoubleConst>(&leftConst), safe_cast<MIRDoubleConst>(&rightConst)); in FoldFPConstComparisonMIRConst()
610 result = ComparisonResult(opcode, safe_cast<MIRFloatConst>(&leftConst), safe_cast<MIRFloatConst>(&rightConst)); in FoldFPConstComparisonMIRConst()
/arkcompiler/ets_runtime/ecmascript/builtins/
H A Dbuiltins_ark_tools.cpp947 ComparisonResult result = JSTaggedValue::Compare(thread, x, y);
949 return JSTaggedValue(ComparisonResult::LESS == result);
/arkcompiler/ets_runtime/ecmascript/interpreter/
H A Dinterpreter-inl.cpp1882 bool ret = JSTaggedValue::StrictNumberCompare(valueA, valueB) == ComparisonResult::LESS; in RunInternal()
1906 bool ret = JSTaggedValue::StrictNumberCompare(valueA, valueB) <= ComparisonResult::EQUAL; in RunInternal()
1931 bool ret = JSTaggedValue::StrictNumberCompare(valueA, valueB) == ComparisonResult::GREAT; in RunInternal()
1955 ComparisonResult comparison = JSTaggedValue::StrictNumberCompare(valueA, valueB); in RunInternal()
1956 bool ret = (comparison == ComparisonResult::GREAT) || (comparison == ComparisonResult::EQUAL); in RunInternal()
H A Dinterpreter_assembly.cpp1160 bool ret = JSTaggedValue::StrictNumberCompare(valueA, valueB) == ComparisonResult::LESS; in HandleLessImm8V8()
1192 bool ret = JSTaggedValue::StrictNumberCompare(valueA, valueB) <= ComparisonResult::EQUAL;
1225 bool ret = JSTaggedValue::StrictNumberCompare(valueA, valueB) == ComparisonResult::GREAT;
1257 ComparisonResult comparison = JSTaggedValue::StrictNumberCompare(valueA, valueB);
1258 bool ret = (comparison == ComparisonResult::GREAT) || (comparison == ComparisonResult::EQUAL);

Completed in 60 milliseconds