Home
last modified time | relevance | path

Searched full:handler (Results 1 – 25 of 309) sorted by relevance

12345678910>>...13

/arkcompiler/runtime_core/static_core/runtime/mem/
Dobject-references-iterator.h32 /// Iterates references in object and passes pointers of them to the handler
33 template <bool INTERRUPTIBLE, typename Handler>
34 static bool Iterate(ObjectHeader *obj, Handler *handler, void *begin, void *end);
36 template <typename Handler>
37 static bool IterateAndDiscoverReferences(GC *gc, ObjectHeader *obj, Handler *handler);
39 template <typename Handler>
40 …static bool IterateAndDiscoverReferences(GC *gc, ObjectHeader *obj, Handler *handler, void *begin,…
43 template <bool INTERRUPTIBLE, typename Handler>
44 static bool Iterate(Class *cls, ObjectHeader *obj, Handler *handler);
46 template <bool INTERRUPTIBLE, typename Handler>
[all …]
Dobject-references-iterator-inl.h26 template <typename T, bool INTERRUPTIBLE, typename Handler>
27 static bool Iterate(coretypes::Array *array, Handler *handler);
29 template <typename T, bool INTERRUPTIBLE, typename Handler>
30 static bool Iterate(coretypes::Array *array, Handler *handler, void *begin, void *end);
33 template <typename T, bool INTERRUPTIBLE, typename Handler>
34 bool ObjectArrayIterator::Iterate(coretypes::Array *array, Handler *handler) in Iterate() argument
42 [[maybe_unused]] auto cont = handler->ProcessObjectPointer(p); in Iterate()
53 template <typename T, bool INTERRUPTIBLE, typename Handler>
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()
[all …]
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 r…
120 …* This template is used to decrease possible performance influence of checking handler's returned …
124 template <bool INTERRUPTIBLE, typename Handler>
125 …static bool TraverseAllObjectsWithInfo(ObjectHeader *object, Handler &handler, void *begin = ToVoi…
137 template <bool INTERRUPTIBLE, typename Handler>
138 static bool TraverseClass(Class *cls, Handler &handler);
139 template <bool INTERRUPTIBLE, typename Handler>
[all …]
Dobject_helpers-inl.h34 template <bool INTERRUPTIBLE, typename Handler>
35 bool GCStaticObjectHelpers::TraverseClass(Class *cls, Handler &handler) in TraverseClass() argument
55 [[maybe_unused]] bool res = handler(object, fieldObject, objOffset, isVolatile); in TraverseClass()
65 template <bool INTERRUPTIBLE, typename Handler>
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()
102 template <bool INTERRUPTIBLE, typename Handler>
104 Handler &handler) in TraverseArray() argument
127 [[maybe_unused]] bool res = handler(array, arrayElement, offset, false); in TraverseArray()
140 template <bool INTERRUPTIBLE, typename Handler>
[all …]
/arkcompiler/ets_runtime/ecmascript/ic/
Dic_handler.h46 …// Store Handler kind combined with KindBit called SWholeKindBit. Which used to quickly check S_FI…
65 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
[all …]
Dic_runtime_stub-inl.h43 JSTaggedValue handler = profileTypeInfo->Get(slotId); in LoadGlobalICByName() local
44 if (handler.IsHeapObject()) { in LoadGlobalICByName()
45 auto result = LoadGlobal(handler); in LoadGlobalICByName()
59 JSTaggedValue handler = profileTypeInfo->Get(slotId); in StoreGlobalICByName() local
60 if (handler.IsHeapObject()) { in StoreGlobalICByName()
61 auto result = StoreGlobal(thread, value, handler); in StoreGlobalICByName()
212 … JSTaggedValue value, JSTaggedValue handler) in StoreICWithHandler() argument
215 if (handler.IsInt()) { in StoreICWithHandler()
216 auto handlerInfo = JSTaggedValue::UnwrapToUint64(handler); in StoreICWithHandler()
237 if (handler.IsTransitionHandler()) { in StoreICWithHandler()
[all …]
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 …nline void StoreField(JSThread *thread, JSObject *receiver, JSTaggedValue value, uint64_t handler);
59 static inline JSTaggedValue LoadGlobal(JSTaggedValue handler);
60 …tic inline JSTaggedValue StoreGlobal(JSThread *thread, JSTaggedValue value, JSTaggedValue handler);
[all …]
/arkcompiler/runtime_core/docs/bc_verification/
Dcflow_checks.md11 handler
20 handler
25 handler
37 handler in handler is allowed.
51 handler
70 handler
88 handler
105 ### Code to exception handler
120 handler
138 handler
[all …]
/arkcompiler/runtime_core/static_core/docs/bc_verification/
Dcflow_checks.md11 handler
20 handler
25 handler
37 handler in handler is allowed.
51 handler
70 handler
88 handler
105 ### Code to exception handler
120 handler
138 handler
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test_rules/
Drule144.sts104 let handler: ProxyHandler<C> = {};
105 if (handler.apply) handler.apply(c, c, []);
106 if (handler.construct) handler.construct(c, [], () => {});
107 if (handler.defineProperty) handler.defineProperty(c, "prop", {});
108 if (handler.deleteProperty) handler.deleteProperty(c, "prop");
109 if (handler.get) handler.get(c, "prop", {});
110 if (handler.getOwnPropertyDescriptor) handler.getOwnPropertyDescriptor(c, "prop");
111 if (handler.getPrototypeOf) handler.getPrototypeOf(c);
112 if (handler.has) handler.has(c, "prop");
113 if (handler.isExtensible) handler.isExtensible(c);
[all …]
/arkcompiler/runtime_core/static_core/runtime/interpreter/templates/
Dinterpreter-inl_gen.h.erb47 #define INSTRUMENT_FRAME() do { if (handler.GetFrame()->IsForcePop() || handler.GetFrame()->IsRetry…
171 …pace %>InstructionHandler<RuntimeIfaceT, IS_DYNAMIC, IS_DEBUG, IS_PROFILE_ENABLED> handler(&state);
173 if (handler.GetFrame()->IsForcePop() || handler.GetFrame()->IsRetryInstruction()) {
176 handler.InstrumentInstruction();
177 if (handler.GetFrame()->IsForcePop() || handler.GetFrame()->IsRetryInstruction()) {
180 handler.GetFrame()->GetAcc() = handler.GetAcc();
182 handler.DumpVRegs();
183handler.template Handle<%= mnemonic %><BytecodeInstruction::Format::<%= i.format.pretty.upcase %>>…
185 if (handler.GetFrame()->IsStackless()) {
186 handler.HandleReturnStackless();
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/docs/rules/
Drecipe144.md27 ``Proxy``: ``handler.apply()``, ``handler.construct()``,
28 ``handler.defineProperty()``, ``handler.deleteProperty()``, ``handler.get()``,
29 ``handler.getOwnPropertyDescriptor()``, ``handler.getPrototypeOf()``,
30 ``handler.has()``, ``handler.isExtensible()``, ``handler.ownKeys()``,
31 ``handler.preventExtensions()``, ``handler.set()``, ``handler.setPrototypeOf()``
/arkcompiler/runtime_core/static_core/verification/util/
Dsaturated_enum.h63 template <typename Handler>
64 void EnumerateValues(Handler &&handler) const in EnumerateValues() argument
66 Enumerate(std::forward<Handler>(handler), false); in EnumerateValues()
87 template <typename Handler>
88 void Enumerate(Handler &&handler, bool prevSet) const in Enumerate() argument
92 handler(E); in Enumerate()
128 template <typename Handler>
129 void EnumerateValues(Handler &&handler) const in EnumerateValues() argument
131 Enumerate(std::forward<Handler>(handler), false); in EnumerateValues()
156 template <typename Handler>
[all …]
Dflags.h71 template <typename Handler>
72 void EnumerateFlags(Handler &&handler) const in EnumerateFlags() argument
75 handler(FLAG); in EnumerateFlags()
130 template <typename Handler>
131 void EnumerateFlags(Handler &&handler) const in EnumerateFlags() argument
133 if (typename Base::ConstBit {MASK, Base::flags_} && !handler(FLAG)) { in EnumerateFlags()
136 Base::template EnumerateFlags<Handler>(std::forward<Handler>(handler)); in EnumerateFlags()
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/
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 = std::move(handler)]() { in OnFail()
82 handler(); in OnFail()
218 std::function<void(PtThread, std::string_view, size_t)> &&handler) in OnCallDebuggerContinueToLocation() argument
[all …]
Dinspector_server.h56 void OnValidate(std::function<void()> &&handler);
57 void OnOpen(std::function<void()> &&handler);
58 void OnFail(std::function<void()> &&handler);
72 …nCallDebuggerContinueToLocation(std::function<void(PtThread, std::string_view, size_t)> &&handler);
74 std::function<std::set<size_t>(std::string_view, size_t, size_t, bool)> &&handler);
75 void OnCallDebuggerGetScriptSource(std::function<std::string(std::string_view)> &&handler);
76 void OnCallDebuggerPause(std::function<void(PtThread)> &&handler);
77 void OnCallDebuggerRemoveBreakpoint(std::function<void(PtThread, BreakpointId)> &&handler);
78 void OnCallDebuggerRestartFrame(std::function<void(PtThread, FrameId)> &&handler);
79 void OnCallDebuggerResume(std::function<void(PtThread)> &&handler);
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/
Dlimited_stdlib_api.sts104 let handler: ProxyHandler<C> = {};
105 if (handler.apply) handler.apply(c, c, []);
106 if (handler.construct) handler.construct(c, [], () => {});
107 if (handler.defineProperty) handler.defineProperty(c, "prop", {});
108 if (handler.deleteProperty) handler.deleteProperty(c, "prop");
109 if (handler.get) handler.get(c, "prop", {});
110 if (handler.getOwnPropertyDescriptor) handler.getOwnPropertyDescriptor(c, "prop");
111 if (handler.getPrototypeOf) handler.getPrototypeOf(c);
112 if (handler.has) handler.has(c, "prop");
113 if (handler.isExtensible) handler.isExtensible(c);
[all …]
/arkcompiler/toolchain/tooling/
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->DispatchCommand(std::move(message)); in OnMessage()
[all …]
/arkcompiler/toolchain/tooling/test/
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 == nullptr); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/
Djs_proxy.cpp24 // ES6 9.5.15 ProxyCreate(target, handler)
26 const JSHandle<JSTaggedValue> &handler) in ProxyCreate() argument
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() local
54 // 2. If handler is null, throw a TypeError exception. in GetPrototype()
[all …]
/arkcompiler/runtime_core/static_core/verification/type/
Dtype_system.cpp47 Job::ErrorHandler handler; in __anon28d350e50102() local
48 auto *klass = service->GetClassLinker()->GetClass(descr, true, linkerCtx_, &handler); in __anon28d350e50102()
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](auto const &name, auto const &sig) { handler(name + " : " + sig); }); in DisplayTypeSystem()
174 handler("Subtyping (type <; supertype)"); in DisplayTypeSystem()
[all …]
/arkcompiler/runtime_core/static_core/verification/jobs/
Djob.h101 template <typename Handler>
102 void ForAllCachedTypes(Handler &&handler) const in ForAllCachedTypes() argument
105 handler(item.second); in ForAllCachedTypes()
109 template <typename Handler>
110 void ForAllCachedMethods(Handler &&handler) const in ForAllCachedMethods() argument
113 handler(item.second); in ForAllCachedMethods()
117 template <typename Handler>
118 void ForAllCachedFields(Handler &&handler) const in ForAllCachedFields() argument
121 handler(item.second); in ForAllCachedFields()
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/tests/
Dinspector_server.cpp37 void OnValidate([[maybe_unused]] std::function<void()> &&handler) override {}; in OnValidate() argument
38 void OnOpen([[maybe_unused]] std::function<void()> &&handler) override {}; in OnOpen() argument
39 void OnFail([[maybe_unused]] std::function<void()> &&handler) override {}; in OnFail() argument
49 …d::function<void(const std::string &, JsonObjectBuilder &, const JsonObject &)> &&handler) override in OnCall() argument
52 OnCallMock(tmp, std::move(handler)); in OnCall()
61 … std::function<void(const std::string &, JsonObjectBuilder &, const JsonObject &)> &&handler));
124 …L(server1, OnCallMock("Debugger.enable", testing::_)).WillOnce([&](testing::Unused, auto handler) { in TEST_F() argument
127 handler(g_sessionId, res, empty); in TEST_F()
134 static auto g_simpleHandler = []([[maybe_unused]] auto unused, auto handler) { in __anon288e5e2f0302() argument
137 handler(g_sessionId, res, empty); in __anon288e5e2f0302()
[all …]
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/
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
[all …]
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/connection/
Dserver_endpoint_base.h30 void OnValidate(std::function<void()> &&handler) override in OnValidate() argument
32 onValidate_ = std::move(handler); in OnValidate()
35 void OnOpen(std::function<void()> &&handler) override in OnOpen() argument
37 onOpen_ = std::move(handler); in OnOpen()
40 void OnFail(std::function<void()> &&handler) override in OnFail() argument
42 onFail_ = std::move(handler); in OnFail()
51 &&handler) override;

12345678910>>...13