Searched refs:primitive (Results 1 - 14 of 14) sorted by relevance
/arkcompiler/ets_frontend/ets2panda/compiler/scripts/ |
H A D | signatures.rb | 43 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 D | builtins_symbol.cpp | 73 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 D | builtins_boolean.cpp | 58 JSTaggedValue primitive = JSPrimitiveRef::Cast(value.GetTaggedObject())->GetValue(); in ThisBooleanValue() local 60 if (primitive.IsBoolean()) { in ThisBooleanValue() 62 return primitive; in ThisBooleanValue()
|
H A D | builtins_bigint.cpp | 217 JSTaggedValue primitive = JSPrimitiveRef::Cast(value->GetTaggedObject())->GetValue(); in ThisBigIntValue() local 219 if (primitive.IsBigInt()) { in ThisBigIntValue() 221 return primitive; in ThisBigIntValue()
|
H A D | builtins_number.cpp | 493 JSTaggedValue primitive = JSPrimitiveRef::Cast(value->GetTaggedObject())->GetValue(); in ThisNumberValue() local 494 if (primitive.IsNumber()) { in ThisNumberValue() 495 return JSTaggedNumber(primitive); in ThisNumberValue()
|
H A D | builtins_string.cpp | 2248 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 D | operator_new.js | 61 const primitive = 10; 71 primitive,
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/mirrors/ |
H A D | __init__.py | 23 from .primitive import mirror_primitive, mirror_primitive_type
|
H A D | empty.py | 22 from .primitive import PrimitiveMeta
|
H A D | array.py | 24 from .primitive import PrimitiveMeta
|
/arkcompiler/ets_runtime/ecmascript/base/ |
H A D | json_stringifier.cpp | 82 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 D | fast_json_stringifier.cpp | 379 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 D | object_factory_test.cpp | 131 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 D | helpers.cpp | 541 // 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