Home
last modified time | relevance | path

Searched refs:handler (Results 1 – 25 of 77) sorted by relevance

1234

/arkcompiler/ets_runtime/ecmascript/ic/
Dic_handler.h47 static inline bool IsAccessor(uint32_t handler) in IsAccessor() argument
49 return AccessorBit::Get(handler); in IsAccessor()
52 static inline bool IsInternalAccessor(uint32_t handler) in IsInternalAccessor() argument
54 return InternalAccessorBit::Get(handler); in IsInternalAccessor()
57 static inline bool IsNonExist(uint32_t handler) in IsNonExist() argument
59 return GetKind(handler) == HandlerKind::NON_EXIST; in IsNonExist()
62 static inline bool IsField(uint32_t handler) in IsField() argument
64 return GetKind(handler) == HandlerKind::FIELD; in IsField()
67 static inline bool IsElement(uint32_t handler) in IsElement() argument
69 return GetKind(handler) == HandlerKind::ELEMENT; in IsElement()
[all …]
Dic_runtime_stub-inl.h42 JSTaggedValue handler = profileTypeInfo->Get(slotId); in LoadGlobalICByName() local
43 if (handler.IsHeapObject()) { in LoadGlobalICByName()
44 auto result = LoadGlobal(handler); in LoadGlobalICByName()
58 JSTaggedValue handler = profileTypeInfo->Get(slotId); in StoreGlobalICByName() local
59 if (handler.IsHeapObject()) { in StoreGlobalICByName()
60 auto result = StoreGlobal(thread, value, handler); in StoreGlobalICByName()
195 … JSTaggedValue value, JSTaggedValue handler) in StoreICWithHandler() argument
198 if (handler.IsInt()) { in StoreICWithHandler()
199 auto handlerInfo = static_cast<uint32_t>(handler.GetInt()); in StoreICWithHandler()
208 if (handler.IsTransitionHandler()) { in StoreICWithHandler()
[all …]
Dic_runtime_stub.h44 JSTaggedValue handler);
46 JSTaggedValue value, JSTaggedValue handler);
48 JSTaggedValue handler, bool withPrototype = false);
50 JSTaggedValue value, JSTaggedValue handler);
52 JSTaggedValue value, JSTaggedValue handler);
54 JSTaggedValue value, JSTaggedValue handler);
56 …nline void StoreField(JSThread *thread, JSObject *receiver, JSTaggedValue value, uint32_t handler);
57 static inline JSTaggedValue LoadGlobal(JSTaggedValue handler);
58 …tic inline JSTaggedValue StoreGlobal(JSThread *thread, JSTaggedValue value, JSTaggedValue handler);
59 …nline JSTaggedValue LoadPrototype(JSThread *thread, JSTaggedValue receiver, JSTaggedValue handler);
Dprofile_type_info.cpp23 …eAccessor::AddElementHandler(JSHandle<JSTaggedValue> hclass, JSHandle<JSTaggedValue> handler) const in AddElementHandler()
30 profileTypeInfo_->Set(thread_, index + 1, handler.GetTaggedValue()); in AddElementHandler()
36 profileTypeInfo_->Set(thread_, index + 1, handler.GetTaggedValue()); in AddElementHandler()
39 AddHandlerWithoutKey(hclass, handler); in AddElementHandler()
42 …cessor::AddHandlerWithoutKey(JSHandle<JSTaggedValue> hclass, JSHandle<JSTaggedValue> handler) const in AddHandlerWithoutKey()
46 profileTypeInfo_->Set(thread_, index, handler.GetTaggedValue()); in AddHandlerWithoutKey()
53 profileTypeInfo_->Set(thread_, index + 1, handler.GetTaggedValue()); in AddHandlerWithoutKey()
74 newArr->Set(thread_, i + 1, handler.GetTaggedValue()); in AddHandlerWithoutKey()
86 newArr->Set(thread_, arrIndex, handler.GetTaggedValue()); in AddHandlerWithoutKey()
93 JSHandle<JSTaggedValue> handler) const in AddHandlerWithKey()
[all …]
Dprofile_type_info.h121 … void AddHandlerWithoutKey(JSHandle<JSTaggedValue> hclass, JSHandle<JSTaggedValue> handler) const;
122 void AddElementHandler(JSHandle<JSTaggedValue> hclass, JSHandle<JSTaggedValue> handler) const;
124 JSHandle<JSTaggedValue> handler) const;
125 void AddGlobalHandlerKey(JSHandle<JSTaggedValue> key, JSHandle<JSTaggedValue> handler) const;
126 void AddGlobalRecordHandler(JSHandle<JSTaggedValue> handler) const;
/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/toolchain/tooling/
Ddebugger_service.cpp27 ProtocolHandler *handler = vm->GetJsDebuggerManager()->GetDebuggerHandler(); in InitializeDebugger() local
28 if (handler != nullptr) { in InitializeDebugger()
37 ProtocolHandler *handler = vm->GetJsDebuggerManager()->GetDebuggerHandler(); in UninitializeDebugger() local
38 delete handler; in UninitializeDebugger()
44 ProtocolHandler *handler = vm->GetJsDebuggerManager()->GetDebuggerHandler(); in WaitForDebugger() local
45 if (LIKELY(handler != nullptr)) { in WaitForDebugger()
46 handler->WaitForDebugger(); in WaitForDebugger()
52 ProtocolHandler *handler = vm->GetJsDebuggerManager()->GetDebuggerHandler(); in OnMessage() local
53 if (LIKELY(handler != nullptr)) { in OnMessage()
54 handler->DispatchCommand(std::move(message)); in OnMessage()
[all …]
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/
Dpgo_profiler_layout.cpp24 void PGOHClassLayoutDesc::UpdateKeyAndDesc(const CString &key, const PGOHandler &handler, PGOObjKin… in UpdateKeyAndDesc() argument
29 UpdateKeyAndDesc(key, handler, layoutDesc_); in UpdateKeyAndDesc()
32 UpdateKeyAndDesc(key, handler, ptLayoutDesc_); in UpdateKeyAndDesc()
35 UpdateKeyAndDesc(key, handler, ctorLayoutDesc_); in UpdateKeyAndDesc()
43 bool PGOHClassLayoutDesc::FindDescWithKey(const CString &key, PGOHandler &handler) const in FindDescWithKey()
49 handler = desc.second; in FindDescWithKey()
66 void PGOHClassLayoutDesc::UpdateKeyAndDesc(const CString &key, const PGOHandler &handler, LayoutDes… in UpdateKeyAndDesc() argument
71 if (oldHandler == handler) { in UpdateKeyAndDesc()
75 auto newTrackType = handler.GetTrackType(); in UpdateKeyAndDesc()
77 iter.second.SetIsAccessor(handler.IsAccessor()); in UpdateKeyAndDesc()
[all …]
Dpgo_profiler_layout.h170 void AddKeyAndDesc(const CString &key, const PGOHandler &handler) in AddKeyAndDesc() argument
172 layoutDesc_.emplace_back(key, handler); in AddKeyAndDesc()
175 void AddPtKeyAndDesc(const CString &key, const PGOHandler &handler) in AddPtKeyAndDesc() argument
177 ptLayoutDesc_.emplace_back(key, handler); in AddPtKeyAndDesc()
180 void AddCtorKeyAndDesc(const CString &key, const PGOHandler &handler) in AddCtorKeyAndDesc() argument
182 ctorLayoutDesc_.emplace_back(key, handler); in AddCtorKeyAndDesc()
186 void UpdateKeyAndDesc(const CString &key, const PGOHandler &handler, PGOObjKind kind);
188 bool FindDescWithKey(const CString &key, PGOHandler &handler) const;
198 void UpdateKeyAndDesc(const CString &key, const PGOHandler &handler, LayoutDesc &layoutDesc);
/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()
68 ProtocolHandler *handler = ecmaVm->GetJsDebuggerManager()->GetDebuggerHandler(); in HWTEST_F_L0() local
69 ASSERT_TRUE(handler != nullptr); in HWTEST_F_L0()
71 handler = ecmaVm->GetJsDebuggerManager()->GetDebuggerHandler(); in HWTEST_F_L0()
72 ASSERT_TRUE(handler == nullptr); in HWTEST_F_L0()
77 ProtocolHandler *handler = ecmaVm->GetJsDebuggerManager()->GetDebuggerHandler(); in HWTEST_F_L0() local
[all …]
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DvarianceCallbacksAndIndexedAccesses.ts38 addEventListener(type: "message", handler: Action1<MessageEventLike<T>>): void;
39 addEventListener(type: string, handler: Action1<any>): void;
40 removeEventListener(type: "message", handler: Action1<MessageEventLike<T>>): void;
41 removeEventListener(type: string, handler: Action1<any>): void;
44 (type: "message", handler: Action1<MessageEventLike<any>>): void;
45 (type: string, handler: Action1<any>): void;
DinstantiateContextualTypes.ts87 handler: Handler<S, P> property
90 declare function handler<S, P>(actionType: ActionType<P>, handler: Handler<S, P>): ActionHandler<S,… function
119 …sertType(createReducer( defaultState, handler(NON_VOID_ACTION, (state, _payload) => state), …
125 handler(NON_VOID_ACTION, (state, _payload) => state),
126 AssertType(handler(NON_VOID_ACTION, (state, _payload) => state), "ActionHandler<AppState, number>");
127 AssertType(handler, "<S, P>(ActionType<P>, Handler<S, P>) => ActionHandler<S, P>");
134 handler(VOID_ACTION, state => state)
135 AssertType(handler(VOID_ACTION, state => state), "ActionHandler<AppState, void>");
136 AssertType(handler, "<S, P>(ActionType<P>, Handler<S, P>) => ActionHandler<S, P>");
DnoCrashOnThisTypeUsage.ts23 observe(handler: (change: any, oldValue?: any) => void, fireImmediately?: boolean): void
64 observe(handler: (change: any, oldValue?: any) => void, fireImmediately?: boolean) {}
/arkcompiler/ets_runtime/ecmascript/
Djs_proxy.cpp28 const JSHandle<JSTaggedValue> &handler) in ProxyCreate() argument
37 if (!handler->IsECMAObject()) { in ProxyCreate()
46 return thread->GetEcmaVM()->GetFactory()->NewJSProxy(target, handler); in ProxyCreate()
54 JSHandle<JSTaggedValue> handler(thread, proxy->GetHandler()); in GetPrototype() local
56 if (handler->IsNull()) { in GetPrototype()
60 ASSERT(handler->IsECMAObject()); in GetPrototype()
65 JSHandle<JSTaggedValue> trap = JSObject::GetMethod(thread, handler, name); in GetPrototype()
75 …EcmaRuntimeCallInfo *info = EcmaInterpreter::NewRuntimeCallInfo(thread, trap, handler, undefined, … in GetPrototype()
115 JSTaggedValue handler = proxy->GetHandler(); in SetPrototype() local
117 if (handler.IsNull()) { in SetPrototype()
[all …]
/arkcompiler/ets_runtime/test/aottest/proxy/
Dproxy.ts23 const handler = { constant
33 const proxy0 = new Proxy(sum, handler);
37 ArkTools.removeAOTFlag(handler.apply);
38 const proxy1 = new Proxy(sum, handler);
/arkcompiler/ets_frontend/ts2panda/src/base/
DvregisterCache.ts65 constructor(handler: Function) {
68 this.expander = handler;
92 let handler = cacheExpandHandlers.get(i);
93 if (!handler) {
96 this.cache[i] = new CacheItem(handler);
/arkcompiler/ets_runtime/ecmascript/ic/tests/
Dic_runtime_stub_test.cpp255 uint32_t handler = 0U; in HWTEST_F_L0() local
256 KindBit::Set<uint32_t>(HandlerKind::ELEMENT, &handler); in HWTEST_F_L0()
258 JSTaggedValue handleSecondHandlerVal(handler); in HWTEST_F_L0()
285 uint32_t handler = 0U; in HWTEST_F_L0() local
286 KindBit::Set<uint32_t>(HandlerKind::FIELD, &handler); in HWTEST_F_L0()
289 handleSecondValArr->Set(thread, 1, JSTaggedValue(handler)); in HWTEST_F_L0()
329 uint32_t handler = 0U; in HWTEST_F_L0() local
331 OffsetBit::Set<uint32_t>(bitOffset, &handler); in HWTEST_F_L0()
332 AccessorBit::Set<uint32_t>(true, &handler); in HWTEST_F_L0()
344 … handleHolder.GetTaggedValue(), JSTaggedValue(2), JSTaggedValue(handler)); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_frontend/es2panda/test/parser/js/
Dtest-try-statement-expected.txt20 "handler": {
102 "handler": {
171 "handler": null,
213 "handler": {
282 "handler": {
/arkcompiler/ets_runtime/test/aottest/exception_case7/
Dexception_case7.js17 const handler = { variable
22 const p = new Proxy({}, handler)
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_proxy_test.cpp75 JSHandle<JSObject> handler = BuiltinsTestProxyCreate(thread); in HWTEST_F_L0() local
81 ecmaRuntimeCallInfo->SetCallArg(1, handler.GetTaggedValue()); in HWTEST_F_L0()
95 JSHandle<JSObject> handler = BuiltinsTestProxyCreate(thread); in HWTEST_F_L0() local
102 JSObject::DefineOwnProperty(thread, handler, key, desc); in HWTEST_F_L0()
108 ecmaRuntimeCallInfo->SetCallArg(1, handler.GetTaggedValue()); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/compiler/
Dic_stub_builder.cpp86 GateRef handler = CheckPolyHClass(cachedHandler->ReadVariable(), hclass); in ValuedICAccessor() local
87 cachedHandler->WriteVariable(handler); in ValuedICAccessor()
196 GateRef handler = GetValueFromTaggedArray(profileTypeInfo_, slotId_); in TryLoadGlobalICByName() local
198 Branch(TaggedIsHeapObject(handler), &isHeapObject, slowPath_); in TryLoadGlobalICByName()
201 GateRef ret = LoadGlobal(handler); in TryLoadGlobalICByName()
217 GateRef handler = GetValueFromTaggedArray(profileTypeInfo_, slotId_); in TryStoreGlobalICByName() local
219 Branch(TaggedIsHeapObject(handler), &isHeapObject, slowPath_); in TryStoreGlobalICByName()
222 GateRef ret = StoreGlobal(glue_, value_, handler); in TryStoreGlobalICByName()
/arkcompiler/toolchain/test/fuzztest/protocolhandlerwait_fuzzer/
Dprotocolhandlerwait_fuzzer.cpp38 ProtocolHandler handler(ph, vm); in ProtocolHandlerWaitFuzzTest() local
39 handler.WaitForDebugger(); in ProtocolHandlerWaitFuzzTest()
/arkcompiler/runtime_core/libpandafile/
Ddebug_info_extractor.cpp238 LineNumberProgramHandler handler(&state); in Extract() local
239 … LineNumberProgramProcessor<LineNumberProgramHandler> program_processor(program, &handler); in Extract()
243 const char *source_file = utf::Mutf8AsCString(handler.GetFile()); in Extract()
244 const char *source_code = utf::Mutf8AsCString(handler.GetSourceCode()); in Extract()
248 methods_.push_back({source_file, source_code, method_id, handler.GetLineNumberTable(), in Extract()
249 handler.GetLocalVariableTable(), std::move(param_info), in Extract()
250 handler.GetColumnNumberTable()}); in Extract()
/arkcompiler/toolchain/test/fuzztest/protocolhandlernotif_fuzzer/
Dprotocolhandlernotif_fuzzer.cpp37 ProtocolHandler handler(ph, vm); in ProtocolHandlerNotifFuzzTest() local
39 handler.SendNotification(event); in ProtocolHandlerNotifFuzzTest()
/arkcompiler/toolchain/test/fuzztest/protocolhandlerprocess_fuzzer/
Dprotocolhandlerprocess_fuzzer.cpp37 ProtocolHandler handler(ph, vm); in ProtocolHandlerProcessFuzzTest() local
38 handler.ProcessCommand(); in ProtocolHandlerProcessFuzzTest()

1234