Home
last modified time | relevance | path

Searched refs:JSAPIStack (Results 1 – 25 of 26) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/js_api/
Djs_api_stack.cpp25 bool JSAPIStack::Empty() in Empty()
33 JSTaggedValue JSAPIStack::Push(JSThread *thread, const JSHandle<JSAPIStack> &stack, in Push()
45 JSTaggedValue JSAPIStack::Peek() in Peek()
57 JSTaggedValue JSAPIStack::Pop() in Pop()
69 int JSAPIStack::Search(const JSHandle<JSTaggedValue> &value) in Search()
82 JSHandle<TaggedArray> JSAPIStack::GrowCapacity(const JSThread *thread, const JSHandle<JSAPIStack> &… in GrowCapacity()
99 JSTaggedValue JSAPIStack::Get(const uint32_t index) in Get()
106 JSTaggedValue JSAPIStack::Set(JSThread *thread, const uint32_t index, JSTaggedValue value) in Set()
113 bool JSAPIStack::Has(JSTaggedValue value) const in Has()
129 JSHandle<TaggedArray> JSAPIStack::OwnKeys(JSThread *thread, const JSHandle<JSAPIStack> &obj) in OwnKeys()
[all …]
Djs_api_stack.h23 class JSAPIStack : public JSObject {
26 static JSAPIStack *Cast(TaggedObject *object) in Cast()
29 return static_cast<JSAPIStack *>(object); in Cast()
32 static JSTaggedValue Push(JSThread *thread, const JSHandle<JSAPIStack> &stack,
35 static JSHandle<TaggedArray> OwnKeys(JSThread *thread, const JSHandle<JSAPIStack> &obj);
37 static JSHandle<TaggedArray> OwnEnumKeys(JSThread *thread, const JSHandle<JSAPIStack> &obj);
39 …static bool GetOwnProperty(JSThread *thread, const JSHandle<JSAPIStack> &obj, const JSHandle<JSTag…
40 static OperationResult GetProperty(JSThread *thread, const JSHandle<JSAPIStack> &obj,
42 static bool SetProperty(JSThread *thread, const JSHandle<JSAPIStack> &obj,
76 … static JSHandle<TaggedArray> GrowCapacity(const JSThread *thread, const JSHandle<JSAPIStack> &obj,
Djs_api_stack_iterator.cpp52 uint32_t length = static_cast<uint32_t>((JSHandle<JSAPIStack>::Cast(stack))->GetSize() + 1); in Next()
63 JSHandle<JSTaggedValue> value(thread, JSHandle<JSAPIStack>::Cast(stack)->Get(index)); in Next()
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_api_stack_test.cpp64 JSAPIStack *CreateStack() in CreateStack()
84 …JSHandle<JSAPIStack> stack(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), co… in CreateStack()
92 JSAPIStack *stack = CreateStack(); in HWTEST_F_L0()
102 JSHandle<JSAPIStack> toor(thread, CreateStack()); in HWTEST_F_L0()
111 JSTaggedValue result = JSAPIStack::Push(thread, toor, value); in HWTEST_F_L0()
126 JSHandle<JSAPIStack> toor(thread, CreateStack()); in HWTEST_F_L0()
135 JSTaggedValue result = JSAPIStack::Push(thread, toor, value); in HWTEST_F_L0()
156 JSHandle<JSAPIStack> toor(thread, CreateStack()); in HWTEST_F_L0()
162 JSTaggedValue result = JSAPIStack::Push(thread, toor, value); in HWTEST_F_L0()
187 JSHandle<JSAPIStack> toor(thread, CreateStack()); in HWTEST_F_L0()
[all …]
Djs_api_stack_iterator_test.cpp53 static JSHandle<JSAPIStack> CreateJSApiStack(JSThread *thread) in CreateJSApiStack()
73 …JSHandle<JSAPIStack> jsStack(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), … in CreateJSApiStack()
90 JSHandle<JSAPIStack> jsStack = CreateJSApiStack(thread); in HWTEST_F_L0()
99 JSAPIStack::Push(thread, jsStack, value); in HWTEST_F_L0()
131 JSHandle<JSAPIStack> jsStack = CreateJSApiStack(thread); in HWTEST_F_L0()
173 JSHandle<JSAPIStack> jsStack1 = CreateJSApiStack(thread); in HWTEST_F_L0()
174 JSHandle<JSAPIStack> jsStack2 = CreateJSApiStack(thread); in HWTEST_F_L0()
183 JSAPIStack::Push(thread, jsStack1, value); in HWTEST_F_L0()
189 JSAPIStack::Push(thread, jsStack2, value); in HWTEST_F_L0()
195 …JSHandle<JSAPIStack> jsAPIStackTo(thread, JSAPIStack::Cast(stackIterator->GetIteratedStack().GetTa… in HWTEST_F_L0()
[all …]
Ddump_test.cpp299 static JSHandle<JSAPIStack> NewJSAPIStack(ObjectFactory *factory, JSHandle<JSTaggedValue> proto) in NewJSAPIStack()
301 …JSHandle<JSHClass> stackClass = factory->NewEcmaHClass(JSAPIStack::SIZE, JSType::JS_API_STACK, pro… in NewJSAPIStack()
302 …JSHandle<JSAPIStack> jsStack = JSHandle<JSAPIStack>::Cast(factory->NewJSObjectWithInit(stackClass)… in NewJSAPIStack()
1200 CHECK_DUMP_FIELDS(JSObject::SIZE, JSAPIStack::SIZE, 1U); in HWTEST_F_L0()
1201 JSHandle<JSAPIStack> jsStack = NewJSAPIStack(factory, proto); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/containers/
Dcontainers_stack.cpp47 JSHandle<JSAPIStack> stack = JSHandle<JSAPIStack>::Cast(obj); in StackConstructor()
70 JSHandle<JSAPIStack> stack = JSHandle<JSAPIStack>::Cast(self); in IsEmpty()
95 JSTaggedValue jsValue = JSAPIStack::Push(thread, JSHandle<JSAPIStack>::Cast(self), value); in Push()
117 JSHandle<JSAPIStack> stack = JSHandle<JSAPIStack>::Cast(self); in Peek()
142 JSHandle<JSAPIStack> stack = JSHandle<JSAPIStack>::Cast(self); in Locate()
165 JSHandle<JSAPIStack> stack = JSHandle<JSAPIStack>::Cast(self); in Pop()
188 JSHandle<JSAPIStack> stack = JSHandle<JSAPIStack>::Cast(thisHandle); in ForEach()
235 …JSHandle<JSAPIStackIterator> iter(factory->NewJSAPIStackIterator(JSHandle<JSAPIStack>::Cast(self))… in Iterator()
257 uint32_t len = (JSHandle<JSAPIStack>::Cast(self))->GetSize(); in GetLength()
Dcontainers_private.cpp718 factory->NewEcmaHClass(JSAPIStack::SIZE, JSType::JS_API_STACK, stackFuncPrototypeValue); in InitializeStack()
/arkcompiler/ets_runtime/ecmascript/containers/tests/
Dcontainers_stack_test.cpp68 … TaggedArray *elements = TaggedArray::Cast(JSAPIStack::Cast(stack.GetTaggedValue(). in TestForEachFunc()
99 JSHandle<JSAPIStack> CreateJSAPIStack(JSTaggedValue compare = JSTaggedValue::Undefined()) in CreateJSAPIStack()
112 JSHandle<JSAPIStack> stack(thread, result); in CreateJSAPIStack()
132 JSHandle<JSAPIStack> stack(thread, result); in HWTEST_F_L0()
145 JSHandle<JSAPIStack> stack = CreateJSAPIStack(); in HWTEST_F_L0()
163 JSHandle<JSAPIStack> stack = CreateJSAPIStack(); in HWTEST_F_L0()
192 JSHandle<JSAPIStack> stack = CreateJSAPIStack(); in HWTEST_F_L0()
227 JSHandle<JSAPIStack> stack = CreateJSAPIStack(); in HWTEST_F_L0()
245 JSHandle<JSAPIStack> stack = CreateJSAPIStack(); in HWTEST_F_L0()
257 JSHandle<JSAPIStack> dlist = CreateJSAPIStack(); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/test/fuzztest/containersstackforeach_fuzzer/
Dcontainersstackforeach_fuzzer.cpp72 …JSHandle<JSAPIStack> CreateJSAPIStack(JSThread *thread, JSTaggedValue compare = JSTaggedValue::Und… in CreateJSAPIStack()
82 JSHandle<JSAPIStack> stack(thread, result); in CreateJSAPIStack()
105 JSHandle<JSAPIStack> stack = CreateJSAPIStack(thread); in ContainersStackForEachFuzzTest()
115 JSHandle<JSAPIStack> dlist = CreateJSAPIStack(thread); in ContainersStackForEachFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containersstack_fuzzer/
Dcontainersstack_fuzzer.cpp67 …JSHandle<JSAPIStack> CreateJSAPIStack(JSThread *thread, JSTaggedValue compare = JSTaggedValue::Und… in CreateJSAPIStack()
77 JSHandle<JSAPIStack> stack(thread, result); in CreateJSAPIStack()
99 JSHandle<JSAPIStack> stack = CreateJSAPIStack(thread); in ContainersStackFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containersstackpush_fuzzer/
Dcontainersstackpush_fuzzer.cpp67 …JSHandle<JSAPIStack> CreateJSAPIStack(JSThread *thread, JSTaggedValue compare = JSTaggedValue::Und… in CreateJSAPIStack()
77 JSHandle<JSAPIStack> stack(thread, result); in CreateJSAPIStack()
100 JSHandle<JSAPIStack> stack = CreateJSAPIStack(thread); in ContainersStackPushFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containersstackiterator_fuzzer/
Dcontainersstackiterator_fuzzer.cpp67 …JSHandle<JSAPIStack> CreateJSAPIStack(JSThread *thread, JSTaggedValue compare = JSTaggedValue::Und… in CreateJSAPIStack()
77 JSHandle<JSAPIStack> stack(thread, result); in CreateJSAPIStack()
100 JSHandle<JSAPIStack> stack = CreateJSAPIStack(thread); in ContainersStackIteratorFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containersstacklocate_fuzzer/
Dcontainersstacklocate_fuzzer.cpp67 …JSHandle<JSAPIStack> CreateJSAPIStack(JSThread *thread, JSTaggedValue compare = JSTaggedValue::Und… in CreateJSAPIStack()
77 JSHandle<JSAPIStack> stack(thread, result); in CreateJSAPIStack()
100 JSHandle<JSAPIStack> stack = CreateJSAPIStack(thread); in ContainersStackLocateFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containersstackgetlength_fuzzer/
Dcontainersstackgetlength_fuzzer.cpp67 …JSHandle<JSAPIStack> CreateJSAPIStack(JSThread *thread, JSTaggedValue compare = JSTaggedValue::Und… in CreateJSAPIStack()
77 JSHandle<JSAPIStack> stack(thread, result); in CreateJSAPIStack()
100 JSHandle<JSAPIStack> stack = CreateJSAPIStack(thread); in ContainersStackGetLengthFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containersstackpeek_fuzzer/
Dcontainersstackpeek_fuzzer.cpp67 …JSHandle<JSAPIStack> CreateJSAPIStack(JSThread *thread, JSTaggedValue compare = JSTaggedValue::Und… in CreateJSAPIStack()
77 JSHandle<JSAPIStack> stack(thread, result); in CreateJSAPIStack()
100 JSHandle<JSAPIStack> stack = CreateJSAPIStack(thread); in ContainersStackPeekFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containersstackpop_fuzzer/
Dcontainersstackpop_fuzzer.cpp67 …JSHandle<JSAPIStack> CreateJSAPIStack(JSThread *thread, JSTaggedValue compare = JSTaggedValue::Und… in CreateJSAPIStack()
77 JSHandle<JSAPIStack> stack(thread, result); in CreateJSAPIStack()
100 JSHandle<JSAPIStack> stack = CreateJSAPIStack(thread); in ContainersStackPopFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containersstackisempty_fuzzer/
Dcontainersstackisempty_fuzzer.cpp67 …JSHandle<JSAPIStack> CreateJSAPIStack(JSThread *thread, JSTaggedValue compare = JSTaggedValue::Und… in CreateJSAPIStack()
77 JSHandle<JSAPIStack> stack(thread, result); in CreateJSAPIStack()
99 JSHandle<JSAPIStack> stack = CreateJSAPIStack(thread); in ContainersStackFuzzIsEmptyTest()
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/
Dcontainers_stack_stub_builder.h32 GateRef top = Load(VariableType::INT32(), obj, IntPtr(JSAPIStack::TOP_OFFSET)); in GetSize()
/arkcompiler/ets_runtime/ecmascript/
Djs_tagged_value.cpp1052 return JSHandle<JSAPIStack>::Cast(obj)->Has(key.GetTaggedValue()); in HasContainerProperty()
1099 return JSAPIStack::OwnKeys(thread, JSHandle<JSAPIStack>::Cast(obj)); in GetOwnContainerPropertyKeys()
1180 return JSAPIStack::GetOwnProperty(thread, JSHandle<JSAPIStack>::Cast(obj), key); in GetContainerProperty()
1243 return JSAPIStack::GetProperty(thread, JSHandle<JSAPIStack>::Cast(obj), key); in GetJSAPIProperty()
1285 return JSAPIStack::SetProperty(thread, JSHandle<JSAPIStack>::Cast(obj), key, value); in SetJSAPIProperty()
Dobject_fast_operator-inl.h674 res = JSAPIStack::Cast(receiver.GetTaggedObject())->Get(index); in GetContainerProperty()
715 res = JSAPIStack::Cast(receiver.GetTaggedObject())->Set(thread, index, value); in SetContainerProperty()
Dobject_factory.h127 class JSAPIStack; variable
573 JSHandle<JSAPIStackIterator> NewJSAPIStackIterator(const JSHandle<JSAPIStack> &stack);
Ddump.cpp1064 JSAPIStack::Cast(obj)->Dump(os); in DumpObject()
2206 void JSAPIStack::Dump(std::ostream &os) const in Dump()
2214 JSAPIStack *stack = JSAPIStack::Cast(GetIteratedStack().GetTaggedObject()); in Dump()
4041 JSAPIStack::Cast(obj)->DumpForSnapshot(vec); in DumpObject()
4624 void JSAPIStack::DumpForSnapshot(std::vector<std::pair<CString, JSTaggedValue>> &vec) const in DumpForSnapshot()
4631 JSAPIStack *stack = JSAPIStack::Cast(GetIteratedStack().GetTaggedObject()); in DumpForSnapshot()
/arkcompiler/ets_runtime/ecmascript/mem/
Dobject_xray.h558 JSAPIStack::Cast(object)->VisitRangeSlot(visitor); in VisitObjectBody()
/arkcompiler/ets_runtime/ecmascript/debugger/
Ddebugger_api.cpp59 using ecmascript::JSAPIStack;
1109 JSHandle<JSAPIStack> stack(JSNApiHelper::ToJSHandle(value)); in GetStackValue()

12