| /arkcompiler/ets_runtime/ecmascript/ic/ |
| D | ic_handler.h | 74 static inline bool IsAccessor(uint32_t handler) in IsAccessor() argument 76 return AccessorBit::Get(handler); in IsAccessor() 79 static inline bool IsInternalAccessor(uint32_t handler) in IsInternalAccessor() argument 81 return InternalAccessorBit::Get(handler); in IsInternalAccessor() 84 static inline TrackType GetTrackType(uint32_t handler) in GetTrackType() argument 86 return static_cast<TrackType>(STrackTypeBit::Get(handler)); in GetTrackType() 89 static inline bool IsNonExist(uint32_t handler) in IsNonExist() argument 91 return GetKind(handler) == HandlerKind::NON_EXIST; in IsNonExist() 94 static inline bool IsField(uint32_t handler) in IsField() argument 96 return GetKind(handler) == HandlerKind::FIELD; in IsField() [all …]
|
| D | ic_runtime_stub-inl.h | 43 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() 219 … JSTaggedValue value, JSTaggedValue handler) in StoreICWithHandler() argument 222 if (handler.IsInt()) { in StoreICWithHandler() 223 auto handlerInfo = static_cast<uint32_t>(handler.GetInt()); in StoreICWithHandler() 243 if (handler.IsTransitionHandler()) { in StoreICWithHandler() [all …]
|
| D | ic_runtime_stub.h | 44 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, uint32_t handler); 59 static inline JSTaggedValue LoadGlobal(JSTaggedValue handler); 60 …tic inline JSTaggedValue StoreGlobal(JSThread *thread, JSTaggedValue value, JSTaggedValue handler); [all …]
|
| 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 …]
|
| /arkcompiler/ets_frontend/ets2panda/linter-4.2/test/ |
| D | limited_stdlib_api.ts | 71 let handler: ProxyHandler<C> = {}; variable 72 if (handler.apply) handler.apply(c, c, []); 73 if (handler.construct) handler.construct(c, [], () => {}); 74 if (handler.defineProperty) handler.defineProperty(c, "prop", {}); 75 if (handler.deleteProperty) handler.deleteProperty(c, "prop"); 76 if (handler.get) handler.get(c, "prop", {}); 77 if (handler.getOwnPropertyDescriptor) handler.getOwnPropertyDescriptor(c, "prop"); 78 if (handler.getPrototypeOf) handler.getPrototypeOf(c); 79 if (handler.has) handler.has(c, "prop"); 80 if (handler.isExtensible) handler.isExtensible(c); [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/ |
| D | limited_stdlib_api.ts | 104 let handler: ProxyHandler<C> = {}; variable 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/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/runtime_core/static_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/runtime_core/static_core/runtime/tooling/inspector/ |
| D | inspector_server.cpp | 50 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() 212 std::function<void(PtThread, std::string_view, size_t)> &&handler) in OnCallDebuggerContinueToLocation() argument [all …]
|
| D | inspector_server.h | 56 void OnValidate(std::function<void()> &&handler); 57 void OnOpen(std::function<void()> &&handler); 58 void OnFail(std::function<void()> &&handler); 71 …nCallDebuggerContinueToLocation(std::function<void(PtThread, std::string_view, size_t)> &&handler); 73 std::function<std::set<size_t>(std::string_view, size_t, size_t, bool)> &&handler); 74 void OnCallDebuggerGetScriptSource(std::function<std::string(std::string_view)> &&handler); 75 void OnCallDebuggerPause(std::function<void(PtThread)> &&handler); 76 void OnCallDebuggerRemoveBreakpoint(std::function<void(PtThread, BreakpointId)> &&handler); 77 void OnCallDebuggerRestartFrame(std::function<void(PtThread, FrameId)> &&handler); 78 void OnCallDebuggerResume(std::function<void(PtThread)> &&handler); [all …]
|
| D | server_endpoint.h | 31 void OnValidate(std::function<void()> &&handler) override in OnValidate() argument 33 onValidate_ = std::move(handler); in OnValidate() 36 void OnOpen(std::function<void()> &&handler) override in OnOpen() argument 38 onOpen_ = std::move(handler); in OnOpen() 41 void OnFail(std::function<void()> &&handler) override in OnFail() argument 43 onFail_ = std::move(handler); in OnFail() 52 &&handler) override;
|
| D | endpoint.cpp | 24 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() local 53 handler->second(sessionId != nullptr ? *sessionId : std::string(), in HandleMessage() 65 if (auto handler = resultHandlers_.extract(*id)) { in HandleMessage() local 66 handler.mapped()(**result); in HandleMessage()
|
| /arkcompiler/runtime_core/static_core/runtime/interpreter/templates/ |
| D | interpreter-inl_gen.h.erb | 47 #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(); 183 …handler.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/ |
| D | recipe144.md | 27 ``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/ets_frontend/ets2panda/linter-4.2/docs/rules/ |
| D | recipe144.md | 26 ``Proxy``: ``handler.apply()``, ``handler.construct()``, 27 ``handler.defineProperty()``, ``handler.deleteProperty()``, ``handler.get()``, 28 ``handler.getOwnPropertyDescriptor()``, ``handler.getPrototypeOf()``, 29 ``handler.has()``, ``handler.isExtensible()``, ``handler.ownKeys()``, 30 ``handler.preventExtensions()``, ``handler.set()``, ``handler.setPrototypeOf()``
|
| /arkcompiler/runtime_core/static_core/verification/type/ |
| D | type_system.cpp | 47 Job::ErrorHandler handler; in __anon046b39260102() local 48 auto *klass = service->GetClassLinker()->GetClass(descr, true, linkerCtx_, &handler); in __anon046b39260102() 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/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/runtime_core/static_core/runtime/tooling/inspector/tests/ |
| D | inspector_server.cpp | 37 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)); 128 …L(server1, OnCallMock("Debugger.enable", testing::_)).WillOnce([&](testing::Unused, auto handler) { in TEST_F() argument 131 handler(g_sessionId, res, empty); in TEST_F() 138 static auto g_simpleHandler = []([[maybe_unused]] auto unused, auto handler) { in __anond6c00cd00302() argument 141 handler(g_sessionId, res, empty); in __anond6c00cd00302() [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/mem/ |
| D | object_helpers-inl.h | 35 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() 103 Handler &handler) in TraverseArray() argument 126 [[maybe_unused]] bool res = handler(array, arrayElement, offset, false); in TraverseArray() 139 bool GCStaticObjectHelpers::TraverseAllObjectsWithInfo(ObjectHeader *objectHeader, Handler &handler… in TraverseAllObjectsWithInfo() argument 146 …verseArray<INTERRUPTIBLE>(static_cast<coretypes::Array *>(objectHeader), cls, begin, end, handler); in TraverseAllObjectsWithInfo() 151 if (!TraverseClass<INTERRUPTIBLE>(objectCls, handler)) { in TraverseAllObjectsWithInfo() 156 return TraverseObject<INTERRUPTIBLE>(objectHeader, cls, handler); in TraverseAllObjectsWithInfo() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/pgo_profiler/ |
| D | pgo_profiler_layout.cpp | 157 void HClassLayoutDesc::InsertKeyAndDesc(const PGOHandler &handler, PropertyDesc &desc) in InsertKeyAndDesc() argument 160 if (oldHandler == handler) { in InsertKeyAndDesc() 164 auto newTrackType = handler.GetTrackType(); in InsertKeyAndDesc() 166 desc.second.SetPropertyMeta(handler.GetPropertyMeta()); in InsertKeyAndDesc() 172 desc.second.SetPropertyMeta(handler.GetPropertyMeta()); in InsertKeyAndDesc() 181 desc.second = PGOHandler(newTrackType, handler.GetPropertyMeta()); in InsertKeyAndDesc() 199 void RootHClassLayoutDesc::InsertKeyAndDesc(const CString &key, const PGOHandler &handler) in InsertKeyAndDesc() argument 201 if (!UpdateKeyAndDesc(key, handler)) { in InsertKeyAndDesc() 202 layoutDesc_.emplace_back(key, handler); in InsertKeyAndDesc() 206 bool RootHClassLayoutDesc::UpdateKeyAndDesc(const CString &key, const PGOHandler &handler) in UpdateKeyAndDesc() argument [all …]
|
| /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() 55 JSHandle<JSTaggedValue> handler(thread, proxy->GetHandler()); in GetPrototype() local 57 if (handler->IsNull()) { in GetPrototype() 61 ASSERT(handler->IsECMAObject()); in GetPrototype() 66 JSHandle<JSTaggedValue> trap = JSObject::GetMethod(thread, handler, name); in GetPrototype() 76 …EcmaRuntimeCallInfo *info = EcmaInterpreter::NewRuntimeCallInfo(thread, trap, handler, undefined, … in GetPrototype() 117 JSTaggedValue handler = proxy->GetHandler(); in SetPrototype() local 119 if (handler.IsNull()) { in SetPrototype() [all …]
|
| /arkcompiler/runtime_core/static_core/verification/util/ |
| D | saturated_enum.h | 64 void EnumerateValues(Handler &&handler) const in EnumerateValues() argument 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() argument 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/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);
|