| /arkcompiler/ets_runtime/ecmascript/ic/ |
| D | ic_handler.h | 47 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 …]
|
| D | ic_runtime_stub-inl.h | 42 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 …]
|
| D | ic_runtime_stub.h | 44 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);
|
| D | profile_type_info.cpp | 23 …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 …]
|
| D | profile_type_info.h | 121 … 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/ |
| D | cflow_checks.md | 11 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/ |
| D | debugger_service.cpp | 27 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/ |
| D | pgo_profiler_layout.cpp | 24 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 …]
|
| D | pgo_profiler_layout.h | 170 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/ |
| D | debugger_service_test.cpp | 55 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/ |
| D | varianceCallbacksAndIndexedAccesses.ts | 38 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;
|
| D | instantiateContextualTypes.ts | 87 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>");
|
| D | noCrashOnThisTypeUsage.ts | 23 observe(handler: (change: any, oldValue?: any) => void, fireImmediately?: boolean): void 64 observe(handler: (change: any, oldValue?: any) => void, fireImmediately?: boolean) {}
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | js_proxy.cpp | 28 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/ |
| D | proxy.ts | 23 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/ |
| D | vregisterCache.ts | 65 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/ |
| D | ic_runtime_stub_test.cpp | 255 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/ |
| D | test-try-statement-expected.txt | 20 "handler": { 102 "handler": { 171 "handler": null, 213 "handler": { 282 "handler": {
|
| /arkcompiler/ets_runtime/test/aottest/exception_case7/ |
| D | exception_case7.js | 17 const handler = { variable 22 const p = new Proxy({}, handler)
|
| /arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
| D | builtins_proxy_test.cpp | 75 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/ |
| D | ic_stub_builder.cpp | 86 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/ |
| D | protocolhandlerwait_fuzzer.cpp | 38 ProtocolHandler handler(ph, vm); in ProtocolHandlerWaitFuzzTest() local 39 handler.WaitForDebugger(); in ProtocolHandlerWaitFuzzTest()
|
| /arkcompiler/runtime_core/libpandafile/ |
| D | debug_info_extractor.cpp | 238 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/ |
| D | protocolhandlernotif_fuzzer.cpp | 37 ProtocolHandler handler(ph, vm); in ProtocolHandlerNotifFuzzTest() local 39 handler.SendNotification(event); in ProtocolHandlerNotifFuzzTest()
|
| /arkcompiler/toolchain/test/fuzztest/protocolhandlerprocess_fuzzer/ |
| D | protocolhandlerprocess_fuzzer.cpp | 37 ProtocolHandler handler(ph, vm); in ProtocolHandlerProcessFuzzTest() local 38 handler.ProcessCommand(); in ProtocolHandlerProcessFuzzTest()
|