Home
last modified time | relevance | path

Searched refs:ToBoolean (Results 1 – 25 of 43) sorted by relevance

12

/arkcompiler/ets_frontend/ets2panda/compiler/base/
Dcondition.cpp53 pg->ToBoolean(binExpr); in CompileBinaryExpr()
57 pg->ToBoolean(binExpr); in CompileBinaryExpr()
65 pg->ToBoolean(binExpr); in CompileBinaryExpr()
69 pg->ToBoolean(binExpr); in CompileBinaryExpr()
98 pg->ToBoolean(expr); in Compile()
Diterators.cpp72 pg_->ToBoolean(node_); in Complete()
/arkcompiler/ets_runtime/ecmascript/
Don_heap.h43 static bool ToBoolean(OnHeapMode mode) in ToBoolean() function
Dtagged_node.cpp177 return treeNode->GetIsRed().ToBoolean(); in IsRed()
264 SetIsRed(thread, JSTaggedValue(!GetIsRed().ToBoolean())); in FlipColors()
266 leftChild->SetIsRed(thread, JSTaggedValue(!leftChild->GetIsRed().ToBoolean())); in FlipColors()
268 rightChild->SetIsRed(thread, JSTaggedValue(!rightChild->GetIsRed().ToBoolean())); in FlipColors()
Djs_proxy.cpp146 bool booleanTrapResult = trapResult.ToBoolean(); in SetPrototype()
206 bool booleanTrapResult = trapResult.ToBoolean(); in IsExtensible()
257 bool booleanTrapResult = trapResult.ToBoolean(); in PreventExtensions()
407 bool booleanTrapResult = trapResult.ToBoolean(); in DefineOwnProperty()
490 bool booleanTrapResult = trapResult.ToBoolean(); in HasProperty()
625 bool booleanTrapResult = trapResult.ToBoolean(); in SetProperty()
688 bool booleanTrapResult = trapResult.ToBoolean(); in DeleteProperty()
Djs_async_from_sync_iterator.cpp105 bool done = unwarpFunction->GetDone().ToBoolean(); in AsyncFromSyncIterUnwarpFunction()
Djs_object.cpp168 return isRegexp->ToBoolean(); in IsRegExp()
2035 return tagged.ToBoolean(); in InstanceOf()
2134 bool enumerable = value.ToBoolean(); in ToPropertyDescriptorFast()
2137 bool configurable = value.ToBoolean(); in ToPropertyDescriptorFast()
2143 bool writable = value.ToBoolean(); in ToPropertyDescriptorFast()
2187 bool enumerable = value->IsException() ? false : value->ToBoolean(); in ToPropertyDescriptor()
2196 bool conf = value->IsException() ? false : value->ToBoolean(); in ToPropertyDescriptor()
2213 bool writable = value->IsException() ? false : value->ToBoolean(); in ToPropertyDescriptor()
Djs_stable_array.cpp353 if (callResult.ToBoolean()) { in HandleFindIndexOfStable()
395 if (callResult.ToBoolean()) { in HandleFindLastIndexOfStable()
444 if (!callResult.ToBoolean()) { in HandleEveryOfStable()
760 bool boolResult = callResult.ToBoolean(); in Filter()
Djs_iterator.cpp208 return done->ToBoolean(); in IteratorComplete()
Djs_locale.cpp266 value = JSHandle<JSTaggedValue>(thread, JSTaggedValue(value->ToBoolean())); in GetOption()
668 *res = value->ToBoolean(); in GetOptionOfBool()
/arkcompiler/ets_runtime/test/fuzztest/jsvaluereftobooleanvalue_fuzzer/
Djsvaluereftobooleanvalue_fuzzer.cpp36 resBool->ToBoolean(vm); in JSValueRefToBooleanValueFuzzTest()
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_boolean.cpp33 bool boolValue = GetCallArg(argv, 0)->ToBoolean(); in BooleanConstructor()
Dbuiltins_dataview.cpp385 isLittleEndian = littleEndian->ToBoolean(); in GetViewValue()
450 isLittleEndian = littleEndian->ToBoolean(); in SetViewValue()
Dbuiltins_regexp.cpp323 if (hasIndicesResult->ToBoolean()) { in GetAllFlagsInternal()
330 if (globalResult->ToBoolean()) { in GetAllFlagsInternal()
337 if (ignoreCaseResult->ToBoolean()) { in GetAllFlagsInternal()
344 if (multilineResult->ToBoolean()) { in GetAllFlagsInternal()
351 if (dotAllResult->ToBoolean()) { in GetAllFlagsInternal()
358 if (unicodeResult->ToBoolean()) { in GetAllFlagsInternal()
365 if (stickyResult->ToBoolean()) { in GetAllFlagsInternal()
560 isGlobal = globalValue.ToBoolean(); in Match()
593 fullUnicode = uincodeValue.ToBoolean(); in Match()
921 isGlobal = globalValue.ToBoolean(); in ReplaceInternal()
[all …]
Dbuiltins_array.cpp712 if (!callResult.ToBoolean()) { in Every()
731 if (!callResult.ToBoolean()) { in Every()
870 if (callResult.ToBoolean()) { in FilterUnStableJSArray()
996 if (callResult.ToBoolean()) { in Find()
1049 if (callResult.ToBoolean()) { in FindIndex()
1066 if (callResult.ToBoolean()) { in FindIndex()
2226 if (callResult.ToBoolean()) { in Some()
3296 if (callResult.ToBoolean()) { in FindLast()
3350 if (callResult.ToBoolean()) { in FindLastIndex()
3367 if (callResult.ToBoolean()) { in FindLastIndex()
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_typedarray_test.cpp298 ASSERT_TRUE(result.JSTaggedValue::ToBoolean()); // new Int8Array[2,3,4].includes(2) in HWTEST_F_L0()
309 ASSERT_TRUE(!result.JSTaggedValue::ToBoolean()); // new Int8Array[2,3,4].includes(1) in HWTEST_F_L0()
321 ASSERT_TRUE(result.JSTaggedValue::ToBoolean()); // new Int8Array[2,3,4].includes(3, 1) in HWTEST_F_L0()
333 ASSERT_TRUE(!result.JSTaggedValue::ToBoolean()); // new Int8Array[2,3,4].includes(2, 5) in HWTEST_F_L0()
345 ASSERT_TRUE(!result.JSTaggedValue::ToBoolean()); // new Int8Array[2,3,4].includes(2, -2) in HWTEST_F_L0()
Dbuiltins_reflect_test.cpp309 ASSERT_EQ(resultWritable->ToBoolean(), true); in HWTEST_F_L0()
313 ASSERT_EQ(resultEnumerable->ToBoolean(), false); in HWTEST_F_L0()
317 ASSERT_EQ(resultConfigurable->ToBoolean(), true); in HWTEST_F_L0()
Dbuiltins_atomics_test.cpp783 ASSERT_TRUE(result.ToBoolean()); in HWTEST_F_L0()
796 ASSERT_TRUE(result.ToBoolean()); in HWTEST_F_L0()
809 ASSERT_TRUE(result.ToBoolean()); in HWTEST_F_L0()
822 ASSERT_FALSE(result.ToBoolean()); in HWTEST_F_L0()
835 ASSERT_TRUE(result.ToBoolean()); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/tests/
Dtagged_value_test.cpp177 HWTEST_F_L0(JSTaggedValueTest, ToBoolean) in HWTEST_F_L0() argument
179 EXPECT_TRUE(JSTaggedValue(100).ToBoolean()); in HWTEST_F_L0()
180 EXPECT_FALSE(JSTaggedValue(0).ToBoolean()); in HWTEST_F_L0()
182 EXPECT_TRUE(JSTaggedValue((double)100.0).ToBoolean()); in HWTEST_F_L0()
183 EXPECT_FALSE(JSTaggedValue(std::nan("")).ToBoolean()); in HWTEST_F_L0()
185 EXPECT_FALSE(JSTaggedValue::Undefined().ToBoolean()); in HWTEST_F_L0()
187 EXPECT_FALSE(JSTaggedValue::Hole().ToBoolean()); in HWTEST_F_L0()
189 EXPECT_FALSE(JSTaggedValue::Null().ToBoolean()); in HWTEST_F_L0()
191 EXPECT_FALSE(JSTaggedValue::False().ToBoolean()); in HWTEST_F_L0()
192 EXPECT_TRUE(JSTaggedValue::True().ToBoolean()); in HWTEST_F_L0()
[all …]
Dgc_third_test.cpp162 return result.ToBoolean(); in HWTEST_F_L0()
Dtagged_hash_array_test.cpp106 EXPECT_TRUE(treeNode->GetIsRed().ToBoolean()); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/debugger/
Djs_debugger.cpp237 bool satisfied = evalResult->ToBoolean(ecmaVm_)->Value(); in IsBreakpointCondSatisfied()
/arkcompiler/toolchain/tooling/backend/
Ddebugger_executor.cpp53 if (!isThrow->ToBoolean(vm)->Value()) { in DebuggerGetValue()
/arkcompiler/ets_runtime/ecmascript/base/
Darray_helper.cpp141 return spreadable.ToBoolean(); in IsConcatSpreadable()
/arkcompiler/ets_frontend/ets2panda/compiler/core/
Dpandagen.h155 void ToBoolean(const ir::AstNode *node);

12