Lines Matching defs:toor

49         JSHandle<JSAPIStack> toor(thread, CreateStack());
53 JSTaggedValue result = JSAPIStack::Push(thread, toor, value);
56 EXPECT_EQ(toor->Search(value), static_cast<int>(i));
58 EXPECT_EQ(toor->Peek(), value.GetTaggedValue());
59 EXPECT_EQ(toor->Empty(), false);
62 return toor;
78 JSHandle<JSAPIStack> toor(thread, CreateStack());
81 EXPECT_EQ(toor->Peek(), JSTaggedValue::Undefined());
87 JSTaggedValue result = JSAPIStack::Push(thread, toor, value);
89 EXPECT_EQ(toor->Peek(), value.GetTaggedValue());
91 EXPECT_EQ(static_cast<uint32_t>(toor->GetTop() + 1), NODE_NUMBERS);
93 toor->Dump();
102 JSHandle<JSAPIStack> toor(thread, CreateStack());
105 EXPECT_EQ(toor->Pop(), JSTaggedValue::Undefined());
111 JSTaggedValue result = JSAPIStack::Push(thread, toor, value);
113 EXPECT_EQ(toor->Peek(), value.GetTaggedValue());
119 JSTaggedValue gValue = toor->Pop();
123 toor->Dump();
131 auto toor = SearchAndEmptyCommon(value, myValue, NODE_NUMBERS);
138 toor->Pop();
140 EXPECT_EQ(toor->Empty(), true);
144 toor->Dump();
153 auto toor = SearchAndEmptyCommon(value, myValue, NODE_NUMBERS, true);
155 EXPECT_EQ(toor->Search(value), -1);
157 toor->Dump();
165 JSHandle<JSAPIStack> toor(thread, CreateStack());
171 JSAPIStack::Push(thread, toor, value);
176 EXPECT_TRUE(JSAPIStack::GetOwnProperty(thread, toor, stackKey1));
179 EXPECT_FALSE(JSAPIStack::GetOwnProperty(thread, toor, stackKey2));
184 EXPECT_FALSE(JSAPIStack::GetOwnProperty(thread, toor, undefined));
196 JSHandle<JSAPIStack> toor(thread, CreateStack());
200 JSAPIStack::Push(thread, toor, value);
204 OperationResult getPropertyRes = JSAPIStack::GetProperty(thread, toor, key);
210 OperationResult getPropertyRes = JSAPIStack::GetProperty(thread, toor, key);
215 OperationResult getPropertyRes1 = JSAPIStack::GetProperty(thread, toor, key1);
228 JSHandle<JSAPIStack> toor(thread, CreateStack());
234 toor->Set(thread, key->GetInt(), value.GetTaggedValue()));
238 JSAPIStack::Push(thread, toor, value);
243 bool setPropertyRes = JSAPIStack::SetProperty(thread, toor, key, value);
248 EXPECT_FALSE(JSAPIStack::SetProperty(thread, toor, key, value));
250 EXPECT_FALSE(JSAPIStack::SetProperty(thread, toor, key1, value));
261 JSHandle<JSAPIStack> toor(thread, CreateStack());
264 EXPECT_FALSE(toor->Has(JSTaggedValue(0)));
269 JSAPIStack::Push(thread, toor, value);
272 EXPECT_TRUE(toor->Has(JSTaggedValue(i)));
274 EXPECT_FALSE(toor->Has(JSTaggedValue(elementsNums)));
285 JSHandle<JSAPIStack> toor(thread, CreateStack());
289 JSAPIStack::Push(thread, toor, value);
291 JSHandle<TaggedArray> keyArray = JSAPIStack::OwnKeys(thread, toor);