/arkcompiler/ets_runtime/ecmascript/base/tests/ |
D | json_parser_test.cpp | 151 JSTaggedValue resultValue(static_cast<JSTaggedType>(result->GetRawData())); in HWTEST_F_L0() local 152 EXPECT_TRUE(resultValue.IsECMAObject()); in HWTEST_F_L0() 153 JSHandle<JSObject> valueHandle(thread, resultValue); in HWTEST_F_L0() 177 JSTaggedValue resultValue(static_cast<JSTaggedType>(result->GetRawData())); in HWTEST_F_L0() local 178 EXPECT_TRUE(resultValue.IsECMAObject()); in HWTEST_F_L0() 180 JSHandle<JSObject> valueHandle(thread, resultValue); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | js_iterator_test.cpp | 84 JSHandle<JSTaggedValue> resultValue(JSObject::GetProperty(thread, result, valueStr).GetValue()); in HWTEST_F_L0() local 85 EXPECT_EQ(resultValue->GetInt(), 1); in HWTEST_F_L0() 115 JSHandle<JSTaggedValue> resultValue(JSIterator::IteratorValue(thread, result)); in HWTEST_F_L0() local 116 EXPECT_EQ(resultValue->GetInt(), 1); in HWTEST_F_L0()
|
D | js_regexp_iterator_test.cpp | 124 JSHandle<JSTaggedValue> resultValue(thread, JSTaggedValue(i + 1)); in HWTEST_F_L0() local 126 …ory->ConcatFromString(JSHandle<EcmaString>(barZero), JSTaggedValue::ToString(thread, resultValue)); in HWTEST_F_L0()
|
D | js_api_vector_iterator_test.cpp | 168 std::string resultValue = vectorValue + std::to_string(i); in HWTEST_F_L0() local 170 value.Update(factory->NewFromStdString(resultValue).GetTaggedValue()); in HWTEST_F_L0()
|
D | js_api_queue_iterator_test.cpp | 116 std::string resultValue = queueValue + std::to_string(i); in HWTEST_F_L0() local 118 value.Update(factory->NewFromStdString(resultValue).GetTaggedValue()); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/ic/tests/ |
D | ic_runtime_stub_test.cpp | 151 … JSTaggedValue resultValue = ICRuntimeStub::CheckPolyHClass(handleWeakCacheValue, handleObjClass); in HWTEST_F_L0() local 152 EXPECT_TRUE(resultValue.IsPropertyBox()); in HWTEST_F_L0() 173 JSTaggedValue resultValue = in HWTEST_F_L0() local 176 EXPECT_EQ(resultValue.GetInt(), 2); in HWTEST_F_L0() 196 JSTaggedValue resultValue = in HWTEST_F_L0() local 199 EXPECT_TRUE(resultValue.IsString()); in HWTEST_F_L0() 200 JSHandle<EcmaString> handleEcmaStrTo(JSHandle<JSTaggedValue>(thread, resultValue)); in HWTEST_F_L0() 265 …JSTaggedValue resultValue = ICRuntimeStub::TryLoadICByValue(thread, handleReceiver, JSTaggedValue(… in HWTEST_F_L0() local 267 EXPECT_EQ(resultValue.GetInt(), handleStoreVal.GetInt()); in HWTEST_F_L0() 297 …JSTaggedValue resultValue = ICRuntimeStub::TryLoadICByValue(thread, handleReceiver, JSTaggedValue(… in HWTEST_F_L0() local [all …]
|
/arkcompiler/ets_runtime/ecmascript/ |
D | js_function.cpp | 395 JSTaggedValue resultValue; in InvokeOptimizedEntrypoint() local 409 … resultValue = thread->GetEcmaVM()->FastCallAot(info->GetArgsNumber(), stackArgs + 1, prevFp); in InvokeOptimizedEntrypoint() 411 resultValue = thread->GetCurrentEcmaContext()->ExecuteAot(info->GetArgsNumber(), in InvokeOptimizedEntrypoint() 417 return resultValue; in InvokeOptimizedEntrypoint() 443 JSTaggedValue resultValue; in ConstructInternal() local 447 resultValue = InvokeOptimizedEntrypoint(thread, func, info); in ConstructInternal() 454 resultValue = EcmaInterpreter::Execute(info); in ConstructInternal() 458 if (resultValue.IsECMAObject()) { in ConstructInternal() 459 return resultValue; in ConstructInternal() 468 return resultValue; in ConstructInternal() [all …]
|
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
D | builtins_reflect_test.cpp | 271 JSHandle<JSTaggedValue> resultValue(thread, result); in HWTEST_F_L0() local 272 ASSERT_EQ(resultValue->GetDouble(), 101.5); in HWTEST_F_L0() 304 …JSHandle<JSTaggedValue> resultValue = JSObject::GetProperty(thread, resultObj, valueKey).GetValue(… in HWTEST_F_L0() local 305 ASSERT_EQ(resultValue->GetInt(), 102); in HWTEST_F_L0()
|
D | builtins_object_test.cpp | 831 …JSHandle<EcmaString> resultValue = thread->GetEcmaVM()->GetFactory()->NewFromASCII("[object Object… in HWTEST_F_L0() local 843 …ASSERT_EQ(EcmaStringAccessor::Compare(instance, resultValue, JSHandle<EcmaString>(thread, result))… in HWTEST_F_L0() 852 …JSHandle<EcmaString> resultValue = thread->GetEcmaVM()->GetFactory()->NewFromASCII("[object Object… in HWTEST_F_L0() local 862 …ASSERT_EQ(EcmaStringAccessor::Compare(instance, resultValue, JSHandle<EcmaString>(thread, result))… in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_regexp.cpp | 696 auto resultValue = factory->NewFromStdString(resultString); in RegExpReplaceFast() local 699 JSHandle<JSTaggedValue>(resultValue), in RegExpReplaceFast() 703 return resultValue.GetTaggedValue(); in RegExpReplaceFast() 1007 JSHandle<EcmaString> resultValue = factory->NewFromStdString(accumulatedResult); in Replace() local 1010 JSHandle<JSTaggedValue>(resultValue), in Replace() 1014 return resultValue.GetTaggedValue(); in Replace() 1021 JSHandle<EcmaString> resultValue = factory->NewFromStdString(accumulatedResult); in Replace() local 1024 JSHandle<JSTaggedValue>(resultValue), in Replace() 1028 return resultValue.GetTaggedValue(); in Replace()
|
D | builtins_promise.cpp | 145 JSTaggedValue resultValue = PerformPromiseAll(thread, itRecord, ctor, capa); in All() local 146 JSHandle<CompletionRecord> result = JSHandle<CompletionRecord>(thread, resultValue); in All()
|
/arkcompiler/ets_runtime/ecmascript/napi/ |
D | jsnapi.cpp | 1612 JSHandle<JSTaggedValue> resultValue(obj); in Freeze() local 1613 return scope.Escape(JSNApiHelper::ToLocal<JSValueRef>(resultValue)); in Freeze() 1637 JSHandle<JSTaggedValue> resultValue(obj); in Seal() local 1638 return scope.Escape(JSNApiHelper::ToLocal<JSValueRef>(resultValue)); in Seal() 1741 JSHandle<JSTaggedValue> resultValue(thread, result); in Call() local 1746 return scope.Escape(JSNApiHelper::ToLocal<JSValueRef>(resultValue)); in Call() 1773 JSHandle<JSTaggedValue> resultValue(thread, result); in Constructor() local 1774 return JSNApiHelper::ToLocal<JSValueRef>(resultValue); in Constructor()
|
/arkcompiler/ets_runtime/ecmascript/stubs/ |
D | runtime_stubs-inl.h | 2487 JSTaggedValue resultValue; in RuntimeOptConstructGeneric() local 2500 resultValue = thread->GetEcmaVM()->FastCallAot(size, values.data(), prevFp); in RuntimeOptConstructGeneric() 2502 …resultValue = thread->GetCurrentEcmaContext()->ExecuteAot(size, values.data(), prevFp, needPushUnd… in RuntimeOptConstructGeneric() 2510 resultValue = EcmaInterpreter::Execute(info); in RuntimeOptConstructGeneric() 2514 if (resultValue.IsECMAObject()) { in RuntimeOptConstructGeneric() 2515 return resultValue; in RuntimeOptConstructGeneric() 2521 if (!resultValue.IsUndefined()) { in RuntimeOptConstructGeneric()
|