Home
last modified time | relevance | path

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

12345678910>>...15

/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…
66 static_assert(NeedSkipInPGODumpBit::END_BIT <= MAX_BIT_SIZE, "load handler overflow");
77 static_assert(SFieldTypeBit::END_BIT <= MAX_BIT_SIZE, "store handler overflow");
84 static inline bool IsAccessor(Type handler) in IsAccessor() argument
86 return AccessorBit::Get(handler); in IsAccessor()
89 static inline SharedFieldType GetFieldType(Type handler) in GetFieldType() argument
91 return static_cast<SharedFieldType>(SFieldTypeBit::Get(handler)); in GetFieldType()
94 static inline bool IsNonExist(Type handler) in IsNonExist() argument
96 return GetKind(handler) == HandlerKind::NON_EXIST; in IsNonExist()
99 static inline bool IsField(Type handler) in IsField() argument
[all …]
Dic_handler.cpp23 uint64_t handler = 0; in LoadProperty() local
26 KindBit::Set<uint64_t>(HandlerKind::NON_EXIST, &handler); in LoadProperty()
27 return JSHandle<JSTaggedValue>(thread, JSTaggedValue::WrapUint64(handler)); in LoadProperty()
36 AccessorBit::Set<uint64_t>(hasAccessor, &handler); in LoadProperty()
46 KindBit::Set<uint64_t>(HandlerKind::STRING_LENGTH, &handler); in LoadProperty()
48 KindBit::Set<uint64_t>(HandlerKind::STRING, &handler); in LoadProperty()
51 KindBit::Set<uint64_t>(HandlerKind::NUMBER, &handler); in LoadProperty()
53 KindBit::Set<uint64_t>(HandlerKind::FIELD, &handler); in LoadProperty()
58 InlinedPropsBit::Set<uint64_t>(true, &handler); in LoadProperty()
61 OffsetBit::Set<uint64_t>(index, &handler); in LoadProperty()
[all …]
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() argument
224 if (handler.IsInt()) { in StoreICWithHandler()
225 auto handlerInfo = JSTaggedValue::UnwrapToUint64(handler); in StoreICWithHandler()
259 if (handler.IsTransitionHandler()) { in StoreICWithHandler()
[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/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/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/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/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/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 …]
/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.h62 void OnValidate(std::function<void()> &&handler);
63 void OnOpen(std::function<void()> &&handler);
64 void OnFail(std::function<void()> &&handler);
78 …nCallDebuggerContinueToLocation(std::function<void(PtThread, std::string_view, size_t)> &&handler);
80 std::function<std::set<size_t>(std::string_view, size_t, size_t, bool)> &&handler);
81 void OnCallDebuggerGetScriptSource(std::function<std::string(std::string_view)> &&handler);
82 void OnCallDebuggerPause(std::function<void(PtThread)> &&handler);
83 void OnCallDebuggerRemoveBreakpoint(std::function<void(PtThread, BreakpointId)> &&handler);
84 void OnCallDebuggerRestartFrame(std::function<void(PtThread, FrameId)> &&handler);
85 void OnCallDebuggerResume(std::function<void(PtThread)> &&handler);
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/main/
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.cpp30 ProtocolHandler *handler = vm->GetJsDebuggerManager()->GetDebuggerHandler(); in InitializeDebugger() local
31 if (handler != nullptr) { in InitializeDebugger()
44 ProtocolHandler *handler = vm->GetJsDebuggerManager()->GetDebuggerHandler(); in UninitializeDebugger() local
45 delete handler; in UninitializeDebugger()
55 ProtocolHandler *handler = vm->GetJsDebuggerManager()->GetDebuggerHandler(); in WaitForDebugger() local
56 if (LIKELY(handler != nullptr)) { in WaitForDebugger()
57 handler->WaitForDebugger(); in WaitForDebugger()
67 ProtocolHandler *handler = vm->GetJsDebuggerManager()->GetDebuggerHandler(); in OnMessage() local
68 if (LIKELY(handler != nullptr)) { in OnMessage()
69 handler->DispatchCommand(std::move(message)); in OnMessage()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/escompat/
DArrayProxyTest.sts66 function verifyArrayProxyOps(array: Array<string>, handler: StringArrayProxyHandler): void {
67 let arrayProxy: Array<string> = Proxy.create(array, handler)
71 assertFalse(handler.getTrapped)
73 assertTrue(handler.getTrapped)
75 assertFalse(handler.setTrapped)
77 assertTrue(handler.setTrapped)
80 assertFalse(handler.setLengthTrapped)
82 assertTrue(handler.setLengthTrapped)
85 assertFalse(handler.popTrapped)
88 assertTrue(handler.popTrapped)
[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 __anonb4764d250102() local
48 auto *klass = service->GetClassLinker()->GetClass(descr, true, linkerCtx_, &handler); in __anonb4764d250102()
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/plugins/ets/stdlib/escompat/
DProxy.sts25 private static readonly PROXY_INSTANCE_HANDLER_FIELD = "handler"
35 static create<T extends Object>(target: T, handler: ProxyHandler<T>): T {
43 const handlerType = Type.of(handler) as ClassType
48 Reflect.set(proxyInstance, Proxy.PROXY_INSTANCE_HANDLER_FIELD, handler)
53 static create<T>(target: Array<T>, handler: ArrayProxyHandler<T>): Array<T> {
54 return Proxy.INSTANCE.makeArrayProxyInstance(target, handler)
57 …static create<T>(target: ReadonlyArray<T>, handler: ReadonlyArrayProxyHandler<T>): ReadonlyArray<T…
58 return new ReadonlyArrayProxy<T>(target, handler)
127 private makeArrayProxyInstance<T>(target: Array<T>, handler: ArrayProxyHandler<T>): Array<T> {
135 return arrayProxyType.make([target, handler]) as Array<T>
[all …]
/arkcompiler/runtime_core/libabckit/tests/clean_scenarios/c_api/dynamic/parameter_check/
DREADME.md6 export class Handler {
14 import { Handler } from './modules/base';
15 class StringHandler1 extends Handler {
23 import { Handler } from './modules/base';
24 class StringHandler1 extends Handler {
/arkcompiler/runtime_core/libabckit/tests/clean_scenarios/cpp_api/dynamic/parameter_check/
DREADME.md6 export class Handler {
14 import { Handler } from './modules/base';
15 class StringHandler1 extends Handler {
23 import { Handler } from './modules/base';
24 class StringHandler1 extends Handler {

12345678910>>...15