Home
last modified time | relevance | path

Searched refs:intValue (Results 1 – 25 of 37) sorted by relevance

12

/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
Dboxing.ets29 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.ets58 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;
DUnaryExpression.ets67 assert a.intValue() == -40;
DCastReference.ets100 assert Int_.intValue() == 42;
/arkcompiler/ets_runtime/test/fuzztest/publicapilocaloperatorsymbol_fuzzer/
Dpublicapilocaloperatorsymbol_fuzzer.cpp33 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/
Dpublicapilocal_fuzzer.cpp33 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/
Djsnapiisconstructor_fuzzer.cpp34 Local<IntegerRef> intValue = IntegerRef::New(vm_, (int)size); in JSNApiIsConstructorFuzzTest() local
35 intValue->IsConstructor(); in JSNApiIsConstructorFuzzTest()
/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/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(); 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/
DInt.ets46 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 …]
DNumeric.ets35 public abstract intValue(): int;
DShort.ets113 public override intValue(): int {
206 return this.intValue();
DByte.ets113 public override intValue(): int {
207 return this.intValue();
DLong.ets113 public override intValue(): int {
233 return this.intValue();
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/
Dmir_const.h398 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/
Dmir_const.cpp147 return (floatConst.value.intValue == value.intValue); in operator ==()
169 return (floatConst.value.intValue == value.intValue); in operator ==()
/arkcompiler/ets_runtime/ecmascript/
Delements.cpp166 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()
Delement_accessor.cpp125 int intValue = rawValue.GetInt(); in ConvertTaggedValueWithElementsKind() local
126 convertedValue = base::bit_cast<JSTaggedType>(static_cast<double>(intValue)); in ConvertTaggedValueWithElementsKind()
Djs_object-inl.h251 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/
Djsvaluerefobject_fuzzer.cpp51 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/
Dfor-of-s01-array-08.ets35 if (tmp.intValue != expectedArray[index]) {
/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()
1498 Local<IntegerRef> intValue = IntegerRef::New(vm_, 0); in HWTEST_F_L0() local
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/escompat/
DMath.ets242 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/
DDateConstructorTest.ets211 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/
DJSNapi接口说明.md2168 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 …]

12