Home
last modified time | relevance | path

Searched full:equal (Results 1 – 25 of 239) sorted by relevance

12345678910

/arkcompiler/ets_frontend/ts2panda/tests/
Dscope.test.ts38 expect(lv).to.be.equal(0);
39 expect(sp).to.be.equal(scope);
48 expect(lv).to.be.equal(0);
49 expect(sp).to.be.equal(scope);
58 expect(lv).to.be.equal(0);
59 expect(sp).to.be.equal(scope);
68 expect(lv).to.be.equal(0);
69 expect(sp).to.be.equal(scope);
86 expect(lv).to.be.equal(0);
87 expect(sp).to.be.equal(globalScope);
[all …]
Dlexenv.test.ts73 expect(globalScope, "root is null!").to.not.equal(null);
75 …expect(globalScope.getChildVariableScope().length, "should not have any children!").to.be.equal(0);
76 … expect(globalScope.getParentVariableScope(), "should not have any children!").to.be.equal(null);
77 …expect(globalScope.getBindingNode() == sourceFile, "functionblock.node should equal to sourceFile"…
105 expect(children.length, "should have 2 child!").to.be.equal(2);
106 expect(parent, "should not have any children!").to.be.equal(null);
107 … expect(bindingNode, "functionblock.root should equal to sourceFile").to.be.deep.equal(sourceFile);
114 expect(parentOfSon0, "son's parent should equal root!").deep.equal(globalScope);
115 …expect(bindingNodeOfSon0.kind, "son's parent should equal root!").deep.equal(ts.SyntaxKind.Functio…
121 expect(parentOfGrandson0).to.be.equal(son0);
[all …]
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_bigint_test.cpp68 …T_EQ(BigInt::Compare(bigint1.GetTaggedValue(), bigint1.GetTaggedValue()), ComparisonResult::EQUAL); in HWTEST_F_L0()
79 … EXPECT_EQ(BigInt::Compare(zero.GetTaggedValue(), zero.GetTaggedValue()), ComparisonResult::EQUAL); in HWTEST_F_L0()
98 * @tc.name: Equal & SameValue & SameValueZero
114 bool result1 = BigInt::Equal(maxSafeInt.GetTaggedValue(), minSafeInt.GetTaggedValue()); in HWTEST_F_L0()
120 result1 = BigInt::Equal(maxSafeInt.GetTaggedValue(), minusMinSafeInt.GetTaggedValue()); in HWTEST_F_L0()
126 result1 = BigInt::Equal(minSafeInt.GetTaggedValue(), minusMaxSafeInt.GetTaggedValue()); in HWTEST_F_L0()
139 result1 = BigInt::Equal(unsafeInt2.GetTaggedValue(), minusUnsafeInt1.GetTaggedValue()); in HWTEST_F_L0()
195 EXPECT_TRUE(BigInt::Equal(addOpRes.GetTaggedValue(), maxSafeIntPlusOne.GetTaggedValue())); in HWTEST_F_L0()
196 EXPECT_TRUE(BigInt::Equal(andRes.GetTaggedValue(), maxSafeIntPlusOne.GetTaggedValue())); in HWTEST_F_L0()
200 EXPECT_TRUE(BigInt::Equal(addOpRes1.GetTaggedValue(), bigint2.GetTaggedValue())); in HWTEST_F_L0()
[all …]
Dtagged_value_test.cpp1106 HWTEST_F_L0(JSTaggedValueTest, Equal) in HWTEST_F_L0() argument
1108 …ASSERT_TRUE(JSTaggedValue::Equal(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0()
1110 ASSERT_TRUE(JSTaggedValue::Equal(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue::Null()), in HWTEST_F_L0()
1112 ASSERT_TRUE(JSTaggedValue::Equal(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue::Null()), in HWTEST_F_L0()
1114 ASSERT_TRUE(JSTaggedValue::Equal(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue::Null()), in HWTEST_F_L0()
1116 … ASSERT_FALSE(JSTaggedValue::Equal(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue::Null()), in HWTEST_F_L0()
1118 … ASSERT_FALSE(JSTaggedValue::Equal(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue::Null()), in HWTEST_F_L0()
1120 … ASSERT_FALSE(JSTaggedValue::Equal(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue::Null()), in HWTEST_F_L0()
1124 ASSERT_TRUE(JSTaggedValue::Equal(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue(1)), in HWTEST_F_L0()
1126 ASSERT_FALSE(JSTaggedValue::Equal(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue(1)), in HWTEST_F_L0()
[all …]
Djs_api_lightweightmap_test.cpp112 EXPECT_TRUE(JSTaggedValue::Equal(thread, JSHandle<JSTaggedValue>(thread, in HWTEST_F_L0()
132 EXPECT_TRUE(JSTaggedValue::Equal(thread, JSHandle<JSTaggedValue>(thread, in HWTEST_F_L0()
138 EXPECT_TRUE(JSTaggedValue::Equal(thread, JSHandle<JSTaggedValue>(thread, in HWTEST_F_L0()
141 EXPECT_TRUE(JSTaggedValue::Equal(thread, JSHandle<JSTaggedValue>(thread, in HWTEST_F_L0()
193 EXPECT_TRUE(JSTaggedValue::Equal(thread, result, value)); in HWTEST_F_L0()
195 EXPECT_TRUE(JSTaggedValue::Equal(thread, result, value1)); in HWTEST_F_L0()
197 EXPECT_TRUE(JSTaggedValue::Equal(thread, result, value2)); in HWTEST_F_L0()
200 EXPECT_TRUE(JSTaggedValue::Equal(thread, result, key)); in HWTEST_F_L0()
202 EXPECT_TRUE(JSTaggedValue::Equal(thread, result, key1)); in HWTEST_F_L0()
204 EXPECT_TRUE(JSTaggedValue::Equal(thread, result, key2)); in HWTEST_F_L0()
[all …]
Djs_symbol_test.cpp86 EXPECT_TRUE(JSSymbol::Equal(*helloWord1Symbol, *helloWord2Symbol)); in HWTEST_F_L0()
88 EXPECT_FALSE(JSSymbol::Equal(*helloWord1Symbol, *helloWord2Symbol)); in HWTEST_F_L0()
89 EXPECT_FALSE(JSSymbol::Equal(*helloWord1Symbol, *hiWordSymbol)); in HWTEST_F_L0()
Dsymbol_table_test.cpp81 * CaseDescription: Judge whether two string variables are equal. If they are equal,
156 * If it is created successfully, the pointer variable is not equal to null,
235 … function with the description value in the jssymbol type variable. If they are equal, it indicates
/arkcompiler/ets_frontend/ts2panda/tests/statements/
Dfor.test.ts55 expect(jumps.length).to.equal(1);
60 expect(jmpLabel).to.equal(insns[0]);
67 expect(jumps.length).to.equal(1);
71 expect(insns[4]).to.equal(jumps[0]);
72 expect(jmpLabel).to.equal(insns[2]);
79 expect(jumps.length).to.equal(2);
84 expect(jmpLabel).to.equal(insns[2]);
85 expect(jgezLabel).to.equal(insns[10]);
87 expect(insns[7]).to.equal(jumps[0]);
88 expect(insns[9]).to.equal(jumps[1]);
[all …]
DdoWhile.test.ts45 expect(jumps.length).to.equal(1);
49 expect(jmpLabel).to.equal(insns[0]);
58 expect(jumps.length).to.equal(2);
63 expect(jmpLabel).to.equal(insns[2]);
64 expect(jgezLabel).to.equal(insns[17]);
66 expect(insns[15]).to.equal(jumps[0]);
67 expect(insns[16]).to.equal(jumps[1]);
103 expect(targetLabel).to.equal(insns[6]);
139 expect(targetLabel).to.equal(insns[13]);
DforIn.test.ts76 expect(jumps.length).to.equal(2);
116 expect(jmp.getTarget()).to.equal(insns[3]);
117 expect(jeqz.getTarget()).to.equal(insns[insns.length - 1]);
154 expect(jumps.length).to.equal(3);
191 expect(jumps.length).to.equal(3);
201 …expect((<DiagnosticError>err).code).to.equal(DiagnosticCode.Property_destructuring_pattern_expecte…
DvariableDeclaration.test.ts179 expect(i).to.not.be.equal(undefined);
197 expect(i).to.be.equal(undefined);
214 expect(i).to.be.equal(undefined);
231 expect(i).to.be.equal(undefined);
241 …expect((<DiagnosticError>err).code).to.equal(DiagnosticCode.Lexical_declaration_let_not_allowed_in…
DforOf.test.ts125 expect(jumps.length).to.equal(4);
215 expect(jumps.length).to.equal(5);
316 expect(jumps.length).to.equal(6);
326 …expect((<DiagnosticError>err).code).to.equal(DiagnosticCode.Property_destructuring_pattern_expecte…
/arkcompiler/ets_frontend/ts2panda/tests/expression/
Dconditions.test.ts48 expect(jumps.length).to.equal(1);
52 expect(targetLabel).to.equal(insns[insns.length - 2]);
62 expect(jumps.length).to.equal(1);
66 expect(targetLabel).to.equal(insns[insns.length - 2]);
79 expect(jumps.length).to.equal(2);
80 expect(labels.length).to.equal(2);
85 expect(elseLabel).to.equal(labels[0]);
86 expect(endIfLabel).to.equal(labels[1]);
88 expect(elseLabel).to.equal(insns[insns.length - 5]);
89 expect(endIfLabel).to.equal(insns[insns.length - 2]);
[all …]
DfunctionExpression.test.ts100 expect(insns.operands[1]).to.equal('UnitTest.a');
128 expect(insns.operands[1]).to.equal('UnitTest.a');
157 expect(insns.operands[1]).to.equal('UnitTest.a');
195 expect(insns.operands[1]).to.equal('UnitTest.p');
214 …expect((<DiagnosticError>err).code).to.equal(DiagnosticCode.Line_terminator_not_permitted_before_a…
300 expect(insns.operands[1]).to.equal('UnitTest.a');
364 expect(insns.operands[1]).to.equal('UnitTest.a');
381 …expect((<DiagnosticError>err).code).to.equal(DiagnosticCode.A_rest_parameter_or_binding_pattern_ma…
/arkcompiler/ets_runtime/ecmascript/compiler/
Dcircuit_builder-inl.h39 GateRef CircuitBuilder::Equal(GateRef x, GateRef y) in Equal() function
144 return Equal(x, y); in Int8Equal()
159 return Equal(x, y); in DoubleEqual()
169 return Equal(x, y); in Int64Equal()
174 return Equal(x, y); in Int32Equal()
243 return Equal(x, specialValue); in IsSpecial()
249 return Equal(Int64And(x, Int64(JSTaggedValue::TAG_MARK)), in TaggedIsInt()
261 return Equal(Int64And(x, Int64(JSTaggedValue::TAG_MARK)), in TaggedIsObject()
286 return Equal(x, HoleConstant()); in TaggedIsHole()
296 return Equal(x, UndefineConstant()); in TaggedIsUndefined()
[all …]
Dbuiltins_lowering.cpp168 GateRef isNegativeInfinity = builder_.Equal(*value, negativeInfinity); in TypedSqrt()
169 …isNegativeInfinity = builder_.Equal(builder_.SExtInt1ToInt32(isNegativeInfinity), builder_.Int32(1… in TypedSqrt()
171 GateRef isNegativeNan = builder_.Equal(*value, negativeNan); in TypedSqrt()
172 … isNegativeNan = builder_.Equal(builder_.SExtInt1ToInt32(isNegativeNan), builder_.Int32(1)); in TypedSqrt()
174 GateRef isNegativeZero = builder_.Equal(*value, negativeZero); in TypedSqrt()
/arkcompiler/runtime_core/libpandabase/tests/
Dsmall_vector_test.cpp72 ASSERT_TRUE(std::equal(values.begin(), values.begin() + 5, vector.begin())); in TestVectorGrow()
103 ASSERT_TRUE(std::equal(vector.begin(), vector.end(), values.begin())); in TestVectorIteration()
127 ASSERT_TRUE(std::equal(const_vector.begin(), const_vector.end(), values.begin())); in TestVectorIteration()
133 ASSERT_TRUE(std::equal(vector.begin(), vector.end(), values.begin())); in TestVectorIteration()
336 ASSERT_TRUE(std::equal(vector1.begin(), vector1.end(), vector2.begin())); in TEST_F()
351 ASSERT_TRUE(std::equal(vector1.begin(), vector1.end(), vector2.begin())); in TEST_F()
367 ASSERT_TRUE(std::equal(vector1.begin(), vector1.end(), values.begin())); in TEST_F()
382 ASSERT_TRUE(std::equal(vector1.begin(), vector1.end(), values.begin())); in TEST_F()
394 ASSERT_TRUE(std::equal(vector2.begin(), vector2.end(), vector1.begin())); in TEST_F()
404 ASSERT_TRUE(std::equal(vector2.begin(), vector2.end(), vector1.begin())); in TEST_F()
[all …]
/arkcompiler/ets_runtime/ecmascript/containers/tests/
Dcontainers_lightweightset_test.cpp151 EXPECT_TRUE(JSTaggedValue::Equal(thread, JSHandle<JSTaggedValue>(thread, result), in HWTEST_F_L0()
173 EXPECT_TRUE(JSTaggedValue::Equal(thread, JSHandle<JSTaggedValue>(thread, result), in HWTEST_F_L0()
192 EXPECT_TRUE(JSTaggedValue::Equal(thread, JSHandle<JSTaggedValue>(thread, result), in HWTEST_F_L0()
209 EXPECT_TRUE(JSTaggedValue::Equal(thread, JSHandle<JSTaggedValue>(thread, result), in HWTEST_F_L0()
227 EXPECT_TRUE(JSTaggedValue::Equal(thread, JSHandle<JSTaggedValue>(thread, result), in HWTEST_F_L0()
245 EXPECT_TRUE(JSTaggedValue::Equal(thread, JSHandle<JSTaggedValue>(thread, result), in HWTEST_F_L0()
262 EXPECT_TRUE(JSTaggedValue::Equal(thread, JSHandle<JSTaggedValue>(thread, result), in HWTEST_F_L0()
276 EXPECT_TRUE(JSTaggedValue::Equal(thread, JSHandle<JSTaggedValue>(thread, result), in HWTEST_F_L0()
291 EXPECT_TRUE(JSTaggedValue::Equal(thread, JSHandle<JSTaggedValue>(thread, result), in HWTEST_F_L0()
297 EXPECT_TRUE(JSTaggedValue::Equal(thread, JSHandle<JSTaggedValue>(thread, result), in HWTEST_F_L0()
[all …]
/arkcompiler/runtime_core/compiler/optimizer/optimizations/regalloc/
Dreg_map.h28 …* equal to the number of given registers and save map to restore actual codegen register number fr…
35 * - `codegen_reg_map_` will be equal to [18, 20, 16]
/arkcompiler/toolchain/tooling/test/utils/
Dtest_util.h230 ASSERT_FAIL_(res, true, #cond, "true", "equal to"); \
238 ASSERT_FAIL_(res, false, #cond, "false", "equal to"); \
247 ASSERT_FAIL_(res1, res2, #lhs, #rhs, "equal to"); \
256 ASSERT_FAIL_(res1, res2, #lhs, #rhs, "not equal to"); \
265 ASSERT_FAIL_(res1, res2, #lhs, #rhs, "equal to"); \
/arkcompiler/ets_runtime/test/moduletest/container/
Dcontainer_list.js46 map.set("test list equal:", list.equal(list1))
49 map.set("test list equal:", list.equal(list1) === false)
207 map.set("test list equal:", proxy.equal(proxy1) === false)
/arkcompiler/runtime_core/runtime/tests/tooling/
Dtest_util.h241 _ASSERT_FAIL(res, true, #cond, "true", "equal to") \
249 _ASSERT_FAIL(res, false, #cond, "false", "equal to") \
258 _ASSERT_FAIL(res1, res2, #lhs, #rhs, "equal to") \
267 _ASSERT_FAIL(res1, res2, #lhs, #rhs, "not equal to") \
276 _ASSERT_FAIL(res1, res2, #lhs, #rhs, "equal to") \
/arkcompiler/runtime_core/compiler/docs/
Dinterface_inline_cache.md16 …eck whether the class is the same as the last cached class,if equal: use cache; if no equal: goto …
50 4. number of cache equal "interface call" number in this an file
/arkcompiler/runtime_core/tests/checked/
DREADME.md33 * **INST_NOT** (inst: pattern) equal to `NOT INST`, i.e. check that instruction is not exist
36 * **BLOCK_COUNT** () equal to `IR_COUNT ("BB ")`, i.e. search specified basic blocks and counts the…
/arkcompiler/ets_runtime/ecmascript/
Djs_tagged_value.cpp129 bool JSTaggedValue::Equal(JSThread *thread, const JSHandle<JSTaggedValue> &x, const JSHandle<JSTagg… in Equal() function in panda::ecmascript::JSTaggedValue
146 return Equal(thread, y, x); in Equal()
151 return Equal(thread, x, yPrimitive); in Equal()
174 return Equal(thread, y, x); in Equal()
179 return Equal(thread, x, yPrimitive); in Equal()
187 return Equal(thread, JSHandle<JSTaggedValue>(thread, xNumber), y); in Equal()
195 return Equal(thread, y, x); in Equal()
200 return Equal(thread, x, yPrimitive); in Equal()
207 return BigInt::Equal(x.GetTaggedValue(), y.GetTaggedValue()); in Equal()
214 return BigInt::Equal(x.GetTaggedValue(), yNumber.GetTaggedValue()); in Equal()
[all …]

12345678910