| /arkcompiler/ets_runtime/ecmascript/ic/ |
| 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() 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 …]
|
| /arkcompiler/runtime_core/verification/type/ |
| D | type_type_inl.h | 28 template <typename Handler> 29 void Type::ForAllSupertypes(Handler &&handler) const in ForAllSupertypes() argument 31 GetTypeSystem().ForAllSupertypesOf(*this, std::move(handler)); in ForAllSupertypes() 34 template <typename Handler> 35 void Type::ForAllSupertypesOfSort(SortIdx sort, Handler &&handler) const in ForAllSupertypesOfSort() argument 37 ForAllSupertypes([this, &sort, &handler](const Type &type) { in ForAllSupertypesOfSort() 39 return handler(type); in ForAllSupertypesOfSort() 45 template <typename Handler> 46 void Type::ForAllSubtypes(Handler &&handler) const in ForAllSubtypes() argument 48 GetTypeSystem().ForAllSubtypesOf(*this, std::move(handler)); in ForAllSubtypes() [all …]
|
| D | type_type.h | 97 template <typename Handler> 98 void ForAllParams(Handler &&handler) const; 100 template <typename Handler> 101 void ForAllSupertypes(Handler &&handler) const; 103 template <typename Handler> 104 void ForAllSupertypesOfSort(SortIdx sort, Handler &&handler) const; 106 template <typename Handler> 107 void ForAllSubtypes(Handler &&handler) const; 109 template <typename Handler> 110 void ForAllSubtypesOfSort(SortIdx sort, Handler &&handler) const;
|
| D | type_set.h | 93 template <typename Handler> 94 bool ForAll(Handler &&handler) const in ForAll() argument 96 return Numbers_.ForAll([&](TypeNum num) { return handler(Type(kind_, threadnum_, num)); }); in ForAll() 99 template <typename Handler> 100 bool Exists(Handler &&handler) const in Exists() argument 102 return !ForAll([handler {std::move(handler)}](Type t) { return !handler(t); }); in Exists()
|
| /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/runtime/interpreter/templates/ |
| D | interpreter-inl_gen.h.erb | 35 #define INSTRUMENT_FRAME() do { if (handler.GetFrame()->IsForcePop() || handler.GetFrame()->IsRetry… 93 <%= namespace %>InstructionHandler<RuntimeIfaceT, is_dynamic> handler(&state); 95 handler.DumpVRegs(); 96 …handler.template Handle<%= mnemonic %><BytecodeInstruction::Format::<%= i.format.pretty.upcase %>>… 98 if (handler.GetFrame()->IsStackless()) { 99 handler.HandleReturnStackless(); 100 …ASSERT(handler.IsPrimaryOpcodeValid() || (handler.GetExceptionOpcode() == UINT8_MAX + NUM_PREFIXED… 101 DISPATCH(GetDispatchTable(dispatch_table), handler.GetExceptionOpcode(), label); 107 …ASSERT(handler.IsPrimaryOpcodeValid() || (handler.GetExceptionOpcode() == UINT8_MAX + NUM_PREFIXED… 108 DISPATCH(GetDispatchTable(dispatch_table), handler.GetExceptionOpcode(), label); [all …]
|
| /arkcompiler/runtime_core/runtime/mem/ |
| D | object_helpers-inl.h | 29 template <typename Handler> 30 void GCStaticObjectHelpers::TraverseClass(Class *cls, Handler &handler) in TraverseClass() argument 48 bool res = handler(object, field_object, obj_offset, is_volatile); in TraverseClass() 56 template <typename Handler> 57 void GCStaticObjectHelpers::TraverseObject(ObjectHeader *object, Class *cls, Handler &handler) in TraverseObject() argument 78 bool res = handler(object, field_object, offset, is_volatile); in TraverseObject() 88 template <typename Handler> 89 …bjectHelpers::TraverseArray(coretypes::Array *array, [[maybe_unused]] Class *cls, Handler &handler) in TraverseArray() argument 98 bool res = handler(array, array_element, array->GetElementOffset<false>(i), false); in TraverseArray() 106 template <typename Handler> [all …]
|
| D | object_helpers.h | 117 * Traverse all kinds of object_header and call handler for each reference field. 118 … * The handler accepts the object, the reference value, offset to the reference in the object and 121 template <typename Handler> 122 static void TraverseAllObjectsWithInfo(ObjectHeader *object, Handler &handler); 134 template <typename Handler> 135 static void TraverseClass(Class *cls, Handler &handler); 136 template <typename Handler> 137 static void TraverseArray(coretypes::Array *array, Class *cls, Handler &handler); 138 template <typename Handler> 139 static void TraverseObject(ObjectHeader *object_header, Class *cls, Handler &handler); [all …]
|
| /arkcompiler/runtime_core/verification/config/options/ |
| D | method_options.h | 101 template <typename Handler> 102 …void IfInMsgClassThen(VerifierMessage msg_num, MethodOption::MsgClass klass, Handler &&handler) co… in IfInMsgClassThen() argument 105 handler(); in IfInMsgClassThen() 109 template <typename Handler> 110 …IfNotInMsgClassThen(VerifierMessage msg_num, MethodOption::MsgClass klass, Handler &&handler) const in IfNotInMsgClassThen() argument 113 handler(); in IfNotInMsgClassThen() 145 template <typename Handler> 146 void IfError(Handler &&handler) const in IfError() argument 148 opts.IfInMsgClassThen(num, MethodOption::MsgClass::ERROR, std::move(handler)); in IfError() 151 template <typename 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/verification/absint/ |
| D | panda_types.h | 294 template <typename Handler> 295 void ForSubtypesOf(const Type &type, Handler &&handler) const in ForSubtypesOf() argument 297 type.ForAllSubtypes(std::forward<Handler>(handler)); in ForSubtypesOf() 299 template <typename Handler> 300 void ForSupertypesOf(const Type &type, Handler &&handler) const in ForSupertypesOf() argument 302 type.ForAllSupertypes(std::forward<Handler>(handler)); in ForSupertypesOf() 322 template <typename Handler> 323 void DisplayMethods(Handler handler) in DisplayMethods() argument 327 handler(MethodNameOfId(item.first), ImageOf(item.second)); in DisplayMethods() 331 handler(MethodNameOfId(item.first), ImageOf(item.second)); in DisplayMethods() [all …]
|
| D | exec_context.h | 160 template <typename Handler> 161 void ForAllTypesOfRegAccordingToTypecasts(int reg, const RegContext &ctx, Handler &&handler) in ForAllTypesOfRegAccordingToTypecasts() argument 165 if (!handler(atv)) { in ForAllTypesOfRegAccordingToTypecasts() 173 … ForAllTypesOfRegAccordingToTypecasts(reg, RegContextOnTarget(ptr), std::move(handler)); in ForAllTypesOfRegAccordingToTypecasts() 187 template <typename Handler> 188 void ForContextsOnCheckPointsInRange(const uint8_t *from, const uint8_t *to, Handler handler) in ForContextsOnCheckPointsInRange() argument 190 …CheckPoint_.EnumerateMarksInScope<const uint8_t *>(from, to, [&handler, this](const uint8_t *ptr) { in ForContextsOnCheckPointsInRange() 192 return handler(ptr, RegContextOnCheckPoint_[ptr]); in ForContextsOnCheckPointsInRange()
|
| /arkcompiler/runtime_core/verification/util/ |
| D | saturated_enum.h | 62 template <typename Handler> 63 void EnumerateValues(Handler &&handler) const in EnumerateValues() argument 65 Enumerate(std::move(handler), false); in EnumerateValues() 86 template <typename Handler> 87 void Enumerate(Handler &&handler, bool prev_set) const in Enumerate() argument 91 handler(E); in Enumerate() 125 template <typename Handler> 126 void EnumerateValues(Handler &&handler) const in EnumerateValues() argument 128 Enumerate(std::move(handler), false); in EnumerateValues() 153 template <typename Handler> [all …]
|
| D | relation.h | 88 template <typename Handler> 89 void ForAllFrom(RelIndex from, Handler &&handler) const in ForAllFrom() argument 92 Direct_[from].ForAll(handler); in ForAllFrom() 95 template <typename Handler> 96 void ForAllTo(RelIndex to, Handler &&handler) const in ForAllTo() argument 99 Inverse_[to].ForAll(handler); in ForAllTo() 102 template <typename Handler> 103 void ForAllBetween(RelIndex from, RelIndex to, Handler &&handler) const in ForAllBetween() argument 113 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() 121 template <typename Handler> 122 void EnumerateFlags(Handler &&handler) const in EnumerateFlags() argument 124 if (typename Base::ConstBit {mask, Base::flags_} && !handler(Flag)) { in EnumerateFlags() 127 Base::template EnumerateFlags<Handler>(std::move(handler)); in EnumerateFlags()
|
| D | synchronized.h | 130 template <typename Handler> 131 auto Apply(Handler &&handler) in Apply() argument 134 return handler(c); in Apply() 137 template <typename Handler> 138 auto Apply(Handler &&handler) const in Apply() argument 141 return handler(c); in Apply()
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | js_proxy.cpp | 26 // ES6 9.5.15 ProxyCreate(target, handler) 28 const JSHandle<JSTaggedValue> &handler) in ProxyCreate() argument 36 // 2. If Type(handler) is not Object, throw a TypeError exception. in ProxyCreate() 37 if (!handler->IsECMAObject()) { in ProxyCreate() 38 THROW_TYPE_ERROR_AND_RETURN(thread, "ProxyCreate: handler is not Object", in ProxyCreate() 45 // 9. Set the [[ProxyHandler]] internal slot of P to handler. in ProxyCreate() 46 return thread->GetEcmaVM()->GetFactory()->NewJSProxy(target, handler); in ProxyCreate() 53 // 1. Let handler be the value of the [[ProxyHandler]] internal slot of O. in GetPrototype() 54 JSHandle<JSTaggedValue> handler(thread, proxy->GetHandler()); in GetPrototype() local 55 // 2. If handler is null, throw a TypeError exception. in GetPrototype() [all …]
|
| /arkcompiler/runtime_core/verification/jobs/ |
| D | job.h | 81 template <typename Handler> 82 void ForAllCachedClasses(Handler &&handler) const in ForAllCachedClasses() argument 85 handler(item.second.get()); in ForAllCachedClasses() 89 template <typename Handler> 90 void ForAllCachedMethods(Handler &&handler) const in ForAllCachedMethods() argument 93 handler(item.second.get()); in ForAllCachedMethods() 97 template <typename Handler> 98 void ForAllCachedFields(Handler &&handler) const in ForAllCachedFields() argument 101 handler(item.second.get()); in ForAllCachedFields()
|
| /arkcompiler/runtime_core/verification/cflow/ |
| D | cflow_check_options.h | 24 bool AllowJmpBodyToHandler = false; // code -> start of exception handler 25 bool AllowJmpBodyIntoHandler = false; // code -> into body of exception handler 26 bool AllowJmpHandlerToHandler = false; // handler -> start of handler 27 bool AllowJmpHandlerIntoHandler = false; // handler -> into body of other handler 28 bool AllowJmpHandlerIntoBody = false; // handler -> into code
|
| /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() 341 // handler is Init and HandlerBase Is Accessor,then call CallSetter function. in HWTEST_F_L0() [all …]
|
| /arkcompiler/runtime_core/verification/gen/templates/ |
| D | abs_int_inl_gen.h.erb | 33 AbsIntInstructionHandler handler(verif_ctx, pc, code_type); 36 if (!handler.IsPrimaryOpcodeValid()) { 40 goto* dispatch_table[handler.GetPrimaryOpcode()]; 49 …if (!handler.template Handle<%= mnemonic %><BytecodeInstructionSafe::Format::<%= i.format.pretty.u… 50 return handler.GetStatus(); 54 if (!handler.IsPrimaryOpcodeValid()) { 61 goto* dispatch_table[handler.GetPrimaryOpcode()]; 68 secondary_opcode = handler.GetSecondaryOpcode();
|
| /arkcompiler/runtime_core/tests/cts-generator/cts-template/ |
| D | throw.yaml | 309 …ated in register. The current method is searched for the first exception handler that matches the … 394 …ated in register. The current method is searched for the first exception handler that matches the … 480 …ated in register. The current method is searched for the first exception handler that matches the … 513 …ated in register. The current method is searched for the first exception handler that matches the … 622 … first exception handler that matches the class of exception. If exception handler is found, contr… 695 … first exception handler that matches the class of exception. If exception handler is found, contr… 769 …description: If no exception handler is found, the frame of invoker is restored. If such frame exi… 815 …description: If no exception handler is found, the frame of invoker is restored. If such frame exi… 863 …If no exception handler is found, the frame of invoker is restored. If such frame exists, the exce… 864 …exception handler is found, the frame of invoker is restored. If such frame exists, the exception … [all …]
|