Home
last modified time | relevance | path

Searched refs:newValue (Results 1 – 25 of 31) sorted by relevance

12

/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DnestedLoops.ts46 this.aFunction((newValue, oldValue) => {
47 AssertType(this.aFunction((newValue, oldValue) => { let x = outer + inner + newV…
50 AssertType((newValue, oldValue) => { let x = outer + inner + newValue; …
51 AssertType(newValue, "any");
54 let x = outer + inner + newValue;
56 AssertType(outer + inner + newValue, "any");
60 AssertType(newValue, "any");
66 public aFunction(func: (newValue: any, oldValue: any) => void): void {
DgenericCallbacksAndClassHierarchy.ts23 subscribe(callback: (newValue: T) => void ): any;
34 let f = (newValue: A<T>) => { };
36 AssertType((newValue: A<T>) => { }, "(A<T>) => void");
37 AssertType(newValue, "A<T>");
49 v.subscribe((newValue: A<T>) => { });
50 AssertType(v.subscribe((newValue: A<T>) => { }), "any");
52 AssertType((newValue: A<T>) => { }, "(A<T>) => void");
53 AssertType(newValue, "A<T>");
DnoCrashOnThisTypeUsage.ts33 const newValue: T = value; constant
34 AssertType(newValue, "T");
42 …(this, { type: "update", object: this, newValue, oldVa…
45 AssertType({ type: "update", object: this, newValue, ol…
55 newValue,
56 AssertType(newValue, "T");
DperformanceComparisonOfStructurallyIdenticalInterfacesWithGenericSignatures.ts24 filter(callback: (newValue: T, oldValue: T) => boolean): InterfaceA<T>;
55 public filter(callback: (newValue: T, oldValue: T) => boolean): B<T> {
/arkcompiler/ets_runtime/ecmascript/
Dmethod.h123 uint64_t newValue = SetNumArgsWithCallField(callField, numargs); in SetNumArgsWithCallField() local
124 SetCallField(newValue); in SetNumArgsWithCallField()
130 uint64_t newValue = SetNativeBit(callField, isNative); in SetNativeBit() local
131 SetCallField(newValue); in SetNativeBit()
137 uint64_t newValue = SetAotCodeBit(callField, isCompiled); in SetAotCodeBit() local
138 SetCallField(newValue); in SetAotCodeBit()
144 uint64_t newValue = SetFastBuiltinBit(callField, isFastBuiltin); in SetFastBuiltinBit() local
145 SetCallField(newValue); in SetFastBuiltinBit()
238 uint64_t newValue = MethodLiteral::SetHotnessCounter(literalInfo, counter); in SetHotnessCounter() local
239 SetLiteralInfo(newValue); in SetHotnessCounter()
[all …]
/arkcompiler/ets_frontend/es2panda/lexer/regexp/
Dregexp.cpp536 uint32_t newValue = decimalValue * MULTIPLIER + DigitValue(Next()); in ParseDecimalEscape() local
537 if (newValue < decimalValue) { in ParseDecimalEscape()
541 decimalValue = newValue; in ParseDecimalEscape()
577 uint32_t newValue = octalValue * 8 + DigitValue(Peek()); in ParseLegacyOctalEscape() local
580 if (newValue <= MAX_OCTAL_VALUE) { in ParseLegacyOctalEscape()
581 octalValue = newValue; in ParseLegacyOctalEscape()
765 uint32_t newValue = leftValue * MULTIPLIER + DigitValue(Next()); in ParseBracedQuantifier() local
766 if (newValue < leftValue) { in ParseBracedQuantifier()
771 leftValue = newValue; in ParseBracedQuantifier()
786 uint32_t newValue = rightValue * MULTIPLIER + DigitValue(Next()); in ParseBracedQuantifier() local
[all …]
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_atomics.cpp351 …JSHandle<JSTaggedValue> newValue = BuiltinsBase::GetCallArg(argv, BuiltinsBase::ArgsPosition::FOUR… in HandleWithUint8() local
352 uint8_t newTag = JSTaggedValue::ToUint8(thread, newValue); in HandleWithUint8()
372 …JSHandle<JSTaggedValue> newValue = BuiltinsBase::GetCallArg(argv, BuiltinsBase::ArgsPosition::FOUR… in HandleWithInt8() local
373 int8_t newTag = JSTaggedValue::ToInt8(thread, newValue); in HandleWithInt8()
393 …JSHandle<JSTaggedValue> newValue = BuiltinsBase::GetCallArg(argv, BuiltinsBase::ArgsPosition::FOUR… in HandleWithUint16() local
394 uint16_t newTag = JSTaggedValue::ToUint16(thread, newValue); in HandleWithUint16()
414 …JSHandle<JSTaggedValue> newValue = BuiltinsBase::GetCallArg(argv, BuiltinsBase::ArgsPosition::FOUR… in HandleWithInt16() local
415 int16_t newTag = JSTaggedValue::ToInt16(thread, newValue); in HandleWithInt16()
435 …JSHandle<JSTaggedValue> newValue = BuiltinsBase::GetCallArg(argv, BuiltinsBase::ArgsPosition::FOUR… in HandleWithUint32() local
436 uint32_t newTag = JSTaggedValue::ToUint32(thread, newValue); in HandleWithUint32()
[all …]
/arkcompiler/ets_runtime/test/moduletest/stubbuilder/
Dexpect_output.txt74 2 [{"id":"50","newValue":12},{"id":"51","newValue":13}]
/arkcompiler/ets_runtime/ecmascript/jspandafile/tests/quickfix/multi_file/base/
Dindex.js35 set message(newValue) { argument
/arkcompiler/ets_runtime/ecmascript/jspandafile/tests/quickfix/multi_file/patch/
Dindex.js36 set message(newValue) { argument
/arkcompiler/ets_runtime/ecmascript/js_api/
Djs_api_hashmap.cpp96 JSTaggedValue JSAPIHashMap::Replace(JSThread *thread, JSTaggedValue key, JSTaggedValue newValue) in Replace() argument
105 LinkedNode::Cast(nodeVa.GetTaggedObject())->SetValue(thread, newValue); in Replace()
107 RBTreeNode::Cast(nodeVa.GetTaggedObject())->SetValue(thread, newValue); in Replace()
Djs_api_hashmap.h41 JSTaggedValue Replace(JSThread *thread, JSTaggedValue key, JSTaggedValue newValue);
/arkcompiler/ets_runtime/ecmascript/base/
Dstring_helper.h56 const CString &newValue) in RepalceAll() argument
58 if (oldValue.empty() || oldValue == newValue) { in RepalceAll()
63 str.replace(pos, oldValue.length(), newValue); in RepalceAll()
64 pos += newValue.length(); in RepalceAll()
/arkcompiler/ets_runtime/ecmascript/ic/tests/
Dprofile_type_info_test.cpp76 JSHandle<JSTaggedValue> newValue(thread, JSTaggedValue(1)); in HWTEST_F_L0() local
78 JSHandle<JSTaggedValue> newBox(factory->NewPropertyBox(newValue)); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/tests/
Dobject_operator_test.cpp702 JSHandle<JSTaggedValue> newValue(thread, JSTaggedValue(i)); in HWTEST_F_L0() local
704 factory->ConcatFromString(handleKey1, JSTaggedValue::ToString(thread, newValue)); in HWTEST_F_L0()
706 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(handleObject), newKey, newValue); in HWTEST_F_L0()
1061 JSHandle<JSTaggedValue> newValue(thread, JSTaggedValue(i)); in HWTEST_F_L0() local
1063 factory->ConcatFromString(handleKey, JSTaggedValue::ToString(thread, newValue)); in HWTEST_F_L0()
1065 JSObject::SetProperty(thread, JSHandle<JSTaggedValue>(handleObject), newKey, newValue); in HWTEST_F_L0()
Djs_hclass_test.cpp219 JSHandle<JSTaggedValue> newValue(thread, JSTaggedValue(i)); in HWTEST_F_L0() local
221 factory->ConcatFromString(keyHandle, JSTaggedValue::ToString(thread, newValue)); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/containers/
Dcontainers_hashmap.cpp340 JSHandle<JSTaggedValue> newValue = GetCallArg(argv, 1); in Replace() local
342 return jsHashMap->Replace(thread, key.GetTaggedValue(), newValue.GetTaggedValue()); in Replace()
/arkcompiler/ets_runtime/test/fuzztest/arraylist_fuzzer/
Darraylist_fuzzer.cpp114 … JSHandle<JSTaggedValue> newValue(thread, JSTaggedValue(value->GetInt() * 2)); // 2 means mul by 2 in TestReplaceAllElementsFunc() local
115 …JSHandle<JSAPIArrayList>::Cast(arrayList)->Set(thread, index->GetNumber(), newValue.GetTaggedValue… in TestReplaceAllElementsFunc()
116 return newValue.GetTaggedValue(); in TestReplaceAllElementsFunc()
/arkcompiler/ets_runtime/test/fuzztest/containersvectorcommon_fuzzer/
Dcontainersvectorcommon_fuzzer.h476 … JSHandle<JSTaggedValue> newValue(thread, JSTaggedValue(value->GetInt() * 2)); // 2 means mul by 2 in TestReplaceAllElementsFunc()
477 … JSHandle<JSAPIVector>::Cast(vector)->Set(thread, index->GetNumber(), newValue.GetTaggedValue()); in TestReplaceAllElementsFunc()
478 return newValue.GetTaggedValue(); in TestReplaceAllElementsFunc()
/arkcompiler/ets_runtime/ecmascript/containers/tests/
Dcontainers_plainarray_test.cpp68 … JSHandle<JSTaggedValue> newValue(thread, JSTaggedValue(value->GetInt() * 2)); // 2 means the value in TestForEachFunc() local
69 JSAPIPlainArray::Add(thread, plainArray, key, newValue); in TestForEachFunc()
Dcontainers_linked_list_test.cpp69 … JSHandle<JSTaggedValue> newValue(thread, JSTaggedValue(value->GetInt() * 2)); // 2 means mul by 2 in TestForEachFunc() local
70 … JSAPILinkedList::Set(thread, JSHandle<JSAPILinkedList>::Cast(list), index->GetInt(), newValue); in TestForEachFunc()
Dcontainers_list_test.cpp69 … JSHandle<JSTaggedValue> newValue(thread, JSTaggedValue(value->GetInt() * 2)); // 2 means mul by 2 in TestForEachFunc() local
70 … JSAPIList::Set(thread, JSHandle<JSAPIList>::Cast(list), index->GetInt(), newValue); in TestForEachFunc()
Dcontainers_vector_test.cpp86 … JSHandle<JSTaggedValue> newValue(thread, JSTaggedValue(value->GetInt() * 2)); // 2 means mul by 2 in TestReplaceAllElementsFunc() local
87 … JSHandle<JSAPIVector>::Cast(vector)->Set(thread, index->GetNumber(), newValue.GetTaggedValue()); in TestReplaceAllElementsFunc()
88 return newValue.GetTaggedValue(); in TestReplaceAllElementsFunc()
/arkcompiler/ets_runtime/test/fuzztest/containerslinkedlistcommon_fuzzer/
Dcontainerslinkedlistcommon_fuzzer.h45 … JSHandle<JSTaggedValue> newValue(thread, JSTaggedValue(value->GetInt() * 2)); // 2 means mul by 2 in TestForEachFunc()
46 … JSAPILinkedList::Set(thread, JSHandle<JSAPILinkedList>::Cast(list), index->GetInt(), newValue); in TestForEachFunc()
/arkcompiler/ets_runtime/test/fuzztest/containersplainarray_fuzzer/
Dcontainersplainarray_fuzzer.cpp311 JSHandle<JSTaggedValue> newValue(thread, value.GetTaggedValue()); in TestForEachFunc() local
312 JSAPIPlainArray::Add(thread, plainArray, key, newValue); in TestForEachFunc()

12