| /ark/js_runtime/ecmascript/ic/ |
| D | ic_handler-inl.h | 27 uint32_t handler = 0; in LoadElement() local 28 KindBit::Set<uint32_t>(HandlerKind::ELEMENT, &handler); in LoadElement() 29 return JSHandle<JSTaggedValue>(thread, JSTaggedValue(handler)); in LoadElement() 34 uint32_t handler = 0; in LoadProperty() local 37 KindBit::Set<uint32_t>(HandlerKind::NON_EXIST, &handler); in LoadProperty() 38 return JSHandle<JSTaggedValue>(thread, JSTaggedValue(handler)); in LoadProperty() 47 AccessorBit::Set<uint32_t>(hasAccessor, &handler); in LoadProperty() 49 KindBit::Set<uint32_t>(HandlerKind::FIELD, &handler); in LoadProperty() 53 InlinedPropsBit::Set<uint32_t>(true, &handler); in LoadProperty() 56 OffsetBit::Set<uint32_t>(index, &handler); in LoadProperty() [all …]
|
| D | ic_handler.h | 45 static inline bool IsAccessor(uint32_t handler) in IsAccessor() argument 47 return AccessorBit::Get(handler); in IsAccessor() 50 static inline bool IsInternalAccessor(uint32_t handler) in IsInternalAccessor() argument 52 return InternalAccessorBit::Get(handler); in IsInternalAccessor() 55 static inline bool IsNonExist(uint32_t handler) in IsNonExist() argument 57 return GetKind(handler) == HandlerKind::NON_EXIST; in IsNonExist() 60 static inline bool IsField(uint32_t handler) in IsField() argument 62 return GetKind(handler) == HandlerKind::FIELD; in IsField() 65 static inline bool IsElement(uint32_t handler) in IsElement() argument 67 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() 57 JSTaggedValue handler = profileTypeInfo->Get(slotId); in StoreGlobalICByName() local 58 if (handler.IsHeapObject()) { in StoreGlobalICByName() 59 auto result = StoreGlobal(thread, value, handler); in StoreGlobalICByName() 193 … JSTaggedValue value, JSTaggedValue handler) in StoreICWithHandler() argument 196 if (handler.IsInt()) { in StoreICWithHandler() 197 auto handlerInfo = static_cast<uint32_t>(handler.GetInt()); in StoreICWithHandler() 206 if (handler.IsTransitionHandler()) { in StoreICWithHandler() [all …]
|
| D | profile_type_info.cpp | 22 …ccessor::AddElementHandler(JSHandle<JSTaggedValue> dynclass, JSHandle<JSTaggedValue> handler) const in AddElementHandler() 29 profileTypeInfo_->Set(thread_, index + 1, handler.GetTaggedValue()); in AddElementHandler() 35 profileTypeInfo_->Set(thread_, index + 1, handler.GetTaggedValue()); in AddElementHandler() 38 AddHandlerWithoutKey(dynclass, handler); in AddElementHandler() 41 …ssor::AddHandlerWithoutKey(JSHandle<JSTaggedValue> dynclass, JSHandle<JSTaggedValue> handler) const in AddHandlerWithoutKey() 45 profileTypeInfo_->Set(thread_, index, handler.GetTaggedValue()); in AddHandlerWithoutKey() 52 profileTypeInfo_->Set(thread_, index + 1, handler.GetTaggedValue()); in AddHandlerWithoutKey() 73 newArr->Set(thread_, i + 1, handler.GetTaggedValue()); in AddHandlerWithoutKey() 85 newArr->Set(thread_, arrIndex, handler.GetTaggedValue()); in AddHandlerWithoutKey() 92 JSHandle<JSTaggedValue> handler) const in AddHandlerWithKey() [all …]
|
| D | ic_runtime_stub.h | 43 JSTaggedValue handler); 45 JSTaggedValue value, JSTaggedValue handler); 47 JSTaggedValue handler); 49 JSTaggedValue value, JSTaggedValue handler); 51 …nline void StoreField(JSThread *thread, JSObject *receiver, JSTaggedValue value, uint32_t handler); 52 static inline JSTaggedValue LoadGlobal(JSTaggedValue handler); 53 …tic inline JSTaggedValue StoreGlobal(JSThread *thread, JSTaggedValue value, JSTaggedValue handler); 54 …nline JSTaggedValue LoadPrototype(JSThread *thread, JSTaggedValue receiver, JSTaggedValue handler);
|
| /ark/runtime_core/runtime/interpreter/templates/ |
| D | interpreter-inl_gen.h.erb | 34 …INSTRUMENT_FRAME() do { if (enable_instrumentation && (handler.GetFrame()->IsForcePop() || handler… 72 <%= namespace %>InstructionHandler<RuntimeIfaceT, enable_instrumentation> handler(&state); 74 handler.DumpVRegs(); 75 handler.InstrumentInstruction(); 76 …handler.template Handle<%= mnemonic %><BytecodeInstruction::Format::<%= i.format.pretty.upcase %>>… 78 handler.GetFrame()->GetAcc() = handler.GetAcc(); 81 if (handler.GetFrame()->IsStackless()) { 82 handler.HandleReturnStackless(); 83 …ASSERT(handler.IsPrimaryOpcodeValid() || (handler.GetExceptionOpcode() == UINT8_MAX + NUM_PREFIXED… 84 DISPATCH(GetDispatchTable(dispatch_table), handler.GetExceptionOpcode(), label); [all …]
|
| /ark/runtime_core/verification/type/ |
| D | type_type_inl.h | 27 template <typename Handler> 28 void Type::ForAllSupertypes(Handler &&handler) const in ForAllSupertypes() argument 30 GetTypeSystem().ForAllSupertypesOf(*this, std::move(handler)); in ForAllSupertypes() 33 template <typename Handler> 34 void Type::ForAllSupertypesOfSort(SortIdx sort, Handler &&handler) const in ForAllSupertypesOfSort() argument 36 ForAllSupertypes([this, &sort, &handler](const Type &type) { in ForAllSupertypesOfSort() 38 return handler(type); in ForAllSupertypesOfSort() 44 template <typename Handler> 45 void Type::ForAllSubtypes(Handler &&handler) const in ForAllSubtypes() argument 47 GetTypeSystem().ForAllSubtypesOf(*this, std::move(handler)); in ForAllSubtypes() [all …]
|
| D | type_type.h | 92 template <typename Handler> 93 void ForAllParams(Handler &&handler) const; 95 template <typename Handler> 96 void ForAllSupertypes(Handler &&handler) const; 98 template <typename Handler> 99 void ForAllSupertypesOfSort(SortIdx sort, Handler &&handler) const; 101 template <typename Handler> 102 void ForAllSubtypes(Handler &&handler) const; 104 template <typename Handler> 105 void ForAllSubtypesOfSort(SortIdx sort, Handler &&handler) const;
|
| D | type_set.h | 87 template <typename Handler> 88 bool ForAll(Handler &&handler) const in ForAll() argument 91 if (!handler(Type(Kind_, index))) { in ForAll() 98 template <typename Handler> 99 bool Exists(Handler &&handler) const in Exists() argument 101 return !ForAll([handler {std::move(handler)}](Type t) { return !handler(t); }); in Exists()
|
| D | type_parametric_inl.h | 23 template <typename Handler> 24 void ForAll(Handler &&handler) const in ForAll() argument 26 GetTypeSystem().ForAllTypes([this, &handler](const Type &type) { in ForAll() 28 return handler(type); in ForAll()
|
| /ark/runtime_core/verification/debug/options/ |
| D | method_options.h | 104 template <typename Handler> 105 …InMsgClassThen(VerifierMessagesEnum msg_num, MethodOption::MsgClass klass, Handler &&handler) const in IfInMsgClassThen() argument 108 handler(); in IfInMsgClassThen() 112 template <typename Handler> 113 …InMsgClassThen(VerifierMessagesEnum msg_num, MethodOption::MsgClass klass, Handler &&handler) const in IfNotInMsgClassThen() argument 116 handler(); in IfNotInMsgClassThen() 151 template <typename Handler> 152 void IfError(Handler &&handler) const in IfError() argument 154 opts.IfInMsgClassThen(num, MethodOption::MsgClass::ERROR, std::move(handler)); in IfError() 157 template <typename Handler> [all …]
|
| /ark/runtime_core/docs/bc_verification/ |
| D | cflow_checks.md | 11 handler 20 handler 25 handler 36 The layout of exception handlers is quite flexible, even nesting of a handler in another handler is… 50 handler 69 handler 87 handler 103 ### Code to exception handler 118 handler 136 handler [all …]
|
| /ark/js_runtime/ecmascript/tooling/ |
| D | debugger_service.cpp | 26 ProtocolHandler *handler = vm->GetJsDebuggerManager()->GetDebuggerHandler(); in InitializeDebugger() local 27 if (handler != nullptr) { in InitializeDebugger() 36 ProtocolHandler *handler = vm->GetJsDebuggerManager()->GetDebuggerHandler(); in UninitializeDebugger() local 37 delete handler; in UninitializeDebugger() 43 ProtocolHandler *handler = vm->GetJsDebuggerManager()->GetDebuggerHandler(); in WaitForDebugger() local 44 if (LIKELY(handler != nullptr)) { in WaitForDebugger() 45 handler->WaitForDebugger(); in WaitForDebugger() 51 ProtocolHandler *handler = vm->GetJsDebuggerManager()->GetDebuggerHandler(); in DispatchMessage() local 52 if (LIKELY(handler != nullptr)) { in DispatchMessage() 53 handler->DispatchCommand(std::move(message)); in DispatchMessage() [all …]
|
| /ark/runtime_core/verification/util/ |
| D | saturated_enum.h | 61 template <typename Handler> 62 void EnumerateValues(Handler &&handler) const in EnumerateValues() argument 64 Enumerate(std::move(handler), false); in EnumerateValues() 85 template <typename Handler> 86 void Enumerate(Handler &&handler, bool prev_set) const in Enumerate() argument 90 handler(E); in Enumerate() 124 template <typename Handler> 125 void EnumerateValues(Handler &&handler) const in EnumerateValues() argument 127 Enumerate(std::move(handler), false); in EnumerateValues() 152 template <typename Handler> [all …]
|
| D | relation.h | 86 template <typename Handler> 87 void ForAllFrom(RelIndex from, Handler &&handler) const in ForAllFrom() argument 90 Direct_[from].ForAll(handler); in ForAllFrom() 93 template <typename Handler> 94 void ForAllTo(RelIndex to, Handler &&handler) const in ForAllTo() argument 97 Inverse_[to].ForAll(handler); in ForAllTo() 100 template <typename Handler> 101 void ForAllBetween(RelIndex from, RelIndex to, Handler &&handler) const in ForAllBetween() argument 111 if (!handler(value)) { in ForAllBetween()
|
| D | flags.h | 63 template <typename Handler> 64 void EnumerateFlags(Handler &&handler) const in EnumerateFlags() argument 67 handler(Flag); in EnumerateFlags() 120 template <typename Handler> 121 void EnumerateFlags(Handler &&handler) const in EnumerateFlags() argument 123 if (typename Base::ConstBit {mask, Base::flags_} == true && !handler(Flag)) { in EnumerateFlags() 126 Base::template EnumerateFlags<Handler>(std::move(handler)); in EnumerateFlags()
|
| D | synchronized.h | 138 template <typename Handler> 139 void operator()(Handler &&handler) NO_THREAD_SAFETY_ANALYSIS in operator() 142 handler(Proxy {this}); in operator() 145 template <typename Handler> 146 void operator()(Handler &&handler) const NO_THREAD_SAFETY_ANALYSIS in operator() 149 handler(ConstProxy {this}); in operator()
|
| /ark/js_runtime/ecmascript/ |
| D | js_proxy.cpp | 25 // ES6 9.5.15 ProxyCreate(target, handler) 27 const JSHandle<JSTaggedValue> &handler) in ProxyCreate() argument 35 // 2. If Type(handler) is not Object, throw a TypeError exception. in ProxyCreate() 36 if (!handler->IsECMAObject()) { in ProxyCreate() 37 THROW_TYPE_ERROR_AND_RETURN(thread, "ProxyCreate: handler is not Object", in ProxyCreate() 44 // 9. Set the [[ProxyHandler]] internal slot of P to handler. in ProxyCreate() 45 return thread->GetEcmaVM()->GetFactory()->NewJSProxy(target, handler); in ProxyCreate() 51 // 1. Let handler be the value of the [[ProxyHandler]] internal slot of O. in GetPrototype() 52 JSHandle<JSTaggedValue> handler(thread, proxy->GetHandler()); in GetPrototype() local 53 // 2. If handler is null, throw a TypeError exception. in GetPrototype() [all …]
|
| /ark/runtime_core/verification/absint/ |
| D | panda_types.h | 346 template <typename Handler> 347 void ForSubtypesOf(const Type &type, Handler &&handler) const in ForSubtypesOf() argument 349 type.ForAllSubtypes(std::move(handler)); in ForSubtypesOf() 351 template <typename Handler> 352 void ForSupertypesOf(const Type &type, Handler &&handler) const in ForSupertypesOf() argument 354 type.ForAllSupertypes(std::move(handler)); in ForSupertypesOf() 374 template <typename Handler> 375 void DisplayMethods(Handler handler) in DisplayMethods() argument 379 handler(MethodNameOfId(item.first), ImageOf(item.second)); in DisplayMethods() 383 handler(MethodNameOfId(item.first), ImageOf(item.second)); in DisplayMethods() [all …]
|
| D | exec_context.h | 163 template <typename Handler> 164 void ForAllTypesOfRegAccordingToTypecasts(int reg, const RegContext &ctx, Handler &&handler) 168 if (!handler(atv)) { 176 … ForAllTypesOfRegAccordingToTypecasts(reg, RegContextOnTarget(ptr), std::move(handler)); 190 template <typename Handler> 191 void ForContextsOnCheckPointsInRange(const uint8_t *from, const uint8_t *to, Handler handler) 193 …CheckPoint_.EnumerateMarksInScope<const uint8_t *>(from, to, [&handler, this](const uint8_t *ptr) { 195 return handler(ptr, RegContextOnCheckPoint_[ptr]);
|
| /ark/runtime_core/verification/job_queue/ |
| D | job.h | 121 template <typename Handler> 122 void ForAllCachedClasses(Handler &&handler) const in ForAllCachedClasses() argument 125 handler(item.second.get()); in ForAllCachedClasses() 129 template <typename Handler> 130 void ForAllCachedMethods(Handler &&handler) const in ForAllCachedMethods() argument 133 handler(item.second.get()); in ForAllCachedMethods() 137 template <typename Handler> 138 void ForAllCachedFields(Handler &&handler) const in ForAllCachedFields() argument 141 handler(item.second.get()); in ForAllCachedFields()
|
| /ark/runtime_core/verification/cflow/ |
| D | cflow_check_options.h | 24 ALLOW_JMP_BODY_TO_HANDLER = 0, // code -> start of exception handler 25 ALLOW_JMP_BODY_INTO_HANDLER, // code -> into body of exception handler 26 ALLOW_JMP_HANDLER_TO_HANDLER, // handler -> start of handler 27 ALLOW_JMP_HANDLER_INTO_HANDLER, // handler -> into body of other handler 28 ALLOW_JMP_HANDLER_INTO_BODY, // handler -> into code
|
| /ark/runtime_core/libpandabase/os/unix/sighooklib/ |
| D | sighook.cpp | 106 // SIGSEGV from signal handler must be handled as well in RegisterAction() 110 handler_action.sa_sigaction = SignalHook::Handler; in RegisterAction() 111 // SA_NODEFER+: do not block signals from the signal handler in RegisterAction() 112 // SA_ONSTACK-: call signal handler on the same stack in RegisterAction() 121 for (SighookAction &handler : hook_action_handlers_) { in RegisterHookAction() 122 if (handler.sc_sigaction == nullptr) { in RegisterHookAction() 123 handler = *sa; in RegisterHookAction() 165 static void Handler(int signo, siginfo_t *siginfo, void *ucontext_raw); 179 LOG(FATAL, RUNTIME) << "Failed to find removed hook handler"; in RemoveHookAction() 189 for (SighookAction &handler : hook_action_handlers_) { in ClearHookActionHandlers() [all …]
|
| /ark/runtime_core/docs/ |
| D | interpreter-language-extensions.md | 25 InstructionHandler<...> handler(&state); 26 handler.template HandleOp1<Format1>(); 31 InstructionHandler<...> handler(&state); 32 handler.template HandleOp2<Format2>(); 84 InstructionHandler<...> handler(&state); 85 handler.template HandleOp1<Format1>(); 92 ECMAInstructionHandler<...> handler(&state); 93 handler.template HandleEcmaOp1<Format2>();
|
| /ark/runtime_core/verification/gen/templates/ |
| D | abs_int_inl_gen.h.erb | 33 AbsIntInstructionHandler handler(v_ctx, pc, code_type); 36 if (!handler.IsPrimaryOpcodeValid()) { 40 goto* dispatch_table[handler.GetPrimaryOpcode()]; 48 …if (!handler.template Handle<%= mnemonic %><BytecodeInstructionSafe::Format::<%= i.format.pretty.u… 49 return handler.GetStatus(); 52 if (!handler.IsPrimaryOpcodeValid()) { 59 goto* dispatch_table[handler.GetPrimaryOpcode()]; 66 secondary_opcode = handler.GetSecondaryOpcode();
|