Home
last modified time | relevance | path

Searched refs:Boolean (Results 1 - 25 of 31) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/builtins/
H A Dbuiltins_boolean.cpp20 // ecma 19.3.1.1 Boolean(value)
26 BUILTINS_API_TRACE(thread, Boolean, Constructor); in BooleanConstructor()
51 BUILTINS_API_TRACE(thread, Boolean, ThisBooleanValue); in ThisBooleanValue()
52 // 1. If Type(value) is Boolean, return value in ThisBooleanValue()
59 // a. Assert: value's [[BooleanData]] internal slot is a Boolean value. in ThisBooleanValue()
70 // ecma 19.3.3.2 Boolean.prototype.toString ()
75 BUILTINS_API_TRACE(thread, Boolean, BooleanPrototypeToString); in BooleanPrototypeToString()
86 // ecma 19.3.3.3 Boolean.prototype.valueOf ()
91 BUILTINS_API_TRACE(thread, Boolean, BooleanPrototypeValueOf); in BooleanPrototypeValueOf()
H A Dbuiltins.cpp116 using Boolean = builtins::BuiltinsBoolean;
1001 // Boolean.prototype in InitializeBoolean()
1007 // Boolean.prototype_or_hclass in InitializeBoolean()
1011 // new Boolean Function() in InitializeBoolean()
1012 JSHandle<JSFunction> booleanFunction = NewBuiltinConstructor(env, booleanFuncPrototype, Boolean::BooleanConstructor, in InitializeBoolean()
1013 "Boolean", FunctionLength::ONE, BUILTINS_STUB_ID(BooleanConstructor)); in InitializeBoolean()
1017 // Boolean.prototype method in InitializeBoolean()
1019 Boolean::BooleanPrototypeToString, FunctionLength::ZERO); in InitializeBoolean()
1021 Boolean::BooleanPrototypeValueOf, FunctionLength::ZERO); in InitializeBoolean()
/arkcompiler/ets_runtime/ecmascript/compiler/
H A Dts_hcr_opt_pass.cpp87 return builder_.Boolean(false); in VisitStringEqual()
107 return builder_.Boolean(true); in ConvertStringEqualToConst()
109 return builder_.Boolean(false); in ConvertStringEqualToConst()
H A Dcircuit_builder-inl.h29 return Boolean(true); in True()
34 return Boolean(false); in False()
H A Dinstruction_combine.cpp419 return index == 0 ? builder_.Int32(val) : builder_.Boolean(ovf); in VisitExtractValue()
422 return (index == 0 ? m.Left().Gate() : builder_.Boolean(false)); in VisitExtractValue()
431 return index == 0 ? builder_.Int32(val) : builder_.Boolean(ovf); in VisitExtractValue()
434 return (index == 0 ? m.Left().Gate() : builder_.Boolean(false)); in VisitExtractValue()
443 return index == 0 ? builder_.Int32(val) : builder_.Boolean(ovf); in VisitExtractValue()
446 return (index == 0 ? builder_.Int32(0) : builder_.Boolean(false)); in VisitExtractValue()
449 return (index == 0 ? m.Left().Gate() : builder_.Boolean(false)); in VisitExtractValue()
H A Dprofiler_stub_builder.cpp418 return Boolean(true); in IsProfileTypeInfoDumped()
845 DEFVARIABLE(res, VariableType::BOOL(), Boolean(false)); in IsProfileTypeInfoHotAndValid()
883 return Boolean(true); in IsCompiledOrTryCompile()
1132 isJmp = Boolean(offsetInfo.offset == 0); in TryJitCompile()
H A Dmcr_lowering.cpp432 DEFVALUE(result, (&builder_), VariableType::BOOL(), builder_.Boolean(false)); in ConvertTaggedNumberToBool()
633 builder_.DeoptCheck(builder_.Boolean(support), frameState, DeoptType::NOTINT2); in LowerCheckSupportAndConvert()
636 builder_.DeoptCheck(builder_.Boolean(support), frameState, DeoptType::NOTDOUBLE2); in LowerCheckSupportAndConvert()
H A Dnumber_speculative_retype.cpp973 return builder_.Boolean(true); in CheckAndConvertToBool()
1724 result = builder_.Boolean(false); in VisitNumberOrGlobalBuiltin()
1726 result = builder_.Boolean(true); in VisitNumberOrGlobalBuiltin()
H A Dstub_builder.cpp601 GateRef SCheckModelIsCHECK = Boolean(true); in CreateDataProperty()
2697 SetValueWithElementsKind(glue, receiver, value, index, Boolean(true), in TaggedArraySetValue()
2819 SetValueWithElementsKind(glue, receiver, value, index, Boolean(true), *kind); in ICStoreElement()
2826 SetValueWithElementsKind(glue, receiver, value, index, Boolean(true), in ICStoreElement()
3908 SetValueWithElementsKind(glue, receiver, value, index, Boolean(true), *kind); in AddElementInternal()
3915 SetValueWithElementsKind(glue, receiver, value, index, Boolean(true), *kind); in AddElementInternal()
4094 DEFVARIABLE(result, VariableType::BOOL(), Boolean(true)); in CheckHClassForRep()
4114 result = Boolean(false); in CheckHClassForRep()
4132 result = Boolean(false); in CheckHClassForRep()
4301 SetValueWithElementsKind(glue, *holder, value, index, Boolean(tru in SetPropertyByIndex()
[all...]
H A Dstub_builder-inl.h107 inline GateRef StubBuilder::Boolean(bool value) in Boolean() function in panda::ecmascript::kungfu::StubBuilder
109 return env_->GetBuilder()->Boolean(value); in Boolean()
3626 GateRef boolVal = Boolean(isExtensible); in SetExtensibleToBitfield()
3638 GateRef boolVal = Boolean(isCallable); in SetCallableToBitfield()
H A Dnative_inline_lowering.cpp855 acc_.ReplaceHirAndDeleteIfException(gate, builder_.GetStateDepend(), builder_.Boolean(false)); in TryInlineGlobalFiniteBuiltin()
875 acc_.ReplaceHirAndDeleteIfException(gate, builder_.GetStateDepend(), builder_.Boolean(true)); in TryInlineGlobalNanBuiltin()
H A Dtyped_native_inline_lowering.cpp514 DEFVALUE(result, (&builder_), VariableType::BOOL(), builder_.Boolean(true)); in LowerGlobalTNumberIsFinite()
522 result = builder_.Boolean(true); in LowerGlobalTNumberIsFinite()
546 DEFVALUE(result, (&builder_), VariableType::BOOL(), builder_.Boolean(false)); in LowerGlobalTNumberIsNan()
554 result = builder_.Boolean(false); in LowerGlobalTNumberIsNan()
3386 builder_.Boolean(true), in LowerArrayFilter()
3481 builder_.Boolean(true), in LowerArrayMap()
H A Dhcr_circuit_builder.cpp696 GateRef boolVal = Boolean(isExtensible); in SetExtensibleToBitfield()
H A Dcircuit_builder.cpp402 GateRef CircuitBuilder::Boolean(bool val) in Boolean() function in panda::ecmascript::kungfu::CircuitBuilder
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/
H A Dobject_repository.cpp65 return RemoteObject::Boolean(value.GetAsU1()); in CreateObject()
103 return RemoteObject::Boolean(value.template GetAs<bool>()); in CreateObject()
180 return RemoteObject::Boolean(value.IsTrue()); in CreateObject()
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/
H A Dbuiltins_array_stub_builder.cpp132 SetValueWithElementsKind(glue, newArray, *value, *k, Boolean(true), in With()
144 SetValueWithElementsKind(glue, newArray, Undefined(), *k, Boolean(true), in With()
150 SetValueWithElementsKind(glue, newArray, ele, *k, Boolean(true), in With()
251 SetValueWithElementsKind(glue, thisValue, value0, Int64(0), Boolean(false), in Unshift()
259 SetValueWithElementsKind(glue, thisValue, value1, Int64(1), Boolean(false), in Unshift()
270 SetValueWithElementsKind(glue, thisValue, value2, Int64(2), Boolean(false), in Unshift()
352 SetValueWithElementsKind(glue, thisValue, ele, *toKey, Boolean(false), in Shift()
375 SetValueWithElementsKind(glue, thisValue, Hole(), index, Boolean(false), in Shift()
486 SetValueWithElementsKind(glue, newArray, ele, *j, Boolean(true), in Concat()
489 SetValueWithElementsKind(glue, newArray, ele, *j, Boolean(tru in Concat()
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/tests/
H A Dinstruction_combine_test.cpp848 EXPECT_EQ(instcombie.VisitGate(is_over), b.Boolean(true)); in HWTEST_F_L0()
857 EXPECT_EQ(instcombie.VisitGate(is_over), b.Boolean(false)); in HWTEST_F_L0()
869 EXPECT_EQ(instcombie.VisitGate(is_over), b.Boolean(false)); in HWTEST_F_L0()
893 EXPECT_EQ(instcombie.VisitGate(is_over), b.Boolean(true)); in HWTEST_F_L0()
902 EXPECT_EQ(instcombie.VisitGate(is_over), b.Boolean(false)); in HWTEST_F_L0()
913 EXPECT_EQ(instcombie.VisitGate(is_over), b.Boolean(false)); in HWTEST_F_L0()
937 EXPECT_EQ(instcombie.VisitGate(is_over), b.Boolean(true)); in HWTEST_F_L0()
947 EXPECT_EQ(instcombie.VisitGate(is_over), b.Boolean(false)); in HWTEST_F_L0()
958 EXPECT_EQ(instcombie.VisitGate(is_over), b.Boolean(false)); in HWTEST_F_L0()
969 EXPECT_EQ(instcombie.VisitGate(is_over), b.Boolean(fals in HWTEST_F_L0()
[all...]
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/types/
H A Dremote_object.h49 static RemoteObject Boolean(bool boolean) in Boolean() function in ark::tooling::inspector::RemoteObject
/arkcompiler/runtime_core/static_core/libpandabase/tests/
H A Djson_parser_test.cpp198 TEST(JsonParser, Boolean) in TEST()
/arkcompiler/runtime_core/libpandabase/tests/
H A Djson_parser_test.cpp182 HWTEST(JsonParser, Boolean, testing::ext::TestSize.Level0) in HWTEST()
/arkcompiler/ets_runtime/ecmascript/
H A Druntime_call_id.h370 V(Boolean, BooleanPrototypeToString) \
371 V(Boolean, BooleanPrototypeValueOf) \
372 V(Boolean, Constructor) \
373 V(Boolean, ThisBooleanValue) \
/arkcompiler/ets_runtime/ecmascript/snapshot/mem/
H A Dsnapshot_processor.cpp96 using Boolean = builtins::BuiltinsBoolean;
303 reinterpret_cast<uintptr_t>(Boolean::BooleanConstructor),
304 reinterpret_cast<uintptr_t>(Boolean::BooleanPrototypeToString),
305 reinterpret_cast<uintptr_t>(Boolean::BooleanPrototypeValueOf),
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/tests/
H A Dinspector_server.cpp621 res.push_back(PropertyDescriptor("preview", RemoteObject::Boolean(need_preview))); in TEST_F()
/arkcompiler/toolchain/tooling/base/
H A Dpt_types.h407 static const std::string Boolean; // NOLINT (readability-identifier-naming) member
414 type == Boolean || type == Symbol || type == Bigint || type == Wasm; in Valid()
H A Dpt_types.cpp31 const std::string ObjectType::Boolean = "boolean"; // NOLINT (readability-identifier-naming) member in panda::ecmascript::tooling::ObjectType
100 "Boolean";
279 SetType(ObjectType::Boolean) in PrimitiveRemoteObject()

Completed in 76 milliseconds

12