Home
last modified time | relevance | path

Searched refs:handler (Results 1 - 25 of 139) sorted by relevance

123456

/arkcompiler/ets_runtime/ecmascript/ic/
H A Dic_handler.h65 static_assert(NeedSkipInPGODumpBit::END_BIT <= MAX_BIT_SIZE, "load handler overflow");
76 static_assert(SFieldTypeBit::END_BIT <= MAX_BIT_SIZE, "store handler overflow");
83 static inline bool IsAccessor(Type handler) in IsAccessor() argument
85 return AccessorBit::Get(handler); in IsAccessor()
88 static inline SharedFieldType GetFieldType(Type handler) in GetFieldType() argument
90 return static_cast<SharedFieldType>(SFieldTypeBit::Get(handler)); in GetFieldType()
93 static inline bool IsNonExist(Type handler) in IsNonExist() argument
95 return GetKind(handler) == HandlerKind::NON_EXIST; in IsNonExist()
98 static inline bool IsField(Type handler) in IsField() argument
100 return GetKind(handler) in IsField()
103 IsNonSharedStoreField(Type handler) IsNonSharedStoreField() argument
108 IsStoreShared(Type handler) IsStoreShared() argument
113 ClearSharedStoreKind(Type &handler) ClearSharedStoreKind() argument
118 IsStoreOutOfBounds(Type handler) IsStoreOutOfBounds() argument
123 ClearStoreOutOfBounds(Type &handler) ClearStoreOutOfBounds() argument
128 IsString(Type handler) IsString() argument
133 IsNumber(Type handler) IsNumber() argument
138 IsStringLength(Type handler) IsStringLength() argument
143 IsElement(Type handler) IsElement() argument
148 IsNormalElement(Type handler) IsNormalElement() argument
153 IsStringElement(Type handler) IsStringElement() argument
158 IsTypedArrayElement(Type handler) IsTypedArrayElement() argument
163 IsDictionary(Type handler) IsDictionary() argument
168 IsInlinedProps(Type handler) IsInlinedProps() argument
173 GetKind(Type handler) GetKind() argument
178 IsJSArray(Type handler) IsJSArray() argument
183 NeedSkipInPGODump(Type handler) NeedSkipInPGODump() argument
188 GetOffset(Type handler) GetOffset() argument
193 IsOnHeap(Type handler) IsOnHeap() argument
203 uint64_t handler = 0; LoadProperty() local
260 uint64_t handler = 0; LoadElement() local
283 uint64_t handler = 0; LoadStringElement() local
291 uint64_t handler = 0; LoadTypedArrayElement() local
302 uint64_t handler = 0; StoreProperty() local
346 StoreElement(const JSThread *thread, JSHandle<JSTaggedValue> receiver, uint64_t handler) StoreElement() argument
369 JSHandle<TransitionHandler> handler = factory->NewTransitionHandler(); StoreTransition() local
400 JSHandle<PrototypeHandler> handler = factory->NewPrototypeHandler(); LoadPrototype() local
432 JSHandle<PrototypeHandler> handler = factory->NewPrototypeHandler(); StorePrototype() local
486 JSHandle<TransWithProtoHandler> handler = factory->NewTransWithProtoHandler(); StoreTransition() local
520 JSHandle<StoreTSHandler> handler = factory->NewStoreTSHandler(); StoreAOT() local
[all...]
H A Dic_runtime_stub-inl.h44 JSTaggedValue handler = profileTypeInfo->Get(slotId); in LoadGlobalICByName() local
45 if (handler.IsHeapObject()) { in LoadGlobalICByName()
46 auto result = LoadGlobal(handler); in LoadGlobalICByName()
60 JSTaggedValue handler = profileTypeInfo->Get(slotId); in StoreGlobalICByName() local
61 if (handler.IsHeapObject()) { in StoreGlobalICByName()
62 auto result = StoreGlobal(thread, value, handler); in StoreGlobalICByName()
221 JSTaggedValue value, JSTaggedValue handler) in StoreICWithHandler()
224 if (handler.IsInt()) { in StoreICWithHandler()
225 auto handlerInfo = JSTaggedValue::UnwrapToUint64(handler); in StoreICWithHandler()
246 if (handler in StoreICWithHandler()
219 StoreICWithHandler(JSThread *thread, JSTaggedValue receiver, JSTaggedValue holder, JSTaggedValue value, JSTaggedValue handler) StoreICWithHandler() argument
265 StorePrototype(JSThread *thread, JSTaggedValue receiver, JSTaggedValue value, JSTaggedValue handler) StorePrototype() argument
287 StoreWithTS(JSThread *thread, JSTaggedValue receiver, JSTaggedValue value, JSTaggedValue handler) StoreWithTS() argument
311 StoreWithTransition(JSThread *thread, JSObject *receiver, JSTaggedValue value, JSTaggedValue handler, bool withPrototype) StoreWithTransition() argument
366 StoreTransWithProto(JSThread *thread, JSObject *receiver, JSTaggedValue value, JSTaggedValue handler) StoreTransWithProto() argument
384 StoreField(JSThread *thread, JSObject *receiver, JSTaggedValue value, uint64_t handler) StoreField() argument
406 LoadGlobal(JSTaggedValue handler) LoadGlobal() argument
418 StoreGlobal(JSThread *thread, JSTaggedValue value, JSTaggedValue handler) StoreGlobal() argument
431 LoadPrototype(JSThread *thread, JSTaggedValue receiver, JSTaggedValue handler) LoadPrototype() argument
449 LoadICWithHandler(JSThread *thread, JSTaggedValue receiver, JSTaggedValue holder, JSTaggedValue handler) LoadICWithHandler() argument
479 LoadICWithElementHandler(JSThread *thread, JSTaggedValue receiver, JSTaggedValue handler, JSTaggedValue key) LoadICWithElementHandler() argument
548 StoreElement(JSThread *thread, JSObject *receiver, JSTaggedValue key, JSTaggedValue value, JSTaggedValue handler) StoreElement() argument
[all...]
H A Dic_runtime_stub.h44 JSTaggedValue handler);
46 JSTaggedValue handler, JSTaggedValue key);
48 JSTaggedValue value, JSTaggedValue handler);
50 JSTaggedValue handler, bool withPrototype = false);
52 JSTaggedValue value, JSTaggedValue handler);
54 JSTaggedValue value, JSTaggedValue handler);
56 JSTaggedValue value, JSTaggedValue handler);
58 static inline void StoreField(JSThread *thread, JSObject *receiver, JSTaggedValue value, uint64_t handler);
59 static inline JSTaggedValue LoadGlobal(JSTaggedValue handler);
60 static inline JSTaggedValue StoreGlobal(JSThread *thread, JSTaggedValue value, JSTaggedValue handler);
[all...]
H A Dprofile_type_info.cpp19 void ProfileTypeAccessor::AddElementHandler(JSHandle<JSTaggedValue> hclass, JSHandle<JSTaggedValue> handler) const in AddElementHandler()
27 index + 1, handler.GetTaggedValue()); in AddElementHandler()
33 index + 1, handler.GetTaggedValue()); in AddElementHandler()
36 AddHandlerWithoutKey(hclass, handler); in AddElementHandler()
39 void ProfileTypeAccessor::AddWithoutKeyPoly(JSHandle<JSTaggedValue> hclass, JSHandle<JSTaggedValue> handler, in AddWithoutKeyPoly() argument
58 newArr->Set(thread_, i + 1, handler.GetTaggedValue()); in AddWithoutKeyPoly()
62 void ProfileTypeAccessor::AddHandlerWithoutKey(JSHandle<JSTaggedValue> hclass, JSHandle<JSTaggedValue> handler) const in AddHandlerWithoutKey()
67 profileTypeInfo_->SetIcSlot(thread_, index, handler.GetTaggedValue()); in AddHandlerWithoutKey()
74 index + 1, handler.GetTaggedValue()); in AddHandlerWithoutKey()
78 AddWithoutKeyPoly(hclass, handler, inde in AddHandlerWithoutKey()
[all...]
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/
H A Dinspector_server.cpp50 void InspectorServer::OnValidate(std::function<void()> &&handler) in OnValidate() argument
52 server_.OnValidate([handler = std::move(handler)]() { in OnValidate()
54 handler(); in OnValidate()
62 void InspectorServer::OnOpen(std::function<void()> &&handler) in OnOpen() argument
64 server_.OnOpen([this, handler = std::move(handler)]() { in OnOpen()
74 handler(); in OnOpen()
78 void InspectorServer::OnFail(std::function<void()> &&handler) in OnFail() argument
80 server_.OnFail([handler in OnFail()
217 OnCallDebuggerContinueToLocation( std::function<void(PtThread, std::string_view, size_t)> &&handler) OnCallDebuggerContinueToLocation() argument
234 OnCallDebuggerGetPossibleBreakpoints( std::function<std::set<size_t>(std::string_view, size_t, size_t, bool)> &&handler) OnCallDebuggerGetPossibleBreakpoints() argument
275 OnCallDebuggerGetScriptSource(std::function<std::string(std::string_view)> &&handler) OnCallDebuggerGetScriptSource() argument
288 OnCallDebuggerPause(std::function<void(PtThread)> &&handler) OnCallDebuggerPause() argument
296 OnCallDebuggerRemoveBreakpoint(std::function<void(PtThread, BreakpointId)> &&handler) OnCallDebuggerRemoveBreakpoint() argument
308 OnCallDebuggerRestartFrame(std::function<void(PtThread, FrameId)> &&handler) OnCallDebuggerRestartFrame() argument
328 OnCallDebuggerResume(std::function<void(PtThread)> &&handler) OnCallDebuggerResume() argument
336 OnCallDebuggerSetBreakpoint( std::function<std::optional<BreakpointId>(PtThread, const std::function<bool(std::string_view)> &, size_t, std::set<std::string_view> &)> &&handler) OnCallDebuggerSetBreakpoint() argument
368 OnCallDebuggerSetBreakpointByUrl( std::function<std::optional<BreakpointId>(PtThread, const std::function<bool(std::string_view)> &, size_t, std::set<std::string_view> &)> &&handler) OnCallDebuggerSetBreakpointByUrl() argument
411 OnCallDebuggerSetBreakpointsActive(std::function<void(PtThread, bool)> &&handler) OnCallDebuggerSetBreakpointsActive() argument
430 OnCallDebuggerSetPauseOnExceptions( std::function<void(PtThread, PauseOnExceptionsState)> &&handler) OnCallDebuggerSetPauseOnExceptions() argument
463 OnCallDebuggerStepInto(std::function<void(PtThread)> &&handler) OnCallDebuggerStepInto() argument
471 OnCallDebuggerStepOut(std::function<void(PtThread)> &&handler) OnCallDebuggerStepOut() argument
479 OnCallDebuggerStepOver(std::function<void(PtThread)> &&handler) OnCallDebuggerStepOver() argument
487 OnCallRuntimeEnable(std::function<void(PtThread)> &&handler) OnCallRuntimeEnable() argument
495 OnCallRuntimeGetProperties( std::function<std::vector<PropertyDescriptor>(PtThread, RemoteObjectId, bool)> &&handler) OnCallRuntimeGetProperties() argument
523 OnCallRuntimeRunIfWaitingForDebugger(std::function<void(PtThread)> &&handler) OnCallRuntimeRunIfWaitingForDebugger() argument
532 OnCallRuntimeEvaluate(std::function<EvaluationResult(PtThread, const std::string &)> &&handler) OnCallRuntimeEvaluate() argument
[all...]
H A Dinspector_server.h57 void OnValidate(std::function<void()> &&handler);
58 void OnOpen(std::function<void()> &&handler);
59 void OnFail(std::function<void()> &&handler);
73 void OnCallDebuggerContinueToLocation(std::function<void(PtThread, std::string_view, size_t)> &&handler);
75 std::function<std::set<size_t>(std::string_view, size_t, size_t, bool)> &&handler);
76 void OnCallDebuggerGetScriptSource(std::function<std::string(std::string_view)> &&handler);
77 void OnCallDebuggerPause(std::function<void(PtThread)> &&handler);
78 void OnCallDebuggerRemoveBreakpoint(std::function<void(PtThread, BreakpointId)> &&handler);
79 void OnCallDebuggerRestartFrame(std::function<void(PtThread, FrameId)> &&handler);
80 void OnCallDebuggerResume(std::function<void(PtThread)> &&handler);
[all...]
/arkcompiler/toolchain/tooling/
H A Ddebugger_service.cpp31 ProtocolHandler *handler = vm->GetJsDebuggerManager()->GetDebuggerHandler(); in InitializeDebugger() local
32 if (handler != nullptr) { in InitializeDebugger()
45 ProtocolHandler *handler = vm->GetJsDebuggerManager()->GetDebuggerHandler(); in UninitializeDebugger() local
46 delete handler; in UninitializeDebugger()
56 ProtocolHandler *handler = vm->GetJsDebuggerManager()->GetDebuggerHandler(); in WaitForDebugger() local
57 if (LIKELY(handler != nullptr)) { in WaitForDebugger()
58 handler->WaitForDebugger(); in WaitForDebugger()
68 ProtocolHandler *handler = vm->GetJsDebuggerManager()->GetDebuggerHandler(); in OnMessage() local
69 if (LIKELY(handler != nullptr)) { in OnMessage()
70 handler in OnMessage()
80 ProtocolHandler *handler = vm->GetJsDebuggerManager()->GetDebuggerHandler(); ProcessMessage() local
92 ProtocolHandler *handler = vm->GetJsDebuggerManager()->GetDebuggerHandler(); GetDispatchStatus() local
[all...]
/arkcompiler/runtime_core/static_core/runtime/mem/
H A Dobject-references-iterator.h32 /// Iterates references in object and passes pointers of them to the handler
34 static bool Iterate(ObjectHeader *obj, Handler *handler, void *begin, void *end);
37 static bool IterateAndDiscoverReferences(GC *gc, ObjectHeader *obj, Handler *handler);
40 static bool IterateAndDiscoverReferences(GC *gc, ObjectHeader *obj, Handler *handler, void *begin, void *end);
44 static bool Iterate(Class *cls, ObjectHeader *obj, Handler *handler);
47 static bool Iterate(Class *cls, ObjectHeader *obj, Handler *handler, void *begin, void *end);
50 static bool IterateObjectReferences(ObjectHeader *object, Class *objClass, Handler *handler);
53 static bool IterateObjectReferences(ObjectHeader *object, Class *cls, Handler *handler, void *begin, void *end);
56 static bool IterateClassReferences(Class *cls, Handler *handler);
59 static bool IterateClassReferences(Class *cls, Handler *handler, voi
[all...]
H A Dobject-references-iterator-inl.h27 static bool Iterate(coretypes::Array *array, Handler *handler);
30 static bool Iterate(coretypes::Array *array, Handler *handler, void *begin, void *end);
34 bool ObjectArrayIterator::Iterate(coretypes::Array *array, Handler *handler) in Iterate() argument
42 [[maybe_unused]] auto cont = handler->ProcessObjectPointer(p); in Iterate()
54 bool ObjectArrayIterator::Iterate(coretypes::Array *array, Handler *handler, void *begin, void *end) in Iterate() argument
69 [[maybe_unused]] auto cont = handler->ProcessObjectPointer(p); in Iterate()
81 bool ObjectIterator<LANG_TYPE_STATIC>::Iterate(ObjectHeader *obj, Handler *handler, void *begin, void *end) in Iterate() argument
85 return Iterate<INTERRUPTIBLE>(cls, obj, handler, begin, end); in Iterate()
89 bool ObjectIterator<LANG_TYPE_STATIC>::IterateAndDiscoverReferences(GC *gc, ObjectHeader *obj, Handler *handler) in IterateAndDiscoverReferences() argument
96 cls, obj, [handler](voi in IterateAndDiscoverReferences()
104 IterateAndDiscoverReferences(GC *gc, ObjectHeader *obj, Handler *handler, void *begin, void *end) IterateAndDiscoverReferences() argument
120 Iterate(Class *cls, ObjectHeader *obj, Handler *handler) Iterate() argument
139 Iterate(Class *cls, ObjectHeader *obj, Handler *handler, void *begin, void *end) Iterate() argument
162 IterateClassReferences(Class *cls, Handler *handler) IterateClassReferences() argument
177 IterateClassReferences(Class *cls, Handler *handler, void *begin, void *end) IterateClassReferences() argument
192 IterateObjectReferences(ObjectHeader *object, Class *objClass, Handler *handler) IterateObjectReferences() argument
225 IterateObjectReferences(ObjectHeader *object, Class *cls, Handler *handler, void *begin, void *end) IterateObjectReferences() argument
255 IterateRange(ObjectPointerType *refStart, const ObjectPointerType *refEnd, Handler *handler) IterateRange() argument
271 IterateRange(ObjectPointerType *refStart, ObjectPointerType *refEnd, Handler *handler, void *begin, void *end) IterateRange() argument
291 Iterate(ObjectHeader *obj, Handler *handler, void *begin, void *end) Iterate() argument
299 IterateAndDiscoverReferences(GC *gc, ObjectHeader *obj, Handler *handler) IterateAndDiscoverReferences() argument
314 IterateAndDiscoverReferences(GC *gc, ObjectHeader *obj, Handler *handler, void *begin, void *end) IterateAndDiscoverReferences() argument
330 Iterate(HClass *cls, ObjectHeader *obj, Handler *handler) Iterate() argument
346 Iterate(HClass *cls, ObjectHeader *obj, Handler *handler, void *begin, void *end) Iterate() argument
364 IterateClassReferences(coretypes::DynClass *dynClass, Handler *handler) IterateClassReferences() argument
387 IterateClassReferences(coretypes::DynClass *dynClass, Handler *handler, void *begin, void *end) IterateClassReferences() argument
415 IterateObjectReferences(ObjectHeader *object, HClass *cls, Handler *handler) IterateObjectReferences() argument
443 IterateObjectReferences(ObjectHeader *object, HClass *cls, Handler *handler, void *begin, void *end) IterateObjectReferences() argument
[all...]
H A Dobject_helpers-inl.h35 bool GCStaticObjectHelpers::TraverseClass(Class *cls, Handler &handler) in TraverseClass() argument
55 [[maybe_unused]] bool res = handler(object, fieldObject, objOffset, isVolatile); in TraverseClass()
66 bool GCStaticObjectHelpers::TraverseObject(ObjectHeader *object, Class *cls, Handler &handler) in TraverseObject() argument
88 [[maybe_unused]] bool res = handler(object, fieldObject, offset, isVolatile); in TraverseObject()
104 Handler &handler) in TraverseArray()
127 [[maybe_unused]] bool res = handler(array, arrayElement, offset, false); in TraverseArray()
141 bool GCStaticObjectHelpers::TraverseAllObjectsWithInfo(ObjectHeader *objectHeader, Handler &handler, void *begin, in TraverseAllObjectsWithInfo() argument
148 return TraverseArray<INTERRUPTIBLE>(static_cast<coretypes::Array *>(objectHeader), cls, begin, end, handler); in TraverseAllObjectsWithInfo()
153 if (!TraverseClass<INTERRUPTIBLE>(objectCls, handler)) { in TraverseAllObjectsWithInfo()
158 return TraverseObject<INTERRUPTIBLE>(objectHeader, cls, handler); in TraverseAllObjectsWithInfo()
103 TraverseArray(coretypes::Array *array, [[maybe_unused]] Class *cls, void *begin, void *end, Handler &handler) TraverseArray() argument
167 TraverseClass(coretypes::DynClass *dynClass, Handler &handler) TraverseClass() argument
189 TraverseObject(ObjectHeader *object, HClass *cls, Handler &handler) TraverseObject() argument
218 TraverseArray(coretypes::Array *array, [[maybe_unused]] HClass *cls, void *begin, void *end, Handler &handler) TraverseArray() argument
255 TraverseAllObjectsWithInfo(ObjectHeader *objectHeader, Handler &handler, void *begin, void *end) TraverseAllObjectsWithInfo() argument
[all...]
H A Dobject_helpers.h116 * Traverse all kinds of object_header and call handler for each reference field.
117 * The handler accepts the object, the reference value, offset to the reference in the object and
118 * the flag whether the field is volatile. Stop traverse if handler return false for any field.
119 * INTERRUPTIBLE means that traverse over objects can be stopped (it is possible when handler may return false)
120 * This template is used to decrease possible performance influence of checking handler's returned value on GC pause
125 static bool TraverseAllObjectsWithInfo(ObjectHeader *object, Handler &handler, void *begin = ToVoidPtr(0),
138 static bool TraverseClass(Class *cls, Handler &handler);
140 static bool TraverseArray(coretypes::Array *array, Class *cls, void *begin, void *end, Handler &handler);
142 static bool TraverseObject(ObjectHeader *objectHeader, Class *cls, Handler &handler);
155 * Traverse all kinds of object_header and call handler fo
[all...]
/arkcompiler/toolchain/tooling/test/
H A Ddebugger_service_test.cpp55 ProtocolHandler *handler = ecmaVm->GetJsDebuggerManager()->GetDebuggerHandler(); in HWTEST_F_L0() local
56 ASSERT_TRUE(handler == nullptr); in HWTEST_F_L0()
58 handler = ecmaVm->GetJsDebuggerManager()->GetDebuggerHandler(); in HWTEST_F_L0()
59 ASSERT_TRUE(handler != nullptr); in HWTEST_F_L0()
61 ASSERT_TRUE(handler != nullptr); in HWTEST_F_L0()
64 ASSERT_TRUE(handler != nullptr); in HWTEST_F_L0()
71 ProtocolHandler *handler = ecmaVm->GetJsDebuggerManager()->GetDebuggerHandler(); in HWTEST_F_L0() local
72 ASSERT_TRUE(handler != nullptr); in HWTEST_F_L0()
74 handler = ecmaVm->GetJsDebuggerManager()->GetDebuggerHandler(); in HWTEST_F_L0()
75 ASSERT_TRUE(handler in HWTEST_F_L0()
83 ProtocolHandler *handler = ecmaVm->GetJsDebuggerManager()->GetDebuggerHandler(); HWTEST_F_L0() local
101 ProtocolHandler *handler = ecmaVm->GetJsDebuggerManager()->GetDebuggerHandler(); HWTEST_F_L0() local
108 ProtocolHandler *handler = ecmaVm->GetJsDebuggerManager()->GetDebuggerHandler(); HWTEST_F_L0() local
[all...]
/arkcompiler/runtime_core/static_core/verification/type/
H A Dtype_system.cpp47 Job::ErrorHandler handler;
48 auto *klass = service->GetClassLinker()->GetClass(descr, true, linkerCtx_, &handler);
72 Job::ErrorHandler handler; in DescriptorToClass() local
73 return service_->GetClassLinker()->GetClass(descr, true, linkerCtx_, &handler); in DescriptorToClass()
168 void TypeSystem::DisplayTypeSystem(std::function<void(PandaString const &)> const &handler) in DisplayTypeSystem() argument
170 handler("Classes:"); in DisplayTypeSystem()
171 DisplayClasses([&handler](auto const &name) { handler(name); }); in DisplayTypeSystem()
172 handler("Methods:"); in DisplayTypeSystem()
173 DisplayMethods([&handler](aut in DisplayTypeSystem()
195 DisplaySubtyping(std::function<void(PandaString const &, PandaString const &)> const &handler) DisplaySubtyping() argument
[all...]
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/connection/
H A Dserver_endpoint_base.h30 void OnValidate(std::function<void()> &&handler) override
32 onValidate_ = std::move(handler);
35 void OnOpen(std::function<void()> &&handler) override
37 onOpen_ = std::move(handler);
40 void OnFail(std::function<void()> &&handler) override
42 onFail_ = std::move(handler);
51 &&handler) override;
H A Dendpoint_base.cpp24 void EndpointBase::OnCall(const char *method, EndpointBase::MethodHandler &&handler) in OnCall() argument
27 methodHandlers_[method] = std::move(handler); in OnCall()
48 if (auto handler = methodHandlers_.find(*method); handler != methodHandlers_.end()) { in HandleMessage()
53 handler->second(sessionId != nullptr ? *sessionId : std::string(), in HandleMessage()
65 if (auto handler = resultHandlers_.extract(*id)) { in HandleMessage()
66 handler.mapped()(**result); in HandleMessage()
H A Dserver_endpoint_base.cpp28 const char *method, std::function<void(const std::string &, JsonObjectBuilder &, const JsonObject &)> &&handler) in OnCall()
30 EndpointBase::OnCall(method, [this, handler = std::move(handler)](auto &sessionId, auto id, auto &params) { in OnCall()
37 std::bind(std::ref(handler), std::cref(sessionId), // NOLINT(modernize-avoid-bind) in OnCall()
27 OnCall( const char *method, std::function<void(const std::string &, JsonObjectBuilder &, const JsonObject &)> &&handler) OnCall() argument
H A Dserver.h31 virtual void OnValidate(std::function<void()> &&handler) = 0;
32 virtual void OnOpen(std::function<void()> &&handler) = 0;
33 virtual void OnFail(std::function<void()> &&handler) = 0;
54 const JsonObject &params)> &&handler) = 0;
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/tests/
H A Dinspector_server.cpp37 void OnValidate([[maybe_unused]] std::function<void()> &&handler) override {};
38 void OnOpen([[maybe_unused]] std::function<void()> &&handler) override {};
39 void OnFail([[maybe_unused]] std::function<void()> &&handler) override {};
49 std::function<void(const std::string &, JsonObjectBuilder &, const JsonObject &)> &&handler) override
52 OnCallMock(tmp, std::move(handler));
61 std::function<void(const std::string &, JsonObjectBuilder &, const JsonObject &)> &&handler));
124 EXPECT_CALL(server1, OnCallMock("Debugger.enable", testing::_)).WillOnce([&](testing::Unused, auto handler) { in TEST_F()
127 handler(g_sessionId, res, empty); in TEST_F()
134 static auto g_simpleHandler = []([[maybe_unused]] auto unused, auto handler) {
137 handler(g_sessionI
258 DefaultFrameEnumerator(const InspectorServer::FrameInfoHandler &handler) DefaultFrameEnumerator() argument
[all...]
/arkcompiler/ets_runtime/ecmascript/
H A Djs_proxy.cpp24 // ES6 9.5.15 ProxyCreate(target, handler)
26 const JSHandle<JSTaggedValue> &handler) in ProxyCreate()
34 // 2. If Type(handler) is not Object, throw a TypeError exception. in ProxyCreate()
35 if (!handler->IsECMAObject()) { in ProxyCreate()
36 THROW_TYPE_ERROR_AND_RETURN(thread, "ProxyCreate: handler is not Object", in ProxyCreate()
43 // 9. Set the [[ProxyHandler]] internal slot of P to handler. in ProxyCreate()
44 return thread->GetEcmaVM()->GetFactory()->NewJSProxy(target, handler); in ProxyCreate()
52 // 1. Let handler be the value of the [[ProxyHandler]] internal slot of O. in GetPrototype()
53 JSHandle<JSTaggedValue> handler(thread, proxy->GetHandler()); in GetPrototype()
54 // 2. If handler i in GetPrototype()
25 ProxyCreate(JSThread *thread, const JSHandle<JSTaggedValue> &target, const JSHandle<JSTaggedValue> &handler) ProxyCreate() argument
115 JSTaggedValue handler = proxy->GetHandler(); SetPrototype() local
176 JSTaggedValue handler = proxy->GetHandler(); IsExtensible() local
234 JSTaggedValue handler = proxy->GetHandler(); PreventExtensions() local
288 JSTaggedValue handler = proxy->GetHandler(); GetOwnProperty() local
381 JSTaggedValue handler = proxy->GetHandler(); DefineOwnProperty() local
464 JSTaggedValue handler = proxy->GetHandler(); HasProperty() local
524 JSTaggedValue handler = proxy->GetHandler(); GetProperty() local
599 JSTaggedValue handler = proxy->GetHandler(); SetProperty() local
662 JSTaggedValue handler = proxy->GetHandler(); DeleteProperty() local
716 JSTaggedValue handler = proxy->GetHandler(); OwnPropertyKeys() local
862 JSTaggedValue handler = proxy->GetHandler(); GetAllPropertyKeys() local
[all...]
/arkcompiler/runtime_core/static_core/verification/util/
H A Dsaturated_enum.h64 void EnumerateValues(Handler &&handler) const in EnumerateValues()
66 Enumerate(std::forward<Handler>(handler), false); in EnumerateValues()
88 void Enumerate(Handler &&handler, bool prevSet) const in Enumerate() argument
92 handler(E); in Enumerate()
129 void EnumerateValues(Handler &&handler) const in EnumerateValues()
131 Enumerate(std::forward<Handler>(handler), false); in EnumerateValues()
157 void Enumerate(Handler &&handler, bool prevSet) const in Enumerate() argument
160 if (prevSet && !handler(E)) { in Enumerate()
163 Base::template Enumerate<Handler>(std::forward<Handler>(handler), prevSet); in Enumerate()
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/
H A Dpgo_profiler_layout.cpp182 void HClassLayoutDesc::InsertKeyAndDesc(const PGOHandler &handler, PropertyDesc &desc) in InsertKeyAndDesc() argument
185 if (oldHandler == handler) { in InsertKeyAndDesc()
189 auto newTrackType = handler.GetTrackType(); in InsertKeyAndDesc()
191 desc.second.SetPropertyMeta(handler.GetPropertyMeta()); in InsertKeyAndDesc()
197 desc.second.SetPropertyMeta(handler.GetPropertyMeta()); in InsertKeyAndDesc()
206 desc.second = PGOHandler(newTrackType, handler.GetPropertyMeta()); in InsertKeyAndDesc()
224 void RootHClassLayoutDesc::InsertKeyAndDesc(const CString &key, const PGOHandler &handler) in InsertKeyAndDesc() argument
226 if (!UpdateKeyAndDesc(key, handler)) { in InsertKeyAndDesc()
227 layoutDesc_.emplace_back(key, handler); in InsertKeyAndDesc()
231 bool RootHClassLayoutDesc::UpdateKeyAndDesc(const CString &key, const PGOHandler &handler) in UpdateKeyAndDesc() argument
252 InsertKeyAndDesc(const CString &key, const PGOHandler &handler) InsertKeyAndDesc() argument
259 UpdateKeyAndDesc(const CString &key, const PGOHandler &handler) UpdateKeyAndDesc() argument
[all...]
/arkcompiler/runtime_core/static_core/runtime/tests/
H A Dobject_helpers_test.cpp139 auto handler = [&found]([[maybe_unused]] ObjectHeader *obj, [[maybe_unused]] ObjectHeader *ref, in TEST_F() local
144 GCStaticObjectHelpers::TraverseAllObjectsWithInfo<false>(klass->GetManagedObject(), handler); in TEST_F()
165 auto handler = [klass, &count, expected](ObjectHeader *obj, ObjectHeader *ref, uint32_t offset, bool isVolatile) { in TEST_F() local
173 GCStaticObjectHelpers::TraverseAllObjectsWithInfo<false>(klass->GetManagedObject(), handler); in TEST_F()
194 auto handler = [klass, &count, expected](ObjectHeader *obj, ObjectHeader *ref, uint32_t offset, bool isVolatile) { in TEST_F() local
202 GCStaticObjectHelpers::TraverseAllObjectsWithInfo<false>(klass->GetManagedObject(), handler); in TEST_F()
225 auto handler = [object, &count, expected](ObjectHeader *obj, ObjectHeader *ref, uint32_t offset, bool isVolatile) { in TEST_F() local
233 GCStaticObjectHelpers::TraverseAllObjectsWithInfo<false>(object, handler); in TEST_F()
256 auto handler = [object, &count, expected](ObjectHeader *obj, ObjectHeader *ref, uint32_t offset, bool isVolatile) { in TEST_F() local
264 GCStaticObjectHelpers::TraverseAllObjectsWithInfo<false>(object, handler); in TEST_F()
277 auto handler = [array, &count, expected](ObjectHeader *obj, ObjectHeader *ref, uint32_t offset, bool isVolatile) { TEST_F() local
[all...]
/arkcompiler/runtime_core/static_core/runtime/tooling/
H A Ddefault_inspector_extension.h33 void EnumerateProperties(const ObjectHeader *object, const PropertyHandler &handler) override;
34 void EnumerateGlobals(const PropertyHandler &handler) override;
51 void EnumerateProperties(const ObjectHeader *object, const PropertyHandler &handler) override;
52 void EnumerateGlobals([[maybe_unused]] const PropertyHandler &handler) override {}
/arkcompiler/runtime_core/static_core/libllvmbackend/transforms/passes/ark_frame_lowering/
H A Dframe_builder.h52 FrameBuilderInterface(FrameInfo frameInfo, ConstantPoolHandler handler) in FrameBuilderInterface()
53 : frameInfo_ {std::move(frameInfo)}, constantPool_ {std::move(handler)} in FrameBuilderInterface()
79 AMD64FrameBuilder(FrameInfo frameInfo, ConstantPoolHandler handler) in AMD64FrameBuilder()
80 : FrameBuilderInterface(std::move(frameInfo), std::move(handler)) in AMD64FrameBuilder()
97 ARM64FrameBuilder(FrameInfo frameInfo, ConstantPoolHandler handler) in ARM64FrameBuilder()
98 : FrameBuilderInterface(std::move(frameInfo), std::move(handler)) in ARM64FrameBuilder()
/arkcompiler/runtime_core/static_core/verification/jobs/
H A Djob.h102 void ForAllCachedTypes(Handler &&handler) const in ForAllCachedTypes()
105 handler(item.second); in ForAllCachedTypes()
110 void ForAllCachedMethods(Handler &&handler) const in ForAllCachedMethods()
113 handler(item.second); in ForAllCachedMethods()
118 void ForAllCachedFields(Handler &&handler) const in ForAllCachedFields()
121 handler(item.second); in ForAllCachedFields()

Completed in 16 milliseconds

123456