/arkcompiler/ets_runtime/ecmascript/ic/tests/ |
D | ic_handler_test.cpp | 68 EXPECT_TRUE(HandlerBase::IsNormalElement(result.GetInt())); in HWTEST_F_L0() 69 EXPECT_EQ(HandlerBase::GetKind(result.GetInt()), HandlerKind::ELEMENT); in HWTEST_F_L0() 92 EXPECT_TRUE(HandlerBase::IsNonExist(handlerInfo1->GetInt())); in HWTEST_F_L0() 93 EXPECT_EQ(HandlerBase::GetKind(handlerInfo1->GetInt()), HandlerKind::NON_EXIST); in HWTEST_F_L0() 100 EXPECT_EQ(HandlerBase::GetOffset(handlerInfo2->GetInt()), 1); in HWTEST_F_L0() 104 EXPECT_EQ(HandlerBase::GetKind(handlerInfo3->GetInt()), HandlerKind::FIELD); in HWTEST_F_L0() 105 EXPECT_EQ(HandlerBase::GetOffset(handlerInfo3->GetInt()), 5); in HWTEST_F_L0() 106 EXPECT_TRUE(HandlerBase::IsInlinedProps(handlerInfo3->GetInt())); in HWTEST_F_L0() 128 EXPECT_EQ(HandlerBase::GetKind(handlerInfo1->GetInt()), HandlerKind::ELEMENT); in HWTEST_F_L0() 129 EXPECT_EQ(HandlerBase::GetKind(handlerInfo2->GetInt()), HandlerKind::ELEMENT); in HWTEST_F_L0() [all …]
|
D | ic_runtime_stub_test.cpp | 83 EXPECT_EQ(resultValue1.GetInt(), 2); in HWTEST_F_L0() 90 EXPECT_EQ(resultValue2.GetInt(), 2); in HWTEST_F_L0() 115 EXPECT_EQ(handleBoxValue->GetValue().GetInt(), 2); in HWTEST_F_L0() 176 EXPECT_EQ(resultValue.GetInt(), 2); in HWTEST_F_L0() 231 EXPECT_EQ(resultValue1.GetInt(), handleStoreVal.GetInt()); in HWTEST_F_L0() 267 EXPECT_EQ(resultValue.GetInt(), handleStoreVal.GetInt()); in HWTEST_F_L0() 299 EXPECT_EQ(resultValue.GetInt(), handleStoreVal.GetInt()); in HWTEST_F_L0() 347 … JSHandle<JSTaggedValue>(handleReceiver), keyHandle).GetValue()->GetInt(), 2); in HWTEST_F_L0() 353 EXPECT_EQ(ICRuntimeStub::LoadGlobal(boxHandler.GetTaggedValue()).GetInt(), 2); in HWTEST_F_L0() 371 return JSTaggedValue(value.GetInt()); in TestGetter() [all …]
|
D | profile_type_info_test.cpp | 141 EXPECT_EQ(handleProfileTypeInfo->Get(slotId + 1).GetInt(), 2); in HWTEST_F_L0() 158 EXPECT_EQ(resultArr2->Get(0).GetInt(), 2); in HWTEST_F_L0() 161 EXPECT_EQ(resultArr2->Get(3).GetInt(), 2); in HWTEST_F_L0() 191 EXPECT_EQ(handleProfileTypeInfo->Get(1).GetInt(), 3); in HWTEST_F_L0() 273 EXPECT_EQ(resultArr1->Get(1).GetInt(), 222); in HWTEST_F_L0() 281 EXPECT_EQ(resultArr2->Get(1).GetInt(), 222); in HWTEST_F_L0() 282 EXPECT_EQ(resultArr2->Get(2).GetInt(), 111); in HWTEST_F_L0() 283 EXPECT_EQ(resultArr2->Get(3).GetInt(), 333); in HWTEST_F_L0() 306 EXPECT_EQ(handleProfileTypeInfo->Get(slotId).GetInt(), 232); in HWTEST_F_L0() 310 EXPECT_EQ(handleProfileTypeInfo->Get(slotId).GetInt(), 5); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | js_array_test.cpp | 64 EXPECT_EQ(JSArray::GetProperty(thread, obj, lengthKeyHandle).GetValue()->GetInt(), 0); in HWTEST_F_L0() 69 EXPECT_EQ(JSArray::GetProperty(thread, obj2, lengthKeyHandle).GetValue()->GetInt(), 10); in HWTEST_F_L0() 78 …Array::GetProperty(thread, JSHandle<JSTaggedValue>(obj), lengthKeyHandle).GetValue()->GetInt(), 0); in HWTEST_F_L0() 83 EXPECT_EQ(JSArray::GetProperty(thread, obj2, lengthKeyHandle).GetValue()->GetInt(), 10); in HWTEST_F_L0() 94 EXPECT_EQ(JSArray::GetProperty(thread, obj, lengthKeyHandle).GetValue()->GetInt(), 0); in HWTEST_F_L0() 102 EXPECT_EQ(JSArray::GetProperty(thread, obj, lengthKeyHandle).GetValue()->GetInt(), 2); in HWTEST_F_L0() 104 EXPECT_EQ(v.GetInt(), 100); in HWTEST_F_L0() 106 EXPECT_EQ(v.GetInt(), 100); in HWTEST_F_L0() 107 EXPECT_EQ(JSArray::GetProperty(thread, obj, lengthKeyHandle).GetValue()->GetInt(), 2); in HWTEST_F_L0() 114 EXPECT_EQ(JSArray::GetProperty(thread, obj, key100).GetValue()->GetInt(), 100); in HWTEST_F_L0() [all …]
|
D | js_arguments_test.cpp | 73 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(jsarg), key).GetValue()->GetInt(),… in HWTEST_F_L0() 74 EXPECT_EQ(JSArguments::GetProperty(thread, jsarg, key).GetValue()->GetInt(), 1); in HWTEST_F_L0() 78 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(jsarg), key).GetValue()->GetInt(),… in HWTEST_F_L0() 79 EXPECT_EQ(JSArguments::GetProperty(thread, jsarg, key).GetValue()->GetInt(), 2); in HWTEST_F_L0() 95 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(jsarg), key).GetValue()->GetInt(),… in HWTEST_F_L0() 96 …guments::GetProperty(thread, JSHandle<JSArguments>(jsarg), key, receiver).GetValue()->GetInt(), 1); in HWTEST_F_L0() 100 EXPECT_EQ(JSArguments::GetProperty(thread, jsarg, key).GetValue()->GetInt(), 2); in HWTEST_F_L0() 101 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(jsarg), key).GetValue()->GetInt(),… in HWTEST_F_L0() 116 EXPECT_EQ(JSArguments::GetProperty(thread, jsarg, key).GetValue()->GetInt(), 1); in HWTEST_F_L0() 136 …EXPECT_EQ(JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(jsarg), key).GetValue()->GetInt(),… in HWTEST_F_L0() [all …]
|
D | js_map_test.cpp | 141 EXPECT_EQ(0, JSIterator::IteratorValue(thread, keyResult0)->GetInt()); in HWTEST_F_L0() 142 EXPECT_EQ(10, JSIterator::IteratorValue(thread, valueResult0)->GetInt()); in HWTEST_F_L0() 144 EXPECT_EQ(0, JSObject::GetProperty(thread, result0Handle, indexKey).GetValue()->GetInt()); in HWTEST_F_L0() 145 EXPECT_EQ(10, JSObject::GetProperty(thread, result0Handle, elementKey).GetValue()->GetInt()); in HWTEST_F_L0() 148 EXPECT_EQ(1, JSIterator::IteratorValue(thread, keyResult1)->GetInt()); in HWTEST_F_L0() 154 EXPECT_EQ(3, JSIterator::IteratorValue(thread, keyResult2)->GetInt()); in HWTEST_F_L0() 156 EXPECT_EQ(4, JSIterator::IteratorValue(thread, keyResult3)->GetInt()); in HWTEST_F_L0() 161 EXPECT_EQ(5, JSIterator::IteratorValue(thread, keyResult4)->GetInt()); in HWTEST_F_L0()
|
D | js_set_test.cpp | 132 EXPECT_EQ(0, JSIterator::IteratorValue(thread, keyResult0)->GetInt()); in HWTEST_F_L0() 133 EXPECT_EQ(0, JSIterator::IteratorValue(thread, valueResult0)->GetInt()); in HWTEST_F_L0() 136 EXPECT_EQ(1, JSIterator::IteratorValue(thread, keyResult1)->GetInt()); in HWTEST_F_L0() 144 EXPECT_EQ(3, JSIterator::IteratorValue(thread, keyResult2)->GetInt()); in HWTEST_F_L0() 146 EXPECT_EQ(4, JSIterator::IteratorValue(thread, keyResult3)->GetInt()); in HWTEST_F_L0() 150 EXPECT_EQ(5, JSIterator::IteratorValue(thread, keyResult4)->GetInt()); in HWTEST_F_L0()
|
D | js_api_linked_list_test.cpp | 135 EXPECT_EQ(list->Get(0).GetInt(), 1); in HWTEST_F_L0() 140 EXPECT_EQ(list->GetFirst().GetInt(), 2); in HWTEST_F_L0() 155 EXPECT_EQ(toor->GetLast().GetInt(), 9); in HWTEST_F_L0() 156 EXPECT_EQ(toor->GetFirst().GetInt(), 1); in HWTEST_F_L0() 161 EXPECT_EQ(toor->GetLast().GetInt(), 99); in HWTEST_F_L0() 166 EXPECT_EQ(toor->GetFirst().GetInt(), 100); in HWTEST_F_L0() 175 EXPECT_EQ(toor->Get(5).GetInt(), 101); in HWTEST_F_L0() 190 EXPECT_EQ(toor->GetLast().GetInt(), 9); in HWTEST_F_L0() 191 EXPECT_EQ(toor->GetFirst().GetInt(), 1); in HWTEST_F_L0() 196 EXPECT_EQ(toor->GetIndexOf(value.GetTaggedValue()).GetInt(), 9); in HWTEST_F_L0() [all …]
|
D | js_api_list_test.cpp | 146 EXPECT_EQ(toor->GetLast().GetInt(), 9); in HWTEST_F_L0() 147 EXPECT_EQ(toor->GetFirst().GetInt(), 1); in HWTEST_F_L0() 152 EXPECT_EQ(toor->GetLast().GetInt(), 99); in HWTEST_F_L0() 157 EXPECT_EQ(toor->GetFirst().GetInt(), 100); in HWTEST_F_L0() 166 EXPECT_EQ(toor->Get(5).GetInt(), 101); in HWTEST_F_L0() 181 EXPECT_EQ(toor->GetLast().GetInt(), 9); in HWTEST_F_L0() 182 EXPECT_EQ(toor->GetFirst().GetInt(), 1); in HWTEST_F_L0() 187 EXPECT_EQ(toor->GetIndexOf(value.GetTaggedValue()).GetInt(), 9); in HWTEST_F_L0() 188 EXPECT_EQ(toor->GetLastIndexOf(value.GetTaggedValue()).GetInt(), 9); in HWTEST_F_L0() 193 EXPECT_EQ(toor->GetIndexOf(value.GetTaggedValue()).GetInt(), 0); in HWTEST_F_L0() [all …]
|
D | js_iterator_test.cpp | 85 EXPECT_EQ(resultValue->GetInt(), 1); in HWTEST_F_L0() 116 EXPECT_EQ(resultValue->GetInt(), 1); in HWTEST_F_L0() 128 EXPECT_EQ(JSIterator::IteratorValue(thread, result1)->GetInt(), 1); in HWTEST_F_L0() 130 EXPECT_EQ(JSIterator::IteratorValue(thread, result2)->GetInt(), 2); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/ |
D | tagged_list.cpp | 77 int srcDataIndex = GetElement(ELEMENTS_START_INDEX + NEXT_PTR_OFFSET).GetInt(); in CopyArray() 86 srcDataIndex = GetElement(srcDataIndex + NEXT_PTR_OFFSET).GetInt(); in CopyArray() 115 dataIndex = GetElement(dataIndex + NEXT_PTR_OFFSET).GetInt(); in Clear() 161 int nextDataIndex = GetElement(dataIndex + NEXT_PTR_OFFSET).GetInt(); in FindIndexByElement() 166 nextDataIndex = GetElement(nextDataIndex + NEXT_PTR_OFFSET).GetInt(); in FindIndexByElement() 179 int nextIndex = GetElement(dataIndex + NEXT_PTR_OFFSET).GetInt(); in FindLastIndexByElement() 188 nextIndex = GetElement(nextIndex + NEXT_PTR_OFFSET).GetInt(); in FindLastIndexByElement() 198 int nextIndex = GetElement(dataIndex + NEXT_PTR_OFFSET).GetInt(); in FindDataIndexByNodeIndex() 205 nextIndex = GetElement(nextIndex + NEXT_PTR_OFFSET).GetInt(); in FindDataIndexByNodeIndex() 217 nextIndex = GetElement(nextIndex + NEXT_PTR_OFFSET).GetInt(); in MapNodeIndexToDataIndex() [all …]
|
D | js_tagged_number.h | 57 return GetInt(); in ToInt32() 95 int64_t a0 = GetInt(); 96 int64_t a1 = number.GetInt(); 109 int64_t intA = GetInt(); 110 int64_t intB = number.GetInt(); 126 int32_t value = GetInt(); 138 int32_t value = GetInt();
|
D | tagged_tree.h | 64 return Get(NUMBER_OF_ELEMENTS_INDEX).GetInt(); in NumberOfElements() 69 return Get(NUMBER_OF_HOLE_ENTRIES_INDEX).GetInt(); in NumberOfDeletedElements() 74 return Get(CAPACITY_INDEX).GetInt(); in Capacity() 99 return color.GetInt() == TreeColor::RED ? TreeColor::RED : TreeColor::BLACK; in GetColor() 129 return Get(ROOT_INDEX).GetInt(); in GetRootEntries() 164 compareResult = callResult.GetInt(); in EntryCompare() 206 entry = child.GetInt(); in GetMinimum() 216 entry = child.GetInt(); in GetMaximum() 226 return parent.GetInt(); in GetParent() 254 return child.IsHole() ? -1 : child.GetInt(); in GetLeftChildIndex() [all …]
|
D | js_number_format.h | 148 int minimumIntegerDigits = formatter->GetMinimumIntegerDigits().GetInt(); in SetICUFormatterDigitOptions() 153 int minimumSignificantDigits = formatter->GetMinimumSignificantDigits().GetInt(); in SetICUFormatterDigitOptions() 154 int maximumSignificantDigits = formatter->GetMaximumSignificantDigits().GetInt(); in SetICUFormatterDigitOptions() 155 int minimumFractionDigits = formatter->GetMinimumFractionDigits().GetInt(); in SetICUFormatterDigitOptions() 156 int maximumFractionDigits = formatter->GetMaximumFractionDigits().GetInt(); in SetICUFormatterDigitOptions()
|
/arkcompiler/ets_runtime/ecmascript/ic/ |
D | ic_binary_op.h | 40 BinaryType addType = static_cast<BinaryType>(argType.GetInt()); in AddWithTSType() 44 double a0Double = left.IsInt() ? left.GetInt() : left.GetDouble(); in AddWithTSType() 45 double a1Double = right.IsInt() ? right.GetInt() : right.GetDouble(); in AddWithTSType() 110 BinaryType subType = static_cast<BinaryType>(argType.GetInt()); in SubWithTSType() 114 double a0Double = left.IsInt() ? left.GetInt() : left.GetDouble(); in SubWithTSType() 115 double a1Double = right.IsInt() ? right.GetInt() : right.GetDouble(); in SubWithTSType() 143 BinaryType mulType = static_cast<BinaryType>(argType.GetInt()); in MulWithTSType() 178 BinaryType divType = static_cast<BinaryType>(argType.GetInt()); in DivWithTSType() 182 double dLeft = left.IsInt() ? left.GetInt() : left.GetDouble(); in DivWithTSType() 183 double dRight = right.IsInt() ? right.GetInt() : right.GetDouble(); in DivWithTSType() [all …]
|
/arkcompiler/ets_runtime/ecmascript/base/tests/ |
D | builtins_base_test.cpp | 73 EXPECT_EQ(resultArray->Get(0).GetInt(), 1); in HWTEST_F_L0() 74 EXPECT_EQ(resultArray->Get(1).GetInt(), 2); in HWTEST_F_L0() 75 EXPECT_EQ(resultArray->Get(2).GetInt(), 3); in HWTEST_F_L0() 102 EXPECT_EQ(BuiltinsBase::GetCallArg(ecmaRuntimeCallInfo1, 0)->GetInt(), 0); in HWTEST_F_L0() 103 EXPECT_EQ(BuiltinsBase::GetCallArg(ecmaRuntimeCallInfo1, 1)->GetInt(), 1); in HWTEST_F_L0() 104 EXPECT_EQ(BuiltinsBase::GetCallArg(ecmaRuntimeCallInfo1, 2)->GetInt(), 3); in HWTEST_F_L0() 148 EXPECT_EQ(BuiltinsBase::GetTaggedInt(1).GetInt(), 1); in HWTEST_F_L0() 149 EXPECT_EQ(BuiltinsBase::GetTaggedInt(9).GetInt(), 9); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
D | builtins_typedarray_test.cpp | 107 [[maybe_unused]] int aaa = GetCallArg(argv, 0)->GetInt(); in TestEveryFunc() 109 if (GetCallArg(argv, 0)->GetInt() > 10) { in TestEveryFunc() 122 if (GetCallArg(argv, 0)->GetInt() > 10) { in TestFilterFunc() 131 int accumulator = GetCallArg(argv, 0)->GetInt(); in TestMapFunc() 141 if (GetCallArg(argv, 0)->GetInt() > 10) { in TestFindFunc() 153 if (GetCallArg(argv, 0)->GetInt() > 10) { in TestFindIndexFunc() 165 if (GetCallArg(argv, 0)->GetInt() < GetCallArg(argv, 1)->GetInt()) { in TestToSortedFunc() 177 if (GetCallArg(argv, 0)->GetInt() > 20) { in TestFindLastFunc() 189 if (GetCallArg(argv, 0)->GetInt() > 20) { in TestFindLastIndexFunc() 198 int accumulator = GetCallArg(argv, 0)->GetInt(); in TestReduceFunc() [all …]
|
D | builtins_array_test.cpp | 105 if (GetCallArg(argv, 0)->GetInt() > 10) { // 10 : test case in TestEveryFunc() 114 int accumulator = GetCallArg(argv, 0)->GetInt(); in TestMapFunc() 121 int accumulator = GetCallArg(argv, 0)->GetInt(); in TestFlatMapFunc() 131 EXPECT_EQ(property.GetValue()->GetInt(), 0); in TestFlatMapFunc() 145 if (GetCallArg(argv, 0)->GetInt() > 10) { in TestFindFunc() 157 if (GetCallArg(argv, 0)->GetInt() > 10) { in TestFindIndexFunc() 169 if (GetCallArg(argv, 0)->GetInt() > 20) { in TestFindLastFunc() 181 if (GetCallArg(argv, 0)->GetInt() > 20) { in TestFindLastIndexFunc() 190 int accumulator = GetCallArg(argv, 0)->GetInt(); in TestReduceFunc() 191 accumulator = accumulator + GetCallArg(argv, 1)->GetInt(); in TestReduceFunc() [all …]
|
/arkcompiler/toolchain/tooling/test/ |
D | debugger_events_test.cpp | 83 ASSERT_EQ(locationJson->GetInt("lineNumber", &lineNumber), Result::SUCCESS); in HWTEST_F_L0() 186 ASSERT_EQ(params->GetInt("startLine", &tmpInt), Result::SUCCESS); in HWTEST_F_L0() 189 ASSERT_EQ(params->GetInt("startColumn", &tmpInt), Result::SUCCESS); in HWTEST_F_L0() 192 ASSERT_EQ(params->GetInt("endLine", &tmpInt), Result::SUCCESS); in HWTEST_F_L0() 195 ASSERT_EQ(params->GetInt("endColumn", &tmpInt), Result::SUCCESS); in HWTEST_F_L0() 198 ASSERT_EQ(params->GetInt("executionContextId", &tmpInt), Result::SUCCESS); in HWTEST_F_L0() 214 ASSERT_EQ(params->GetInt("length", &tmpInt), Result::SUCCESS); in HWTEST_F_L0() 217 ASSERT_EQ(params->GetInt("codeOffset", &tmpInt), Result::SUCCESS); in HWTEST_F_L0() 263 ASSERT_EQ(params->GetInt("startLine", &tmpInt), Result::SUCCESS); in HWTEST_F_L0() 266 ASSERT_EQ(params->GetInt("startColumn", &tmpInt), Result::SUCCESS); in HWTEST_F_L0() [all …]
|
/arkcompiler/ets_runtime/ecmascript/stubs/ |
D | runtime_stubs.cpp | 115 auto attr = static_cast<PropertyAttributes>(argAttr.GetInt()); in DEF_RUNTIME_STUBS() 116 auto result = JSObject::AddElementInternal(thread, receiver, argIndex.GetInt(), value, attr); in DEF_RUNTIME_STUBS() 152 auto size = static_cast<size_t>(allocateSize.GetInt()); in DEF_RUNTIME_STUBS() 192 int key = argKey.GetInt(); in DEF_RUNTIME_STUBS() 194 uint32_t result = panda::GetHash32(pkey, len.GetInt()); in DEF_RUNTIME_STUBS() 264 return factory->NewTaggedArray(length.GetInt()).GetTaggedValue().GetRawData(); in DEF_RUNTIME_STUBS() 275 …return factory->CopyArray(array, length.GetInt(), capacity.GetInt()).GetTaggedValue().GetRawData(); in DEF_RUNTIME_STUBS() 283 …int position = GetArg(argv, argc, 2).GetInt(); // 2: means the second para… in DEF_RUNTIME_STUBS() 303 PropertyAttributes propAttr(attr.GetInt()); in DEF_RUNTIME_STUBS() 327 PropertyAttributes propAttr(attr.GetInt()); in DEF_RUNTIME_STUBS() [all …]
|
/arkcompiler/toolchain/tooling/test/testcases/ |
D | js_heapprofiler_dump_test.h | 52 ret = params->GetInt("done", &done); in JsHeapProfilerDumpTest() 58 ret = params->GetInt("total", &total); in JsHeapProfilerDumpTest() 75 ret = params->GetInt("done", &done); in JsHeapProfilerDumpTest() 81 ret = params->GetInt("total", &total); in JsHeapProfilerDumpTest()
|
/arkcompiler/ets_runtime/ecmascript/interpreter/ |
D | fast_runtime_stub-inl.h | 51 double dLeft = left.IsInt() ? left.GetInt() : left.GetDouble(); in FastDiv() 52 double dRight = right.IsInt() ? right.GetInt() : right.GetDouble(); in FastDiv() 70 int iRight = right.GetInt(); in FastMod() 71 int iLeft = left.GetInt(); in FastMod() 77 double dLeft = left.IsInt() ? left.GetInt() : left.GetDouble(); in FastMod() 78 double dRight = right.IsInt() ? right.GetInt() : right.GetDouble(); in FastMod() 127 double dLeft = left.IsInt() ? left.GetInt() : left.GetDouble(); in FastStrictEqual() 128 double dRight = right.IsInt() ? right.GetInt() : right.GetDouble(); in FastStrictEqual()
|
/arkcompiler/ets_runtime/ecmascript/ts_types/ |
D | ts_type_accessor.cpp | 73 if (!parameterTypes->Get(i).GetInt()) { in UpdateForEachCBPara() 82 TSFieldAttributes fieldAttr(static_cast<uint32_t>(attribute.GetInt())); in MarkInitialized() 97 TSFieldAttributes fieldAttr(static_cast<uint32_t>(attribute.GetInt())); in IsPropertyInitialized() 110 TSFieldAttributes fieldAttr(static_cast<uint32_t>(attribute.GetInt())); in GetInitializedProperties() 165 auto gt = GlobalTSTypeRef(layout->GetTypeId(index).GetInt()); in GetAccessorGT()
|
/arkcompiler/ets_runtime/ecmascript/regexp/tests/ |
D | regexp_test.cpp | 105 uint32_t startIndex = regExpGlobalResult->GetStartOfCaptureIndex(index).GetInt(); in GetSubString() 106 uint32_t len = regExpGlobalResult->GetEndOfCaptureIndex(index).GetInt() - startIndex; in GetSubString() 669 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 1U); in HWTEST_F_L0() 692 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 10U); in HWTEST_F_L0() 703 ASSERT_EQ(regExpGlobalResult->GetEndOfCaptureIndex(4).GetInt(), -1); in HWTEST_F_L0() 704 ASSERT_EQ(regExpGlobalResult->GetEndOfCaptureIndex(5).GetInt(), -1); in HWTEST_F_L0() 705 ASSERT_EQ(regExpGlobalResult->GetEndOfCaptureIndex(6).GetInt(), -1); in HWTEST_F_L0() 706 ASSERT_EQ(regExpGlobalResult->GetEndOfCaptureIndex(7).GetInt(), -1); in HWTEST_F_L0() 707 ASSERT_EQ(regExpGlobalResult->GetEndOfCaptureIndex(8).GetInt(), -1); in HWTEST_F_L0() 708 ASSERT_EQ(regExpGlobalResult->GetEndOfCaptureIndex(9).GetInt(), -1); in HWTEST_F_L0() [all …]
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_regexp.h | 190 return Get(CACHE_HIT_COUNT_INDEX).GetInt(); in GetHitCount() 200 return Get(CACHE_COUNT_INDEX).GetInt(); in GetCacheCount() 226 return Get(LARGE_STRING_COUNT_INDEX).GetInt(); in GetLargeStrCount() 231 return Get(CONFLICT_COUNT_INDEX).GetInt(); in GetConflictCount() 236 return Get(STRING_LENGTH_THRESHOLD_INDEX).GetInt(); in GetStrLenThreshold() 246 return Get(CACHE_LENGTH_INDEX).GetInt(); in GetCacheLength() 303 int captureNum = globalTable->GetTotalCaptureCounts().GetInt(); in GetCapture() 305 … uint32_t startIndex = static_cast<uint32_t>(globalTable->GetStartOfCaptureIndex(N).GetInt()); in GetCapture() 306 … uint32_t endIndex = static_cast<uint32_t>(globalTable->GetEndOfCaptureIndex(N).GetInt()); in GetCapture()
|