| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/02.widening_primitive_conversions/ |
| D | longtofloat.ets | 24 function longToFloat(longValue: bigint): number { 25 if (!isLong(longValue)) { 28 return Number(longValue); 32 let longValue: bigint = BigInt("9223372036854775807"); 33 let floatValue: number = longToFloat(longValue); 34 console.log(`raw value (long): ${longValue}`);
|
| D | longtodouble.ets | 24 function longToDouble(longValue: bigint): number { 25 if (!isLong(longValue)) { 28 return Number(longValue); 32 let longValue: bigint = BigInt("9223372036854775807"); 33 let doubleValue: number = longToDouble(longValue); 34 console.log(`raw value (long): ${longValue}`);
|
| D | chartolong.ets | 21 let longValue: bigint = BigInt(ch.charCodeAt(0)); 25 if (longValue === expectedLongValue) { 28 console.error(`Test failed! Expected ${expectedLongValue}, but got ${longValue}`);
|
| D | shorttolong.ets | 37 let longValue: bigint = shortToLong(shortValue); 39 console.log(`Converted value (long): ${longValue}`); 41 if (isLong(longValue)) {
|
| D | inttolong.ets | 37 let longValue: bigint = intToLong(intValue); 39 console.log(`Converted value (long): ${longValue}`); 41 if (isLong(longValue)) {
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/arkts_esvalue/ts_to_ets/ |
| D | ts_arkts_esvalue.ets | 21 const longValue: long = 0x12345678; 24 if( nativePtr === longValue){ 31 const longValue: long = 0x12345678; 35 if( nativePtr === longValue){
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ani/tests/var_ops/ |
| D | variable_set_value_long_test.cpp | 38 ASSERT_EQ(env_->Namespace_FindVariable(ns_, "longValue", &variable), ANI_OK); in TEST_F() 53 ASSERT_EQ(env_->Namespace_FindVariable(ns_, "longValue", &variable), ANI_OK); in TEST_F() 78 ASSERT_EQ(env_->Namespace_FindVariable(ns_, "longValue", &variable), ANI_OK); in TEST_F() 118 ASSERT_EQ(env_->Namespace_FindVariable(ns_, "longValue", &variable), ANI_OK); in TEST_F() 137 ASSERT_EQ(env_->Namespace_FindVariable(ns_, "longValue", &variable1), ANI_OK); in TEST_F() 160 ASSERT_EQ(env_->Namespace_FindVariable(ns_, "longValue", &variable1), ANI_OK); in TEST_F() 183 ASSERT_EQ(env_->Namespace_FindVariable(ns_, "longValue", &variable), ANI_OK); in TEST_F()
|
| D | variable_set_value_long_test.ets | 17 export let longValue: long = 3;
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ani/tests/object_ops/ |
| D | object_set_field_long_test.cpp | 46 ani_long longValue = 8L; in TEST_F() local 55 ASSERT_EQ(env_->Object_SetField_Long(pack, fieldLong, longValue), ANI_OK); in TEST_F() 57 …tsFunction<ani_boolean>("object_set_field_long_test", "checkLongValue", pack, ani_long(longValue)), in TEST_F() 62 ASSERT_EQ(value, longValue); in TEST_F()
|
| /arkcompiler/ets_frontend/es2panda/test/bytecode_file_size_comparison/test_cases/ts/ |
| D | BasicDataTypesTest.ts | 20 const longValue: bigint = 1234567890123456789n; constant 36 console.log('Long value: ' + longValue);
|
| /arkcompiler/ets_frontend/es2panda/test/bytecode_file_size_comparison/test_cases/js/ |
| D | BasicDataTypesTest.js | 20 const longValue = 1234567890123456789n; constant 36 console.log('Long value: ' + longValue);
|
| /arkcompiler/ets_frontend/es2panda/test/bytecode_file_size_comparison/test_cases/java_test_framework/java_cases/ |
| D | BasicDataTypesTest.java | 27 long longValue = 1234567890123456789L; in main() local 43 System.out.println("Long value: " + longValue); in main()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ani/tests/class_ops/ |
| D | class_get_static_field_by_name_long_test.cpp | 153 ani_long longValue {}; in TEST_F() local 155 ASSERT_EQ(env_->Class_GetStaticFieldByName_Long(cls, "agex", &longValue), ANI_NOT_FOUND); in TEST_F() 158 ASSERT_EQ(env_->Class_GetStaticFieldByName_Long(cls, "age", &longValue), ANI_OK); in TEST_F()
|
| D | class_set_static_field_by_name_long_test.cpp | 152 const ani_long longValue = 10; in TEST_F() local 154 ASSERT_EQ(env_->Class_SetStaticFieldByName_Long(cls, "long_valuex", longValue), ANI_NOT_FOUND); in TEST_F() 157 ASSERT_EQ(env_->Class_SetStaticFieldByName_Long(cls, "long_value", longValue), ANI_OK); in TEST_F()
|
| D | class_set_static_field_long_test.cpp | 172 const ani_long longValue = 20L; in TEST_F() local 173 ASSERT_EQ(env_->Class_SetStaticField_Long(cls, field, longValue), ANI_OK); in TEST_F()
|
| D | class_get_static_field_long_test.cpp | 186 ani_long longValue {}; in TEST_F() local 187 ASSERT_EQ(env_->Class_GetStaticField_Long(cls, field, &longValue), ANI_OK); in TEST_F()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/ |
| D | Value.ets | 160 return new LongValue(LongType.VAL, v) 194 return new LongValue(LongType.REF, o as Long) 330 return new LongValue(ft as LongType, ValueAPIGetFieldLong(this.data, i)) 358 return new LongValue(ft as LongType, ValueAPIGetFieldByNameLong(this.data, name)) 400 } else if (ft instanceof LongType && val instanceof LongValue) { 401 ValueAPISetFieldByNameLong(this.data, name, (val as LongValue).getValueData()) 416 } else if (ft instanceof DoubleType && val instanceof LongValue) { 426 } else if (ft instanceof FloatType && val instanceof LongValue) { 490 } else if (ft instanceof LongType && val instanceof LongValue) { 491 ValueAPISetFieldLong(this.data, i, (val as LongValue).getValueData()) [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/runtime/types/ |
| D | ets_to_string_cache_test.cpp | 307 auto longValue = (static_cast<uint64_t>(dis(engine)) << BITS_PER_UINT32) | dis(engine); in TEST_F() local 308 auto value = bit_cast<double>(longValue); in TEST_F() 326 << "long: " << std::hex << longValue << "\n" in TEST_F() 344 auto longValue = (static_cast<uint64_t>(dis(engine)) << BITS_PER_UINT32) | dis(engine); in TEST_F() local 345 auto value = bit_cast<double>(longValue); in TEST_F() 362 << "long: " << std::hex << longValue << "\n" in TEST_F()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tools/declgen_ts2sts/utils/lib/ |
| D | TypeUtils.ts | 110 'LongValue',
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/escompat/ |
| D | JsonTest.ets | 452 longValue: long = 1; 460 …let text:string = `{\"integerValue\":12, \"longValue\": 2, \"appname\": \"test\", \"shortValue\":3… 464 assertEQ(parsingResult.longValue, 2)
|
| /arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
| D | builtins_date_time_format_second_test.cpp | 269 JSHandle<JSTaggedValue> longValue(factory->NewFromASCII("long")); in JSDateTimeFormatForObj_002() local 290 JSObject::SetProperty(thread, optionsObj, key, longValue); in JSDateTimeFormatForObj_002()
|
| /arkcompiler/runtime_core/static_core/docs/ |
| D | file_format.md | 756 #### LongValue subsubsection 1204 | `Long` | `0x01` | The corresponding argument has [LongValue](#longvalue) enc…
|
| /arkcompiler/runtime_core/docs/ |
| D | file_format.md | 649 #### LongValue subsubsection 1020 | `Long` | `0x01` | The corresponding argument has [LongValue](#longvalue) enc…
|
| /arkcompiler/runtime_core/tests/cts-generator/cts-template/ |
| D | initobj.short.yaml | 671 .function i64 panda.Long.longValue(panda.Long a0) <external> 674 initobj.short panda.Long.longValue 680 .function i64 panda.Long.longValue(panda.Long a0) <external> 686 initobj.short panda.Long.longValue, v1
|
| D | initobj.yaml | 738 .function i64 panda.Long.longValue(panda.Long a0) <external> 741 initobj panda.Long.longValue 747 .function i64 panda.Long.longValue(panda.Long a0) <external> 753 initobj panda.Long.longValue, v1
|