Home
last modified time | relevance | path

Searched full:intvalue (Results 1 – 25 of 68) sorted by relevance

123

/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
Dboxing.sts29 assert global_Int_.intValue() == 2_000_000;
30 assert (global_Object_Int_ as Int).intValue() == 2_000_001;
31 assert const_global_Int_.intValue() == 2_000_002;
32 assert (const_global_Object_Int_ as Int).intValue() == 2_000_003;
34 assert A.Int_.intValue() == 2_000_004;
35 assert (A.Object_Int_ as Int).intValue() == 2_000_005;
36 assert A.readonly_Int_.intValue() == 2_000_006;
37 assert (A.readonly_Object_Int_ as Int).intValue() == 2_000_007;
DUpdateExpression.sts58 assert a.intValue() == 41;
60 assert b.intValue() == 40;
62 assert (a++).intValue() == 41;
64 assert a.intValue() == 42;
66 assert b.intValue() == 40;
74 assert a.intValue() == 51;
76 assert b.intValue() == 50;
DRecordKeyTypeCheck.sts28 this.value = value.intValue();
39 public override intValue(): int {
DUnaryExpression.sts67 assert a.intValue() == -40;
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/
DInt.sts46 this.value = value.intValue();
113 public override intValue(): int {
205 return Int.valueOf((this.value + other.intValue()) as int)
216 return Int.valueOf((this.value - other.intValue()) as int)
227 return Int.valueOf((this.value * other.intValue()) as int)
238 return Int.valueOf((this.value / other.intValue()) as int)
249 return this.value < other.intValue();
260 return this.value <= other.intValue();
271 return this.value > other.intValue();
282 return this.value >= other.intValue();
DValue.sts156 return new IntValue(IntType.VAL, v)
190 return new IntValue(IntType.REF, v)
226 return new IntValue(IntType.REF, o as Int)
358 return new IntValue(ft as IntType, ValueAPIGetFieldInt(this.data, i))
386 return new IntValue(ft as IntType, ValueAPIGetFieldByNameInt(this.data, name))
428 } else if (ft instanceof IntType && val instanceof IntValue) {
429 ValueAPISetFieldByNameInt(this.data, name, (val as IntValue).getValueData())
484 } else if (ft instanceof IntType && val instanceof IntValue) {
485 ValueAPISetFieldInt(this.data, i, (val as IntValue).getValueData())
583 return new IntValue(et as IntType, ValueAPIGetElementInt(this.data, i))
[all …]
DNumeric.sts35 public abstract intValue(): int;
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/checked/obj_call/
Dobj_call.sts20 intValue: int;
22 this.intValue = value;
38 if (obj.intValue != 5) {
Dobj_call.js17 obj.intValue = 5;
/arkcompiler/ets_runtime/test/fuzztest/jsvaluereffoundationvalue_fuzzer/
Djsvaluereffoundationvalue_fuzzer.cpp45 Local<IntegerRef> intValue = IntegerRef::New(vm, key); in JSValueRefIsNumberValueFuzzTest() local
57 intValue->IsNumber(); in JSValueRefIsNumberValueFuzzTest()
175 Local<IntegerRef> intValue = IntegerRef::New(vm, key); in JSValueRefIsDateValueFuzzTest() local
194 intValue->IsDate(vm); in JSValueRefIsDateValueFuzzTest()
218 Local<IntegerRef> intValue = IntegerRef::New(vm, key); in JSValueRefIsErrorValueFuzzTest() local
227 intValue->IsError(vm); in JSValueRefIsErrorValueFuzzTest()
251 Local<IntegerRef> intValue = IntegerRef::New(vm, key); in JSValueRefToStringValueFuzzTest() local
264 intValue->ToString(vm); in JSValueRefToStringValueFuzzTest()
/arkcompiler/ets_frontend/es2panda/test/bytecode_file_size_comparison/test_cases/js/
DBasicDataTypesTest.js19 const intValue = 123456789; constant
35 console.log('Int value: ' + intValue);
/arkcompiler/ets_frontend/es2panda/test/bytecode_file_size_comparison/test_cases/ts/
DBasicDataTypesTest.ts19 const intValue: number = 123456789; constant
35 console.log('Int value: ' + intValue);
/arkcompiler/ets_runtime/test/fuzztest/jsnapiisconstructor_fuzzer/
Djsnapiisconstructor_fuzzer.cpp34 Local<IntegerRef> intValue = IntegerRef::New(vm_, (int)size); in JSNApiIsConstructorFuzzTest() local
35 intValue->IsConstructor(vm_); in JSNApiIsConstructorFuzzTest()
/arkcompiler/ets_frontend/es2panda/test/bytecode_file_size_comparison/test_cases/java_test_framework/java_cases/
DBasicDataTypesTest.java26 int intValue = 123456789; in main() local
42 System.out.println("Int value: " + intValue); in main()
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefnullvalue_fuzzer/
Djsvaluerefnullvalue_fuzzer.cpp34 Local<PrimitiveRef> intValue = IntegerRef::New(vm, 0); in JSValueRefNullValueFuzzTest() local
35 intValue->Null(vm); in JSValueRefNullValueFuzzTest()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/
Dmir_const.h404 return value.intValue; in GetIntValue()
426 return ((static_cast<uint32>(value.intValue) & 0x80000000) == 0x80000000); in IsNeg()
453 int32 intValue; member
469 auto unsignVal = static_cast<uint64>(value.intValue); in GetIntLow32()
475 auto unsignVal = static_cast<uint64>(value.intValue); in GetIntHigh32()
481 return value.intValue; in GetIntValue()
508 … return ((static_cast<uint64>(value.intValue) & 0x8000000000000000LL) == 0x8000000000000000LL); in IsNeg()
535 int64 intValue; member
/arkcompiler/ets_runtime/ecmascript/
Delements.cpp241 int intValue = value.GetInt(); in MigrateFromHeapValueToRawValue() local
242 convertedValue = base::bit_cast<JSTaggedType>(static_cast<double>(intValue)); in MigrateFromHeapValueToRawValue()
260 int intValue = static_cast<int>(elements->Get(i).GetRawData()); in MigrateFromHoleIntToHoleNumber() local
261 double convertedValue = static_cast<double>(intValue); in MigrateFromHoleIntToHoleNumber()
275 double intValue = base::bit_cast<double>(elements->Get(i).GetRawData()); in MigrateFromHoleNumberToHoleInt() local
276 int64_t convertedValue = static_cast<int64_t>(intValue); in MigrateFromHoleNumberToHoleInt()
Delement_accessor-inl.h75 int intValue = rawValue.GetInt(); in FastSet() local
77 … base::bit_cast<JSTaggedType>(static_cast<double>(intValue))); in FastSet()
Delement_accessor.cpp140 int intValue = rawValue.GetInt(); in ConvertTaggedValueWithElementsKind() local
141 convertedValue = base::bit_cast<JSTaggedType>(static_cast<double>(intValue)); in ConvertTaggedValueWithElementsKind()
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/
Dstd_math.cpp224 auto intValue = ToUint32(val); in StdMathClz32Double() local
225 if (intValue != 0) { in StdMathClz32Double()
226 return static_cast<double>(Clz(intValue)); in StdMathClz32Double()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/src/
Dmir_const.cpp159 return (floatConst.value.intValue == value.intValue); in operator ==()
181 return (floatConst.value.intValue == value.intValue); in operator ==()
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/spec/17.Experimental_Features/Iterable_Types/
Dfor-of-s01-array-08.sts35 if (tmp.intValue != expectedArray[index]) {
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/es_object/to_string/
Dtest_to_string_method.js40 exports.IntValue = function () { class in exports
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefobject_fuzzer/
Djsvaluerefobject_fuzzer.cpp53 Local<IntegerRef> intValue = IntegerRef::New(vm, input); in JSValueRefIsBigIntFuzzTest() local
54 [[maybe_unused]]bool res = intValue->IsBigInt(vm); in JSValueRefIsBigIntFuzzTest()
/arkcompiler/ets_runtime/ecmascript/napi/test/
Dffi_workload.cpp1429 Local<IntegerRef> intValue = IntegerRef::New(vm_, num); in HWTEST_F_L0() local
1430 EXPECT_EQ(intValue->Value(), num); in HWTEST_F_L0()
1431 Local<JSValueRef> jsValue = intValue->GetValue(vm_); in HWTEST_F_L0()
1453 Local<IntegerRef> intValue = IntegerRef::New(vm_, num); in HWTEST_F_L0() local
1454 EXPECT_EQ(intValue->Value(), num); in HWTEST_F_L0()
1455 Local<JSValueRef> jsValue = intValue->GetValue(vm_); in HWTEST_F_L0()
1475 Local<IntegerRef> intValue = IntegerRef::New(vm_, 0); in HWTEST_F_L0() local
1476 EXPECT_EQ(intValue->Value(), 0); in HWTEST_F_L0()
1477 Local<JSValueRef> jsValue = intValue->GetValue(vm_); in HWTEST_F_L0()
1499 Local<IntegerRef> intValue = IntegerRef::New(vm_, 0); in HWTEST_F_L0() local
[all …]

123