/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/ |
D | boxing.ets | 29 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;
|
D | UpdateExpression.ets | 58 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;
|
D | UnaryExpression.ets | 67 assert a.intValue() == -40;
|
D | CastReference.ets | 100 assert Int_.intValue() == 42;
|
/arkcompiler/ets_runtime/test/fuzztest/publicapilocaloperatorsymbol_fuzzer/ |
D | publicapilocaloperatorsymbol_fuzzer.cpp | 33 Local<IntegerRef> intValue = IntegerRef::New(vm, (int)size); in LocalOperatorOneFuzzTest() local 34 intValue.operator->(); in LocalOperatorOneFuzzTest() 47 Local<IntegerRef> intValue = IntegerRef::New(vm, (int)size); in LocalOperatorTowFuzzTest() local 48 intValue.operator*(); in LocalOperatorTowFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/publicapilocal_fuzzer/ |
D | publicapilocal_fuzzer.cpp | 33 Local<IntegerRef> intValue = IntegerRef::New(vm, (int)size); in LocalIsEmptyFuzzTest() local 34 intValue.IsEmpty(); in LocalIsEmptyFuzzTest() 47 Local<IntegerRef> intValue = IntegerRef::New(vm, (int)size); in LocalIsNullFuzzTest() local 48 intValue.IsNull(); in LocalIsNullFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/jsnapiisconstructor_fuzzer/ |
D | jsnapiisconstructor_fuzzer.cpp | 34 Local<IntegerRef> intValue = IntegerRef::New(vm_, (int)size); in JSNApiIsConstructorFuzzTest() local 35 intValue->IsConstructor(); in JSNApiIsConstructorFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefnullvalue_fuzzer/ |
D | jsvaluerefnullvalue_fuzzer.cpp | 34 Local<PrimitiveRef> intValue = IntegerRef::New(vm, 0); in JSValueRefNullValueFuzzTest() local 35 intValue->Null(vm); in JSValueRefNullValueFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/jsvaluereffoundationvalue_fuzzer/ |
D | jsvaluereffoundationvalue_fuzzer.cpp | 45 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(); in JSValueRefIsDateValueFuzzTest() 218 Local<IntegerRef> intValue = IntegerRef::New(vm, key); in JSValueRefIsErrorValueFuzzTest() local 227 intValue->IsError(); in JSValueRefIsErrorValueFuzzTest() 251 Local<IntegerRef> intValue = IntegerRef::New(vm, key); in JSValueRefToStringValueFuzzTest() local 264 intValue->ToString(vm); in JSValueRefToStringValueFuzzTest()
|
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/ |
D | Int.ets | 46 this.value = value.intValue(); 113 public override intValue(): int { 219 return this.value == (other as Int).intValue(); 232 return Int.valueOf((this.value + other.intValue()) as int) 243 return Int.valueOf((this.value - other.intValue()) as int) 254 return Int.valueOf((this.value * other.intValue()) as int) 265 return Int.valueOf((this.value / other.intValue()) as int) 276 return this.value < other.intValue(); 287 return this.value <= other.intValue(); 298 return this.value > other.intValue(); [all …]
|
D | Numeric.ets | 35 public abstract intValue(): int;
|
D | Short.ets | 113 public override intValue(): int { 206 return this.intValue();
|
D | Byte.ets | 113 public override intValue(): int { 207 return this.intValue();
|
D | Long.ets | 113 public override intValue(): int { 233 return this.intValue();
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/ |
D | mir_const.h | 398 return value.intValue; in GetIntValue() 419 return ((static_cast<uint32>(value.intValue) & 0x80000000) == 0x80000000); in IsNeg() 446 int32 intValue; member 462 auto unsignVal = static_cast<uint64>(value.intValue); in GetIntLow32() 468 auto unsignVal = static_cast<uint64>(value.intValue); in GetIntHigh32() 474 return value.intValue; in GetIntValue() 500 … return ((static_cast<uint64>(value.intValue) & 0x8000000000000000LL) == 0x8000000000000000LL); in IsNeg() 527 int64 intValue; member
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/src/ |
D | mir_const.cpp | 147 return (floatConst.value.intValue == value.intValue); in operator ==() 169 return (floatConst.value.intValue == value.intValue); in operator ==()
|
/arkcompiler/ets_runtime/ecmascript/ |
D | elements.cpp | 166 int intValue = static_cast<int>(elements->Get(i).GetRawData()); in MigrateArrayWithKind() local 167 double convertedValue = static_cast<double>(intValue); in MigrateArrayWithKind() 233 int intValue = value.GetInt(); in MigrateArrayWithKind() local 234 … convertedValue = base::bit_cast<JSTaggedType>(static_cast<double>(intValue)); in MigrateArrayWithKind()
|
D | element_accessor.cpp | 125 int intValue = rawValue.GetInt(); in ConvertTaggedValueWithElementsKind() local 126 convertedValue = base::bit_cast<JSTaggedType>(static_cast<double>(intValue)); in ConvertTaggedValueWithElementsKind()
|
D | js_object-inl.h | 251 int intValue = value.GetInt(); in ConvertValueWithRep() local 252 return std::pair(true, JSTaggedValue(static_cast<JSTaggedType>(intValue))); in ConvertValueWithRep()
|
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefobject_fuzzer/ |
D | jsvaluerefobject_fuzzer.cpp | 51 Local<IntegerRef> intValue = IntegerRef::New(vm, input); in JSValueRefIsBigIntFuzzTest() local 52 [[maybe_unused]]bool res = intValue->IsBigInt(); in JSValueRefIsBigIntFuzzTest()
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/spec/for_of/ |
D | for-of-s01-array-08.ets | 35 if (tmp.intValue != expectedArray[index]) {
|
/arkcompiler/ets_runtime/ecmascript/napi/test/ |
D | ffi_workload.cpp | 1429 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() 1498 Local<IntegerRef> intValue = IntegerRef::New(vm_, 0); in HWTEST_F_L0() local [all …]
|
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/escompat/ |
D | Math.ets | 242 return new Int(clz32(x.intValue())); 492 return max(a.intValue(), b.intValue()); 526 return min(a.intValue(), b.intValue());
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/time/ |
D | DateConstructorTest.ets | 211 if(Double.valueOf(id[i]).intValue() != cd.valueOf()) failures++; 443 if(cd.getFullYear() != Double.valueOf(year).intValue()) failures++ 445 if(cd.getDate() != Double.valueOf(day).intValue()) failures++; 447 if(cd.getHours() != Double.valueOf(hour).intValue()) failures++;
|
/arkcompiler/ets_runtime/ecmascript/napi/ |
D | JSNapi接口说明.md | 2168 Local<IntegerRef> intValue = IntegerRef::New(vm_, input); 2169 Local<ObjectRef> object = intValue->ToObject(vm_); 2219 Local<IntegerRef> intValue = IntegerRef::New(vm_, 0); 2220 Local<BooleanRef> boo = intValue->ToBoolean(vm_); 2266 Local<IntegerRef> intValue = IntegerRef::New(vm_, input); 2267 bool b = intValue->IsBigInt(); 4217 Local<IntegerRef> intValue = IntegerRef::New(vm, 0); 4219 argumentsInt.emplace_back(intValue); 4765 Local<IntegerRef> intValue = IntegerRef::New(vm, 10); 4766 Local<JSValueRef> jsValue = intValue->GetValue(vm); [all …]
|