Home
last modified time | relevance | path

Searched refs:primitive (Results 1 - 14 of 14) sorted by relevance

/arkcompiler/ets_frontend/ets2panda/compiler/scripts/
H A Dsignatures.rb43 data.primitives.each do |primitive|
44 refs[primitive.ref] = primitive.name
45 Signatures::PRIMITIVES[primitive.ref] = primitive.name
/arkcompiler/ets_runtime/ecmascript/builtins/
H A Dbuiltins_symbol.cpp73 JSTaggedValue primitive = JSPrimitiveRef::Cast(valueHandle->GetTaggedObject())->GetValue(); in ToString() local
74 if (primitive.IsSymbol()) { in ToString()
75 return SymbolDescriptiveString(thread, primitive); in ToString()
132 JSTaggedValue primitive = JSPrimitiveRef::Cast(valueHandle->GetTaggedObject())->GetValue(); in ValueOf() local
133 if (primitive.IsSymbol()) { in ValueOf()
134 return primitive; in ValueOf()
209 JSTaggedValue primitive = JSPrimitiveRef::Cast(sym->GetTaggedObject())->GetValue(); in ToPrimitive() local
210 if (primitive.IsSymbol()) { in ToPrimitive()
211 return primitive; in ToPrimitive()
241 JSTaggedValue primitive in ThisSymbolValue() local
[all...]
H A Dbuiltins_boolean.cpp58 JSTaggedValue primitive = JSPrimitiveRef::Cast(value.GetTaggedObject())->GetValue(); in ThisBooleanValue() local
60 if (primitive.IsBoolean()) { in ThisBooleanValue()
62 return primitive; in ThisBooleanValue()
H A Dbuiltins_bigint.cpp217 JSTaggedValue primitive = JSPrimitiveRef::Cast(value->GetTaggedObject())->GetValue(); in ThisBigIntValue() local
219 if (primitive.IsBigInt()) { in ThisBigIntValue()
221 return primitive; in ThisBigIntValue()
H A Dbuiltins_number.cpp493 JSTaggedValue primitive = JSPrimitiveRef::Cast(value->GetTaggedObject())->GetValue(); in ThisNumberValue() local
494 if (primitive.IsNumber()) { in ThisNumberValue()
495 return JSTaggedNumber(primitive); in ThisNumberValue()
H A Dbuiltins_string.cpp2248 JSTaggedValue primitive = JSPrimitiveRef::Cast(value.GetTaggedObject())->GetValue(); in ThisStringValue() local
2249 if (primitive.IsString()) { in ThisStringValue()
2250 return primitive; in ThisStringValue()
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/operator_new/
H A Doperator_new.js61 const primitive = 10;
71 primitive,
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/mirrors/
H A D__init__.py23 from .primitive import mirror_primitive, mirror_primitive_type
H A Dempty.py22 from .primitive import PrimitiveMeta
H A Darray.py24 from .primitive import PrimitiveMeta
/arkcompiler/ets_runtime/ecmascript/base/
H A Djson_stringifier.cpp82 JSTaggedValue primitive = JSPrimitiveRef::Cast(prop.GetTaggedObject())->GetValue(); in Stringify() local
83 if (primitive.IsNumber() || primitive.IsString()) { in Stringify()
94 JSTaggedValue primitive = JSPrimitiveRef::Cast(gap->GetTaggedObject())->GetValue(); in Stringify() local
96 if (primitive.IsNumber()) { in Stringify()
102 } else if (primitive.IsString()) { in Stringify()
588 JSTaggedValue primitive = JSPrimitiveRef::Cast(primitiveRef.GetTaggedValue().GetTaggedObject())->GetValue(); in SerializePrimitiveRef() local
589 if (primitive.IsString()) { in SerializePrimitiveRef()
594 } else if (primitive.IsNumber()) { in SerializePrimitiveRef()
602 } else if (primitive in SerializePrimitiveRef()
[all...]
H A Dfast_json_stringifier.cpp379 JSTaggedValue primitive = JSPrimitiveRef::Cast(primitiveRef.GetTaggedValue().GetTaggedObject())->GetValue(); in SerializePrimitiveRef() local
380 if (primitive.IsString()) { in SerializePrimitiveRef()
385 } else if (primitive.IsNumber()) { in SerializePrimitiveRef()
393 } else if (primitive.IsBoolean()) { in SerializePrimitiveRef()
394 result_ += primitive.IsTrue() ? "true" : "false"; in SerializePrimitiveRef()
395 } else if (primitive.IsBigInt()) { in SerializePrimitiveRef()
/arkcompiler/ets_runtime/ecmascript/tests/
H A Dobject_factory_test.cpp131 JSHandle<JSTaggedValue> primitive(thread, JSTaggedValue(1)); in HWTEST_F_L0()
134 JSHandle<JSPrimitiveRef> newPrimitive = factory->NewJSPrimitiveRef(numberFun, primitive); in HWTEST_F_L0()
/arkcompiler/ets_frontend/ets2panda/checker/ets/
H A Dhelpers.cpp541 // function return type is of primitive type (including enums): in ResolveReturnStatement()
553 LogTypeError({"Function cannot have different primitive return types, require '", targetType, "', found '", in ResolveReturnStatement()
827 // For left-hand variable of primitive type leave it as is. in ResolveSmartType()
875 // For right-hand variable of primitive type apply boxing conversion (case: 'let x: Object = 5', then x => Int). in ResolveSmartType()
1721 auto *primitive = MaybePrimitiveBuiltinType(expr->TsType()); in MaybeUnboxExpression() local
1722 if (primitive != expr->TsType()) { in MaybeUnboxExpression()
1723 expr->AddBoxingUnboxingFlags(GetUnboxingFlag(primitive)); in MaybeUnboxExpression()
1725 return primitive; in MaybeUnboxExpression()

Completed in 16 milliseconds