Home
last modified time | relevance | path

Searched refs:input (Results 1 – 25 of 304) sorted by relevance

12345678910>>...13

/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DobservableInferenceCanBeMade.ts24 declare function from<O extends ObservableInput<any>>(input: O): Observable<ObservedValueOf<O>>;
38 function asObservable(input: string | ObservableInput<string>): Observable<string> {
39 AssertType(typeof input === 'string' ? of(input) : from(input), "Observable<string>");
40 AssertType(typeof input === 'string', "boolean");
41 AssertType(typeof input, "union");
42 AssertType(input, "union");
44 AssertType(of(input), "Observable<string>");
46 AssertType(input, "string");
47 AssertType(from(input), "Observable<string>");
49 AssertType(input, "ObservableInput<string>");
[all …]
DtaggedTemplatesWithTypeArguments1.ts106 prop: <T>(strs: TemplateStringsArray, x: (input: T) => T) => {
109 AssertType(input, "T");
117 export let c = obj["prop"]<Stuff> `${(input) => ({ ...input })}`
118 AssertType(obj["prop"]<Stuff> `${(input) => ({ ...input })}`, "{ returnedObjProp: Stuff; }");
122 AssertType(`${(input) => ({ ...input })}`, "string");
123 AssertType((input) => ({ ...input }), "(Stuff) => { x: number; y: string; z: boolean; }");
124 AssertType(input, "Stuff");
125 AssertType(({ ...input }), "{ x: number; y: string; z: boolean; }");
126 AssertType({ ...input }, "{ x: number; y: string; z: boolean; }");
127 AssertType(input, "Stuff");
[all …]
DuntypedArgumentInLambdaExpression.ts23 f((input): string => {
25 AssertType((input): string => { return "." + input;}, "(string) => string");
26 AssertType(input, "string");
27 AssertType(f((input): string => { return "." + input;}), "any");
29 AssertType("." + input, "string");
31 AssertType(input, "string");
32 return "." + input;
DneverAsDiscriminantTypestricttrue.ts90 export async function adaptSession(input: GatewayPayload) {
91 if (input.t === 'MESSAGE_CREATE') {
92 AssertType(input.t === 'MESSAGE_CREATE', "boolean");
93 AssertType(input.t, "union");
96 assertMessage(input.d)
97 AssertType(assertMessage(input.d), "void");
99 AssertType(input.d, "{ a: 1; }");
DneverAsDiscriminantTypestrictfalse.ts90 export async function adaptSession(input: GatewayPayload) {
91 if (input.t === 'MESSAGE_CREATE') {
92 AssertType(input.t === 'MESSAGE_CREATE', "boolean");
93 AssertType(input.t, "union");
96 assertMessage(input.d)
97 AssertType(assertMessage(input.d), "void");
99 AssertType(input.d, "{ a: 1; }");
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/jsDeclarationsFunctionClassesCjsExportAssignment/
Dcontext.js52 function Context(input) { argument
60 AssertType(new Context(input), "Context");
62 AssertType(input, "Input");
63 return new Context(input)
65 this.state = this.construct(input);
66 AssertType(this.state = this.construct(input), "State");
69 AssertType(this.construct(input), "State");
72 AssertType(input, "Input");
76 … handle * @returns {State} */ construct(input, handle = () => void 0) { return i… argument
77 … handle * @returns {State} */ construct(input, handle = () => void 0) { return i… argument
[all …]
/arkcompiler/ets_runtime/ecmascript/base/
Dmath_helper.h38 static double Asinh(double input) in Asinh() argument
41 if (input == 0 && !std::signbit(input)) { in Asinh()
46 return std::asinh(input); in Asinh()
49 static inline double Atanh(double input) in Atanh() argument
52 if (input == 0 && std::signbit(input)) { in Atanh()
57 return std::atanh(input); in Atanh()
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/jsDeclarationsImportAliasExposedWithinNamespaceCjs/
Dfile2.js48 function testFn(input) { argument
49 if (typeof input === 'number') {
50 AssertType(typeof input === 'number', "boolean");
51 AssertType(typeof input, "union");
52 AssertType(input, "union");
55 AssertType(2 * input, "number");
57 AssertType(input, "never");
58 return 2 * input;
/arkcompiler/runtime_core/compiler/optimizer/optimizations/
Dlowering.cpp86 auto input = inst->GetInput(0).GetInst(); in LowerIf() local
87 if (input->GetOpcode() != Opcode::Compare) { in LowerIf()
91 for (auto &user : input->GetUsers()) { in LowerIf()
97 if (BetterToSwapCompareInputs(input)) { in LowerIf()
99 auto in0 = input->GetInput(0).GetInst(); in LowerIf()
100 auto in1 = input->GetInput(1).GetInst(); in LowerIf()
101 input->SetInput(0, in1); in LowerIf()
102 input->SetInput(1, in0); in LowerIf()
104 auto cc = input->CastToCompare()->GetCc(); in LowerIf()
106 input->CastToCompare()->SetCc(cc); in LowerIf()
[all …]
/arkcompiler/runtime_core/compiler/optimizer/ir_builder/
Dinst_builder-inl.h49 auto input = GetDefinitionAcc(); in BuildCastToAnyString() local
50 ASSERT(input->GetType() == DataType::REFERENCE); in BuildCastToAnyString()
58 box->SetInput(0, input); in BuildCastToAnyString()
66 auto input = GetDefinitionAcc(); in BuildCastToAnyNumber() local
67 auto type = input->GetType(); in BuildCastToAnyNumber()
68 if (input->IsConst() && !DataType::IsFloatType(type)) { in BuildCastToAnyNumber()
69 auto const_insn = input->CastToConstant(); in BuildCastToAnyNumber()
71 auto value = input->CastToConstant()->GetInt64Value(); in BuildCastToAnyNumber()
84 box->SetInput(0, input); in BuildCastToAnyNumber()
/arkcompiler/runtime_core/libpandabase/tests/
Dmutex_test.cpp40 static void *TestThread1(void *input) in TestThread1() argument
42 ASSERT(input != nullptr); in TestThread1()
43 ThreadRWLockArgs *arg = reinterpret_cast<ThreadRWLockArgs *>(input); in TestThread1()
51 static void *TestThread2(void *input) in TestThread2() argument
53 ASSERT(input != nullptr); in TestThread2()
54 ThreadRWLockArgs *arg = reinterpret_cast<ThreadRWLockArgs *>(input); in TestThread2()
61 static void *TestThread3(void *input) in TestThread3() argument
63 ASSERT(input != nullptr); in TestThread3()
64 ThreadRWLockArgs *arg = reinterpret_cast<ThreadRWLockArgs *>(input); in TestThread3()
79 static void *TestThread4(void *input) in TestThread4() argument
[all …]
/arkcompiler/ets_runtime/ecmascript/regexp/tests/
Dregexp_test.cpp648 CString input("abc"); in HWTEST_F_L0() local
650 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.size(), parser.GetOrig… in HWTEST_F_L0()
670 CString input("cabd"); in HWTEST_F_L0() local
672 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.size(), parser.GetOrig… in HWTEST_F_L0()
701 CString input("aabaac"); in HWTEST_F_L0() local
703 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.size(), parser.GetOrig… in HWTEST_F_L0()
725 CString input("aabaac"); in HWTEST_F_L0() local
727 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.size(), parser.GetOrig… in HWTEST_F_L0()
747 CString input("b"); in HWTEST_F_L0() local
749 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.size(), parser.GetOrig… in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/test/fuzztest/daterefnew_fuzzer/
Ddaterefnew_fuzzer.cpp34 double input = 0; in DateRefNewFuzzTest() local
38 if (memcpy_s(&input, MAXBYTELEN, data, size) != 0) { in DateRefNewFuzzTest()
42 if (std::isnan(input)) { in DateRefNewFuzzTest()
43 input = ecmascript::base::NAN_VALUE; in DateRefNewFuzzTest()
45 DateRef::New(vm, input); in DateRefNewFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/builtinsarraybuffergetvaluefrombufferforfloat_fuzzer/
Dbuiltinsarraybuffergetvaluefrombufferforfloat_fuzzer.cpp42 double input; in BuiltinsArrayBufferGetValueFromBufferForFloatFuzzTest() local
49 if (memcpy_s(&input, MAXBYTELEN, data, size) != 0) { in BuiltinsArrayBufferGetValueFromBufferForFloatFuzzTest()
54 if (std::isnan(input) || JSTaggedValue::IsImpureNaN(input)) { in BuiltinsArrayBufferGetValueFromBufferForFloatFuzzTest()
55 input = 0.0; in BuiltinsArrayBufferGetValueFromBufferForFloatFuzzTest()
60 JSHandle<JSTaggedValue> val(thread, JSTaggedValue(input)); in BuiltinsArrayBufferGetValueFromBufferForFloatFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/bigint64arrayrefnew_fuzzer/
Dbigint64arrayrefnew_fuzzer.cpp32 int32_t input; in BigInt64ArrayRefNewFuzzTest() local
39 if (memcpy_s(&input, MAXBYTELEN, data, size) != 0) { in BigInt64ArrayRefNewFuzzTest()
44 if (input > MaxMenory) { in BigInt64ArrayRefNewFuzzTest()
45 input = MaxMenory; in BigInt64ArrayRefNewFuzzTest()
47 Local<ArrayBufferRef> ref = ArrayBufferRef::New(vm, input); in BigInt64ArrayRefNewFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/uint8arrayrefnew_fuzzer/
Duint8arrayrefnew_fuzzer.cpp32 int32_t input; in Uint8ArrayRefNewFuzzTest() local
39 if (memcpy_s(&input, MAXBYTELEN, data, size) != 0) { in Uint8ArrayRefNewFuzzTest()
44 if (input > MaxMenory) { in Uint8ArrayRefNewFuzzTest()
45 input = MaxMenory; in Uint8ArrayRefNewFuzzTest()
47 Local<ArrayBufferRef> ref = ArrayBufferRef::New(vm, input); in Uint8ArrayRefNewFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/biguint64arrayrefnew_fuzzer/
Dbiguint64arrayrefnew_fuzzer.cpp31 int32_t input; in BigUint64ArrayRefNewFuzzTest() local
38 if (memcpy_s(&input, MAXBYTELEN, data, size) != 0) { in BigUint64ArrayRefNewFuzzTest()
43 if (input > MaxMenory) { in BigUint64ArrayRefNewFuzzTest()
44 input = MaxMenory; in BigUint64ArrayRefNewFuzzTest()
46 Local<ArrayBufferRef> ref = ArrayBufferRef::New(vm, input); in BigUint64ArrayRefNewFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/uint32arrayrefnew_fuzzer/
Duint32arrayrefnew_fuzzer.cpp32 int32_t input; in Uint32ArrayRefNewFuzzTest() local
39 if (memcpy_s(&input, MAXBYTELEN, data, size) != 0) { in Uint32ArrayRefNewFuzzTest()
44 if (input > MaxMenory) { in Uint32ArrayRefNewFuzzTest()
45 input = MaxMenory; in Uint32ArrayRefNewFuzzTest()
47 Local<ArrayBufferRef> ref = ArrayBufferRef::New(vm, input); in Uint32ArrayRefNewFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/int8arrayrefnew_fuzzer/
Dint8arrayrefnew_fuzzer.cpp32 int32_t input; in Int8ArrayRefNewFuzzTest() local
39 if (memcpy_s(&input, MAXBYTELEN, data, size) != 0) { in Int8ArrayRefNewFuzzTest()
44 if (input > MaxMenory) { in Int8ArrayRefNewFuzzTest()
45 input = MaxMenory; in Int8ArrayRefNewFuzzTest()
47 Local<ArrayBufferRef> ref = ArrayBufferRef::New(vm, input); in Int8ArrayRefNewFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/uint8clampedarrayrefnew_fuzzer/
Duint8clampedarrayrefnew_fuzzer.cpp32 int32_t input; in Uint8ClampedArrayRefNewFuzzTest() local
39 if (memcpy_s(&input, MAXBYTELEN, data, size) != 0) { in Uint8ClampedArrayRefNewFuzzTest()
44 if (input > MaxMenory) { in Uint8ClampedArrayRefNewFuzzTest()
45 input = MaxMenory; in Uint8ClampedArrayRefNewFuzzTest()
47 Local<ArrayBufferRef> ref = ArrayBufferRef::New(vm, input); in Uint8ClampedArrayRefNewFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/uint16arrayrefnew_fuzzer/
Duint16arrayrefnew_fuzzer.cpp31 int32_t input; in Uint16ArrayRefNewFuzzTest() local
38 if (memcpy_s(&input, MAXBYTELEN, data, size) != 0) { in Uint16ArrayRefNewFuzzTest()
43 if (input > MaxMenory) { in Uint16ArrayRefNewFuzzTest()
44 input = MaxMenory; in Uint16ArrayRefNewFuzzTest()
46 Local<ArrayBufferRef> ref = ArrayBufferRef::New(vm, input); in Uint16ArrayRefNewFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/float64arrayrefnew_fuzzer/
Dfloat64arrayrefnew_fuzzer.cpp32 int32_t input; in Float64ArrayRefNewFuzzTest() local
39 if (memcpy_s(&input, MAXBYTELEN, data, size) != 0) { in Float64ArrayRefNewFuzzTest()
44 if (input > MaxMenory) { in Float64ArrayRefNewFuzzTest()
45 input = MaxMenory; in Float64ArrayRefNewFuzzTest()
47 Local<ArrayBufferRef> ref = ArrayBufferRef::New(vm, input); in Float64ArrayRefNewFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/int16arrayrefnew_fuzzer/
Dint16arrayrefnew_fuzzer.cpp32 int32_t input; in Int16ArrayRefNewFuzzTest() local
39 if (memcpy_s(&input, MAXBYTELEN, data, size) != 0) { in Int16ArrayRefNewFuzzTest()
44 if (input > MaxMenory) { in Int16ArrayRefNewFuzzTest()
45 input = MaxMenory; in Int16ArrayRefNewFuzzTest()
47 Local<ArrayBufferRef> ref = ArrayBufferRef::New(vm, input); in Int16ArrayRefNewFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/int32arrayrefnew_fuzzer/
Dint32arrayrefnew_fuzzer.cpp32 int32_t input; in Int32ArrayRefNewFuzzTest() local
39 if (memcpy_s(&input, MAXBYTELEN, data, size) != 0) { in Int32ArrayRefNewFuzzTest()
44 if (input > MaxMenory) { in Int32ArrayRefNewFuzzTest()
45 input = MaxMenory; in Int32ArrayRefNewFuzzTest()
47 Local<ArrayBufferRef> ref = ArrayBufferRef::New(vm, input); in Int32ArrayRefNewFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/float32arrayrefnew_fuzzer/
Dfloat32arrayrefnew_fuzzer.cpp33 int32_t input; in Float32ArrayRefNewFuzzTest() local
40 if (memcpy_s(&input, MAXBYTELEN, data, size) != 0) { in Float32ArrayRefNewFuzzTest()
45 if (input > MaxMenory) { in Float32ArrayRefNewFuzzTest()
46 input = MaxMenory; in Float32ArrayRefNewFuzzTest()
48 Local<ArrayBufferRef> ref = ArrayBufferRef::New(vm, input); in Float32ArrayRefNewFuzzTest()

12345678910>>...13