/arkcompiler/ets_frontend/ets2panda/compiler/base/ |
D | condition.cpp | 53 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()
|
D | iterators.cpp | 72 pg_->ToBoolean(node_); in Complete()
|
/arkcompiler/ets_runtime/ecmascript/ |
D | on_heap.h | 43 static bool ToBoolean(OnHeapMode mode) in ToBoolean() function
|
D | tagged_node.cpp | 177 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()
|
D | js_proxy.cpp | 146 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()
|
D | js_async_from_sync_iterator.cpp | 105 bool done = unwarpFunction->GetDone().ToBoolean(); in AsyncFromSyncIterUnwarpFunction()
|
D | js_object.cpp | 168 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()
|
D | js_stable_array.cpp | 353 if (callResult.ToBoolean()) { in HandleFindIndexOfStable() 395 if (callResult.ToBoolean()) { in HandleFindLastIndexOfStable() 444 if (!callResult.ToBoolean()) { in HandleEveryOfStable() 760 bool boolResult = callResult.ToBoolean(); in Filter()
|
D | js_iterator.cpp | 208 return done->ToBoolean(); in IteratorComplete()
|
D | js_locale.cpp | 266 value = JSHandle<JSTaggedValue>(thread, JSTaggedValue(value->ToBoolean())); in GetOption() 668 *res = value->ToBoolean(); in GetOptionOfBool()
|
/arkcompiler/ets_runtime/test/fuzztest/jsvaluereftobooleanvalue_fuzzer/ |
D | jsvaluereftobooleanvalue_fuzzer.cpp | 36 resBool->ToBoolean(vm); in JSValueRefToBooleanValueFuzzTest()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_boolean.cpp | 33 bool boolValue = GetCallArg(argv, 0)->ToBoolean(); in BooleanConstructor()
|
D | builtins_dataview.cpp | 385 isLittleEndian = littleEndian->ToBoolean(); in GetViewValue() 450 isLittleEndian = littleEndian->ToBoolean(); in SetViewValue()
|
D | builtins_regexp.cpp | 323 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 …]
|
D | builtins_array.cpp | 712 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/ |
D | builtins_typedarray_test.cpp | 298 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()
|
D | builtins_reflect_test.cpp | 309 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()
|
D | builtins_atomics_test.cpp | 783 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/ |
D | tagged_value_test.cpp | 177 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 …]
|
D | gc_third_test.cpp | 162 return result.ToBoolean(); in HWTEST_F_L0()
|
D | tagged_hash_array_test.cpp | 106 EXPECT_TRUE(treeNode->GetIsRed().ToBoolean()); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/debugger/ |
D | js_debugger.cpp | 237 bool satisfied = evalResult->ToBoolean(ecmaVm_)->Value(); in IsBreakpointCondSatisfied()
|
/arkcompiler/toolchain/tooling/backend/ |
D | debugger_executor.cpp | 53 if (!isThrow->ToBoolean(vm)->Value()) { in DebuggerGetValue()
|
/arkcompiler/ets_runtime/ecmascript/base/ |
D | array_helper.cpp | 141 return spreadable.ToBoolean(); in IsConcatSpreadable()
|
/arkcompiler/ets_frontend/ets2panda/compiler/core/ |
D | pandagen.h | 155 void ToBoolean(const ir::AstNode *node);
|