Home
last modified time | relevance | path

Searched refs:res (Results 1 – 25 of 298) sorted by relevance

12345678910>>...12

/arkcompiler/ets_runtime/test/moduletest/container/
Dcontainer_linked_list.js40 let res = true
43 res = false
46 map.set("test linkedlist removeByIndex:", res)
50 res = true
53 res = false
56 map.set("test linkedlist remove:", res)
63 res = true
66 res = false
69 map.set("test linkedlist insert:", res)
73 res = true
[all …]
Dcontainer_list.js55 let res = true
58 res = false
61 map.set("test list removeByIndex:", res)
65 res = true
68 res = false
72 map.set("test list remove:", res)
77 res = true
80 res = false
83 map.set("test list replaceAllElements:", res)
88 res = true
[all …]
Dcontainer_lightweightset.js26 let res = new Map(); variable
30 res.set("test isEmpty:", proxy.isEmpty());
35 res.set("test has 1:", proxy.has(1));
36 res.set("test has 2:", proxy.has(2));
37 res.set("test has 3:", proxy.has(3));
39 res.set("test has 4:", proxy.has(4) == false);
42res.set("test values:", iteratorValues1.next().value == 1 && iteratorValues1.next().value == 2 &&
48 res.set("test entries1:", iteratorEntries1.next().value != undefined);
49 res.set("itest entries2:", iteratorEntries1.next().value == undefined);
58 res.set("test forin", true);
[all …]
Dcontainer_arraylist.js50 let res = true variable
58 res = false
61 map.set("test arraylist add:", res)
69 res = true
72 res = false
76 map.set("test arraylist convertToArray:", res)
79 res = true
82 res = false
85 map.set("test arraylist clone:", res)
89 res = true
[all …]
Dcontainer_treemap.js26 let res = new Map(); variable
32 res.set("test get:", map.length == 2 && map.get("a") == "aa" && map.get("b") == "bb");
34 res.set("test hasKey and hasValue:", map.hasKey("a") && map.hasKey("b") && map.hasValue("aa") &&
39res.set("test getFirstKey and getLastKey:", map.getFirstKey() == "a" && map.getLastKey() == "c");
41res.set("test getLowerKey and getHigherKey:", map.getLowerKey("b") == "a" && map.getLowerKey("a") …
45 res.set("test keys:", iteratorKey.next().value == "a" && iteratorKey.next().value == "b" &&
49res.set("test values:", iteratorValues.next().value == "aa" && iteratorValues.next().value == "bb"…
55 res.set("test entries1:", iteratorEntries.next().value != undefined);
56 res.set("itest entries2:", iteratorEntries.next().value == undefined);
62 res.set(arr[i], item[1] == arr[i]);
[all …]
Dcontainer_vector.js33 let res = vector.toString(); variable
34 map.set("test add and toString:", res);
86 res = true
94 res = false
97 map.set("test vector add:", res)
109 res = true
112 res = false
115 map.set("test vector convertToArray:", res)
118 res = true
121 res = false
[all …]
Dcontainer_lightweightmap.js26 let res = new Map(); variable
30 res.set("test isEmpty:", proxy.isEmpty());
35 res.set("test get:", proxy.length == 2 && proxy.get("a") == "aa" && proxy.get("b") == "bb");
37res.set("test hasKey and hasValue:", proxy.hasKey("a") && proxy.hasKey("b") && proxy.hasValue("aa"…
42res.set("test getIndexOfKey and getIndexOfValue:", proxy.getIndexOfKey("a") === 0 && proxy.getInde…
44 res.set("test getKeyAt:", proxy.getKeyAt(1) == "b");
48 res.set("test keys:", iteratorKey1.next().value == "a" && iteratorKey1.next().value == "b" &&
52res.set("test values:", iteratorValues1.next().value == "aa" && iteratorValues1.next().value == "b…
58 res.set("test entries1:", iteratorEntries1.next().value != undefined);
59 res.set("itest entries2:", iteratorEntries1.next().value == undefined);
[all …]
Dcontainer_hashmap.js26 let res = new Map(); variable
30 res.set("test isEmpty ture:", map.isEmpty() == true)
36 res.set("test isEmpty false:", map.isEmpty() == false)
38 res.set("test get:", map.length == 2 && map.get("a") == "aa" && map.get("b") == "bb");
40 res.set("test hasKey and hasValue:", map.hasKey("a") && map.hasKey("b") && map.hasValue("aa") &&
46 res.set("test keys:", iteratorKey.next().value == "a" && iteratorKey.next().value == "b" &&
50res.set("test values:", iteratorValues.next().value == "aa" && iteratorValues.next().value == "bb"…
56 res.set("test entries1:", iteratorEntries.next().value != undefined);
57 res.set("itest entries2:", iteratorEntries.next().value == undefined);
63 res.set(arr[i], item[1] == arr[i]);
[all …]
Dcontainer_plainarray.js30 let res = true variable
40 res = false
43 map.set("test plainarray add:", res)
52 res = true
55 res = false
58 map.set("test plainarray clone:", res)
66 res = true
69 res = false
78 res = true
82 map.set("test plainarray forEach:", res)
[all …]
Dcontainer_deque.js27 let res = true variable
37 res = true
40 res = false
43 map.set("test deque insertFront:", res)
50 res = true
53 res = false
56 map.set("test deque insertEnd:", res)
58 res = true
61 res = false
65 map.set("test deque forEach:", res)
[all …]
Dcontainer_queue.js27 let res = true variable
35 res = true
38 res = false
41 map.set("test queue add:", res)
43 res = true
46 res = false
50 map.set("test queue forEach:", res)
52 res = true
56 res = false
60 map.set("test queue for of:", res)
[all …]
Dcontainer_stack.js27 let res = true variable
42 res = true
45 res = false
48 map.set("test stack add:", res)
50 res = true
53 res = false
57 map.set("test stack forEach:", res)
59 res = true
63 res = false
67 map.set("test stack for of:", res)
[all …]
/arkcompiler/runtime_core/compiler/tests/
Daot_test.cpp70 …auto res = os::exec::Exec(aotdump_path_.c_str(), "--show-code=disasm", "--output-file", tmpfile.Ge… in RunAotdump() local
72 ASSERT_TRUE(res) << "aotdump failed with error: " << res.Error().ToString(); in RunAotdump()
73 ASSERT_EQ(res.Value(), 0) << "aotdump return error code: " << res.Value(); in RunAotdump()
102 auto res = parser.Parse(source); in TEST_F() local
103 ASSERT_TRUE(res); in TEST_F()
104 ASSERT_TRUE(pandasm::AsmEmitter::Emit(panda_fname.GetFileName(), res.Value())); in TEST_F()
110 …auto res = os::exec::Exec(paoc_path_.c_str(), "--paoc-panda-files", panda_fname.GetFileName(), "--… in TEST_F() local
113 ASSERT_TRUE(res) << "paoc failed with error: " << res.Error().ToString(); in TEST_F()
114 ASSERT_EQ(res.Value(), 0) << "Aot compiler failed with code " << res.Value(); in TEST_F()
139 auto res = parser.Parse(source); in TEST_F() local
[all …]
Dclass_hash_table_test.cpp106 auto res = parser.Parse(GetSourceCode()); in TEST_F() local
107 ASSERT_TRUE(res); in TEST_F()
108 ASSERT_TRUE(pandasm::AsmEmitter::Emit(panda_fname.GetFileName(), res.Value())); in TEST_F()
145 auto res = parser.Parse(source); in TEST_F() local
146 ASSERT_TRUE(res); in TEST_F()
147 ASSERT_TRUE(pandasm::AsmEmitter::Emit(panda_fname1.GetFileName(), res.Value())); in TEST_F()
164 auto res = parser.Parse(source); in TEST_F() local
165 ASSERT_TRUE(res); in TEST_F()
166 ASSERT_TRUE(pandasm::AsmEmitter::Emit(panda_fname2.GetFileName(), res.Value())); in TEST_F()
170 …auto res = os::exec::Exec(GetPaocFile(), "--paoc-panda-files", panda_fname2.GetFileName(), "--pand… in TEST_F() local
[all …]
/arkcompiler/runtime_core/bytecode_optimizer/
Dbytecode_optimizer_isapi.rb58 res = "switch (#{expr}) {\n"
60 res << c.encode
62 res << "default:
66 res
70 res = "switch (#{expr}) {\n"
72 res << c.check_width
74 res << "default:
78 res
84 res = types.map { |type| "case #{type}:" }.join("\n")
85 res << " {\n"
[all …]
/arkcompiler/ets_runtime/ecmascript/interpreter/
Dinterpreter-inl.h804 JSTaggedValue res = state->acc; in GeneratorReEnterInterpreter() local
807 return res; in GeneratorReEnterInterpreter()
837 …auto res = thread->GetCurrentEcmaContext()->ExecuteAot(method->GetNumArgs(), args.data(), prevFp, … in GeneratorReEnterAot() local
841 return res; in GeneratorReEnterAot()
1427 JSTaggedValue res = SlowRuntimeStub::CallSpread(thread, func, obj, array); in RunInternal() local
1429 SET_ACC(res); in RunInternal()
1444 JSTaggedValue res = SlowRuntimeStub::CallSpread(thread, func, obj, array); in RunInternal() local
1446 SET_ACC(res); in RunInternal()
1593 JSTaggedValue res = SlowRuntimeStub::GetUnmapedArgs(thread, sp, actualNumArgs, startIdx); in RunInternal() local
1594 INTERPRETER_RETURN_IF_ABRUPT(res); in RunInternal()
[all …]
Dinterpreter_assembly.cpp246 JSTaggedValue res = JSFunction::InvokeOptimizedEntrypoint(thread, func, info); in Execute() local
254 return JSTaggedValue(res); in Execute()
636 JSTaggedValue res = SlowRuntimeStub::GetUnmapedArgs(thread, sp, actualNumArgs, startIdx); in HandleGetunmappedargs() local
637 INTERPRETER_RETURN_IF_ABRUPT(res); in HandleGetunmappedargs()
638 SET_ACC(res); in HandleGetunmappedargs()
648 JSTaggedValue res = SlowRuntimeStub::AsyncFunctionEnter(thread); in HandleAsyncfunctionenter() local
649 INTERPRETER_RETURN_IF_ABRUPT(res); in HandleAsyncfunctionenter()
650 SET_ACC(res); in HandleAsyncfunctionenter()
666 JSTaggedValue res = SlowRuntimeStub::ToNumber(thread, value); in HandleTonumberImm8() local
667 INTERPRETER_RETURN_IF_ABRUPT(res); in HandleTonumberImm8()
[all …]
/arkcompiler/runtime_core/libpandabase/tests/
Dmutex_test.cpp65 bool res = arg->rwlock->TryReadLock(); in TestThread3() local
66 if (res) { in TestThread3()
71 res = arg->rwlock->TryWriteLock(); in TestThread3()
72 if (res) { in TestThread3()
83 bool res = arg->lock->TryLockWithSpinning(); in TestThread4() local
84 if (res) { in TestThread4()
102 size_t res; variable
104 ThreadRWLockArgs arg = {rwlock, &res};
123 ASSERT_EQ(res, N);
130 size_t res = 0; variable
[all …]
Dutf_test.cpp31 const std::vector<uint16_t> res {0x0}; variable
32 std::vector<uint16_t> out(res.size());
34 EXPECT_EQ(out, res);
40 const std::vector<uint16_t> res {0x7f}; variable
41 std::vector<uint16_t> out(res.size());
43 EXPECT_EQ(out, res);
49 const std::vector<uint16_t> res {0xa7, 0x33}; variable
50 std::vector<uint16_t> out(res.size());
52 EXPECT_EQ(out, res);
58 const std::vector<uint16_t> res {0xffc3, 0x33}; variable
[all …]
/arkcompiler/ets_runtime/ecmascript/jspandafile/tests/
Dquick_fix_test.cpp70 auto res = JSNApi::LoadPatch(instance, patchFileName, baseFileName); in HWTEST_F_L0() local
71 EXPECT_TRUE(res == PatchErrorCode::SUCCESS); in HWTEST_F_L0()
77 res = JSNApi::UnloadPatch(instance, patchFileName); in HWTEST_F_L0()
78 EXPECT_TRUE(res == PatchErrorCode::SUCCESS); in HWTEST_F_L0()
93 auto res = JSNApi::LoadPatch(instance, patchFileName, baseFileName); in HWTEST_F_L0() local
94 EXPECT_TRUE(res == PatchErrorCode::SUCCESS); in HWTEST_F_L0()
100 res = JSNApi::UnloadPatch(instance, patchFileName); in HWTEST_F_L0()
101 EXPECT_TRUE(res == PatchErrorCode::SUCCESS); in HWTEST_F_L0()
120 auto res = JSNApi::LoadPatch(instance, patchFileName1, baseFileName1); in HWTEST_F_L0() local
121 EXPECT_TRUE(res == PatchErrorCode::SUCCESS); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/mem/
Dc_string.cpp73 CString res; in ConvertToString() local
74 res.reserve(sp.size()); in ConvertToString()
83 res.push_back(c); in ConvertToString()
86 return res; in ConvertToString()
92 CString res; in ConvertToString() local
93 res.reserve(str.size()); in ConvertToString()
95 res.push_back(c); in ConvertToString()
97 return res; in ConvertToString()
125 std::string res; in ConvertToStdString() local
126 res.reserve(str.size()); in ConvertToStdString()
[all …]
/arkcompiler/runtime_core/platforms/unix/libpandabase/
Derror.cpp38 std::string res; in ToString() local
39 res.resize(BUFSIZE); in ToString()
40 strerror_r(err, res.data(), res.size()); in ToString()
43 std::string res = strerror_r(err, buf.data(), buf.size()); in ToString() local
45 return res; in ToString()
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/
Dbuiltins_stubs.cpp148 DEFVARIABLE(res, VariableType::JS_ANY(), DoubleToTaggedDoublePtr(Double(base::NAN_VALUE))); in DECLARE_BUILTINS()
200 res = IntToTaggedPtr(stringBuilder.StringAt(*thisFlat, *pos)); in DECLARE_BUILTINS()
210 res = CallSlowPath(nativeCode, glue, thisValue, numArgs, func, newTarget); in DECLARE_BUILTINS()
214 Return(*res); in DECLARE_BUILTINS()
220 DEFVARIABLE(res, VariableType::JS_ANY(), IntToTaggedPtr(Int32(-1))); in DECLARE_BUILTINS()
306 res = IntToTaggedPtr(resPos); in DECLARE_BUILTINS()
318 res = CallSlowPath(nativeCode, glue, thisValue, numArgs, func, newTarget, name.c_str()); in DECLARE_BUILTINS()
322 Return(*res); in DECLARE_BUILTINS()
328 DEFVARIABLE(res, VariableType::JS_ANY(), IntToTaggedPtr(Int32(-1))); in DECLARE_BUILTINS()
469 res = stringBuilder.FastSubString(glue, *thisFlat, *from, len); in DECLARE_BUILTINS()
[all …]
/arkcompiler/runtime_core/platforms/windows/libpandabase/
Dfile.h46 auto res = _read(fd_, buf, n); in Read() local
47 if (res < 0) { in Read()
50 return {static_cast<size_t>(res)}; in Read()
55 auto res = Read(buf, n); in ReadAll() local
56 if (res) { in ReadAll()
57 return res.Value() == n; in ReadAll()
65 auto res = _write(fd_, buf, n); in Write() local
66 if (res < 0) { in Write()
69 return {static_cast<size_t>(res)}; in Write()
74 auto res = Write(buf, n); in WriteAll() local
[all …]
/arkcompiler/ets_runtime/test/aottest/early_elimination/
DMayAccessOneMemory.ts18 let res:Float64Array = new Float64Array([0,0,0]) variable
20 res[i % arraySize] = arr[i % 3];
21 res[i % arraySize] = arr[i % 3];
26 res[i % arraySize] = arr2[i % 3];
27 res[i % arraySize] = arr2[i % 3];

12345678910>>...12