| /arkcompiler/runtime_core/static_core/runtime/tooling/inspector/tests/ |
| D | thread_state.cpp | 28 state.Reset(); in SetUp() 32 ThreadState state; member in ark::tooling::inspector::test::ThreadStateTest 42 ASSERT_FALSE(state.IsPaused()); in TEST_F() 43 state.OnSingleStep(fake); in TEST_F() 44 ASSERT_FALSE(state.IsPaused()); in TEST_F() 46 state.BreakOnStart(); in TEST_F() 47 state.OnSingleStep(fake); in TEST_F() 48 ASSERT_TRUE(state.IsPaused()); in TEST_F() 53 state.Pause(); in TEST_F() 54 state.OnSingleStep(fake); in TEST_F() [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/ |
| D | monitor_object_lock.cpp | 28 ASSERT(res == Monitor::State::OK); in ObjectLock() 33 …Monitor::State state = Monitor::Wait(objHandler_.GetPtr(), ThreadStatus::IS_WAITING, 0, 0, ignoreI… in Wait() local 34 LOG_IF(state == Monitor::State::ILLEGAL, FATAL, RUNTIME) << "Monitor::Wait() failed"; in Wait() 35 return state != Monitor::State::INTERRUPTED; in Wait() 40 …Monitor::State state = Monitor::Wait(objHandler_.GetPtr(), ThreadStatus::IS_TIMED_WAITING, timeout… in TimedWait() local 41 LOG_IF(state == Monitor::State::ILLEGAL, FATAL, RUNTIME) << "Monitor::Wait() failed"; in TimedWait() 42 return state != Monitor::State::INTERRUPTED; in TimedWait() 47 Monitor::State state = Monitor::Notify(objHandler_.GetPtr()); in Notify() local 48 LOG_IF(state != Monitor::State::OK, FATAL, RUNTIME) << "Monitor::Notify() failed"; in Notify() 53 Monitor::State state = Monitor::NotifyAll(objHandler_.GetPtr()); in NotifyAll() local [all …]
|
| D | class.cpp | 27 std::ostream &operator<<(std::ostream &os, const Class::State &state) in operator <<() argument 29 switch (state) { in operator <<() 30 case Class::State::INITIAL: { in operator <<() 34 case Class::State::LOADED: { in operator <<() 38 case Class::State::VERIFIED: { in operator <<() 42 case Class::State::INITIALIZING: { in operator <<() 46 case Class::State::ERRONEOUS: { in operator <<() 50 case Class::State::INITIALIZED: { in operator <<() 95 state_ = State::INITIAL; in Class() 105 void Class::SetState(Class::State state) in SetState() argument [all …]
|
| D | monitor.cpp | 137 std::optional<ark::Monitor::State> Monitor::HandleLightLockedState(MarkWord &mark, MTManagedThread … in HandleLightLockedState() 153 return Monitor::State::OK; in HandleLightLockedState() 162 return Monitor::State::ILLEGAL; in HandleLightLockedState() 189 return Monitor::State::ILLEGAL; in HandleLightLockedState() 195 std::optional<ark::Monitor::State> Monitor::HandleUnlockedState(MarkWord &mark, MTManagedThread *th… in HandleUnlockedState() 202 return Monitor::State::OK; in HandleUnlockedState() 206 return Monitor::State::ILLEGAL; in HandleUnlockedState() 220 return Monitor::State::OK; in HandleUnlockedState() 224 return Monitor::State::ILLEGAL; in HandleUnlockedState() 236 * @return state of function execution (ok, illegal) [all …]
|
| D | intrinsics.cpp | 350 ASSERT(res != Monitor::State::INTERRUPTED); in ObjectMonitorEnter() 351 if (UNLIKELY(res != Monitor::State::OK)) { in ObjectMonitorEnter() 355 LOG(FATAL, RUNTIME) << "MonitorEnter for " << header << " returned Illegal state!"; in ObjectMonitorEnter() 367 ASSERT(res != Monitor::State::INTERRUPTED); in ObjectMonitorExit() 368 if (res == Monitor::State::ILLEGAL) { in ObjectMonitorExit() 370 ss << "MonitorExit for object " << std::hex << header << " returned Illegal state"; in ObjectMonitorExit() 377 Monitor::State state = Monitor::Wait(header, ThreadStatus::IS_WAITING, 0, 0); in ObjectWait() local 378 LOG_IF(state == Monitor::State::ILLEGAL, FATAL, RUNTIME) << "Monitor::Wait() failed"; in ObjectWait() 383 Monitor::State state = Monitor::Wait(header, ThreadStatus::IS_TIMED_WAITING, timeout, 0); in ObjectTimedWait() local 384 LOG_IF(state == Monitor::State::ILLEGAL, FATAL, RUNTIME) << "Monitor::Wait() failed"; in ObjectTimedWait() [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/mem/gc/g1/ |
| D | g1-evacuate-regions-task.h | 19 #include "runtime/mem/gc/g1/g1-evacuate-regions-worker-state-inl.h" 45 explicit G1EvacuateRegionsTask(G1EvacuateRegionsWorkerState<LanguageConfig> *state) in G1EvacuateRegionsTask() argument 46 : GCWorkersTask(GCWorkersTaskTypes::TASK_EVACUATE_REGIONS, state) in G1EvacuateRegionsTask() 93 for (auto *state : workerStates_) { in ~ParallelCompactionTask() 94 internalAllocator_->Delete(state); in ~ParallelCompactionTask() 109 for (auto *state : workerStates_) { in FlushDirtyCards() 110 state->VisitCards([queue](auto *card) { in FlushDirtyCards() 121 for (auto *state : workerStates_) { in Finish() 122 … state->GetRegionTo()->SetLiveBytes(state->GetRegionTo()->GetLiveBytes() + state->GetLiveBytes()); in Finish() 123 objectAllocator_->template PushToOldRegionQueue<true>(state->GetRegionTo()); in Finish() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | js_generator_object.cpp | 37 // 3.Let state be generator.[[GeneratorState]]. in GeneratorValidate() 39 JSGeneratorState state = generator->GetGeneratorState(); in GeneratorValidate() local 40 // 4.If state is executing, throw a TypeError exception. in GeneratorValidate() 41 if (state == JSGeneratorState::EXECUTING) { in GeneratorValidate() 42 THROW_TYPE_ERROR_AND_RETURN(thread, "State is executing", JSGeneratorState::UNDEFINED); in GeneratorValidate() 44 // 5.Return state. in GeneratorValidate() 45 return state; in GeneratorValidate() 51 // 1.Let state be ? GeneratorValidate(generator). in GeneratorResume() 53 JSGeneratorState state = GeneratorValidate(thread, gen); in GeneratorResume() local 56 // 2.If state is completed, return CreateIterResultObject(undefined, true). in GeneratorResume() [all …]
|
| /arkcompiler/runtime_core/static_core/tests/vm-benchmarks/tests/ |
| D | test_doclet.py | 30 * @State 83 * @State 123 * @State 135 * @State 150 * @State 159 * @State 169 * @State 181 * @State 205 test.assertTrue(parser.state is not None) 206 test.assertTrue('ArraySort' == parser.state.name) [all …]
|
| /arkcompiler/runtime_core/static_core/compiler/docs/ |
| D | escape_analysis.md | 14 …n. If the object requires materialization then the information about it's state prior to materiali… 15 At the end of the analysis each object allocation has a state describing if an allocation could be … 17 Escape analysis assigns a state to each basic block (BasicBlockState) that binds an object state to… 18 The object state is either virtual state (VirtualState) or implicit materialized state. Multiple in… 26 … beginning of the block its state is evaluated using states of predecessing blocks. If there is on… 28 …state of loop's header could not be evaluated using procedure described above as initially there w… 30 Escape analysis produce following state: 35 * information about virtual inputs for each save state. 37 Scalar replacement uses the state described above to remove virtual objects allocations and insert … 67 if inst has virtual state in at least one block's predecessor: [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/ |
| D | binary_wrong_types.sts | 54 enum State { 83 const b31 = State.OK ^ 7; 84 const b32 = 7 | State.FAULT; 85 const b33 = 7 & State.OK; 87 const b34 = 7 << State.OK; 88 const b35 = 7 >> State.FAULT; 89 const b36 = 7 >>> State.OK; 91 const b37 = State.FAULT << 1; 92 const b38 = State.OK >> 2; 93 const b39 = State.FAULT >>> 3; [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/ |
| D | string_builder_optimizer.cpp | 25 …status_.resize(circuit_->GetMaxGateId() + 1, Status{INVALID_ID, State::UNVISITED}); // 1: max + 1 … in Run() 55 SetStatus(gate, State::BEGIN_STRING_BUILDER, stringBuilderCount_); in FindBuilderBegin() 60 SetStatus(gate, State::INVALID_OPT); in FindBuilderBegin() 64 SetStatus(gate, State::UNVISITED); in FindBuilderBegin() 68 SetStatus(gate, State::UNVISITED); in FindBuilderBegin() 70 SetStatus(gate, State::INVALID_OPT); in FindBuilderBegin() 73 SetStatus(gate, State::INVALID_OPT); in FindBuilderBegin() 77 SetStatus(gate, State::UNVISITED); in FindBuilderBegin() 79 SetStatus(gate, State::INVALID_OPT); in FindBuilderBegin() 104 if (useStatus.state == State::INVALID_OPT || useStatus.state == State::IN_STRING_BUILDER) { in VisitGateUse() [all …]
|
| D | string_builder_optimizer.h | 49 enum State { enum 63 State state {State::INVALID_OPT}; 76 void SetStatus(GateRef gate, State state, int id = INVALID_ID) 78 status_[acc_.GetId(gate)] = Status{id, state}; 80 void UpdateStatus(GateRef gate, State state) in UpdateStatus() argument 82 int id = state == State::INVALID_OPT ? INVALID_ID : GetStatus(gate).id; in UpdateStatus() 83 status_[acc_.GetId(gate)] = Status{id, state}; in UpdateStatus() 87 return GetStatus(gate).state == State::INVALID_OPT; in IsInvalidGate()
|
| D | dead_code_elimination.cpp | 44 auto state = acc_.GetState(gate); in StateIsDead() local 45 if (acc_.IsDead(state)) { in StateIsDead() 46 return state; in StateIsDead() 53 GateRef state = StateIsDead(gate); in EliminateDependSelector() local 54 if (state != Circuit::NullGate() && acc_.IsDead(state)) { in EliminateDependSelector() 55 return state; in EliminateDependSelector() 73 GateRef state = StateIsDead(gate); in EliminateIfException() local 74 if (state != Circuit::NullGate() && acc_.IsDead(state)) { in EliminateIfException() 75 return state; in EliminateIfException() 86 GateRef state = StateIsDead(gate); in EliminateLoopExit() local [all …]
|
| D | escape_analysis.h | 70 class State { 72 explicit State(Chunk* chunk) : map_(chunk) {} in State() function 75 bool IsMapEqual(const State &state) const; 94 State MergeState(GateRef gate); 101 State state_; 122 State& GetOrCreateState(GateRef gate); 123 void SetState(GateRef gate, State state); 136 ChunkMap<GateRef, State> gateToState_;
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/intrinsics/ |
| D | to_string_cache.sts | 17 function xorshift(state: long): long { 18 state ^= state << 13; 19 state ^= state >> 7; 20 state ^= state << 17; 21 return state; 109 work(state: long, iters: int, check: boolean): string { 113 state = xorshift(state); 114 let randomInt = (state >>> 33) as int; 143 let state = (i as long * 1234567) | 42; 147 promises[i] = launch worker.work(state, iterCount, check); [all …]
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/analysis/ |
| D | reg_alloc_verifier.cpp | 26 std::string ToString(LocationState::State state) in ToString() argument 28 switch (state) { in ToString() 29 case LocationState::State::UNKNOWN: in ToString() 31 case LocationState::State::KNOWN: in ToString() 33 case LocationState::State::CONFLICT: in ToString() 40 const LocationState &GetPhiLocationState(const BlockState &state, const ArenaVector<LocationState> … in GetPhiLocationState() argument 46 return state.GetStack(location.GetValue()); in GetPhiLocationState() 54 return state.GetVReg(location.GetValue() + (isHigh ? 1U : 0U)); in GetPhiLocationState() 57 return state.GetReg(location.GetValue() + (isHigh ? 1U : 0U)); in GetPhiLocationState() 60 LocationState &GetPhiLocationState(BlockState *state, const LifeIntervals *interval, bool isHigh) in GetPhiLocationState() argument [all …]
|
| D | reg_alloc_verifier.h | 29 To verify correctness the analysis stores a state for each possible location 31 The state represents knowledge about a value stored in a location: it could be unknown, 32 known or invalid (conflicting). The "known" state is augmented with instruction id 41 When block analysis is complete the state at the block's end have to be propagated to 113 enum class State : uint8_t { UNKNOWN, KNOWN, CONFLICT }; enum 117 LocationState(LocationState::State state, uint32_t id) : state_(state), id_(id) {} in LocationState() argument 122 State GetState() const in GetState() 127 void SetState(State state) in SetState() argument 129 state_ = state; in SetState() 134 state_ = State::KNOWN; in SetId() [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/mem/gc/heap-space-misc/ |
| D | crossing_map.cpp | 73 CrossingMapElement::STATE state = GetMapElement(firstMapNum)->GetState(); in AddObject() local 74 switch (state) { in AddObject() 75 case CrossingMapElement::STATE::STATE_UNINITIALIZED: in AddObject() 76 LOG_CROSSING_MAP(DEBUG) << "AddObject - state of the map num " << firstMapNum in AddObject() 80 case CrossingMapElement::STATE::STATE_CROSSED_BORDER: in AddObject() 81 LOG_CROSSING_MAP(DEBUG) << "AddObject - state of the map num " << firstMapNum in AddObject() 85 case CrossingMapElement::STATE::STATE_INITIALIZED_AND_CROSSED_BORDERS: in AddObject() 87 LOG_CROSSING_MAP(DEBUG) << "AddObject - state of the map num " << firstMapNum in AddObject() 93 case CrossingMapElement::STATE::STATE_INITIALIZED: in AddObject() 95 LOG_CROSSING_MAP(DEBUG) << "AddObject - state of the map num " << firstMapNum in AddObject() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/ |
| D | litecg_codegen.cpp | 57 struct CodeInfo &state = *static_cast<struct CodeInfo *>(object); in AllocateCodeSection() local 58 return state.AllocaCodeSection(size, sectionName.c_str()); in AllocateCodeSection() 64 struct CodeInfo &state = *static_cast<struct CodeInfo *>(object); in AllocateCodeSectionOnDemand() local 65 return state.AllocaCodeSectionOnDemand(size, sectionName.c_str()); in AllocateCodeSectionOnDemand() 70 struct CodeInfo &state = *static_cast<struct CodeInfo *>(object); in SaveFunc2Addr() local 71 state.SaveFunc2Addr(funcName, address); in SaveFunc2Addr() 76 struct CodeInfo &state = *static_cast<struct CodeInfo *>(object); in SaveFunc2FPtoPrevSPDelta() local 77 state.SaveFunc2FPtoPrevSPDelta(funcName, fp2PrevSpDelta); in SaveFunc2FPtoPrevSPDelta() 82 struct CodeInfo &state = *static_cast<struct CodeInfo *>(object); in SaveFunc2CalleeOffsetInfo() local 83 state.SaveFunc2CalleeOffsetInfo(funcName, calleeRegInfo); in SaveFunc2CalleeOffsetInfo() [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/interpreter/templates/ |
| D | interpreter-inl_gen.h.erb | 156 InstructionHandlerState state(thread, pc, frame, thread->GetCurrentDispatchTable<IS_DEBUG>()); 158 goto* state.GetDispatchTable()[DISPATCH_TABLE_LEN - 1]; 160 …ASSERT(frame->GetMethod()->GetPandaFile()->GetHeader()->quickenedFlag || state.IsPrimaryOpcodeVali… 162 DISPATCH(state.GetDispatchTable(), state.GetPrimaryOpcode()); 171 …pace %>InstructionHandler<RuntimeIfaceT, IS_DYNAMIC, IS_DEBUG, IS_PROFILE_ENABLED> handler(&state); 189 DISPATCH(state.GetDispatchTable(), handler.GetExceptionOpcode()); 197 DISPATCH(state.GetDispatchTable(), handler.GetExceptionOpcode()); 201 DISPATCH(state.GetDispatchTable(), handler.GetPrimaryOpcode()); 214 const auto secondaryOpcode = state.GetSecondaryOpcode(); 221 DISPATCH(state.GetDispatchTable(), dispatchIdx); [all …]
|
| /arkcompiler/ets_runtime/ecmascript/dfx/stackinfo/ |
| D | js_stackgetter.h | 42 RunningState state = RunningState::OTHER; member 47 return state < methodKey.state || 48 (state == methodKey.state && methodIdentifier < methodKey.methodIdentifier) || 49 (state == methodKey.state && methodIdentifier == methodKey.methodIdentifier && 51 (state == methodKey.state && methodIdentifier == methodKey.methodIdentifier &&
|
| /arkcompiler/runtime_core/docs/diagrams/ |
| D | panda-states-concurrent-gc.pustate | 24 state NormalExecution { 29 state "GCThread in concurrent mode" as GCConcurrent 35 state STWState { 40 state "GCThread in STW mode" as GCSTW 43 state "Compiler thread will be blocked at the Mutator Lock" as CompilerThreadWillBeBlocked
|
| D | panda-states-generational-gc.pustate | 24 state NormalExecution { 29 state "GCThread Idle" as GCIdle 35 state STWState { 40 state "GCThread is active in STW mode" as GCSTW 43 state "Compiler thread will be blocked at the Mutator Lock" as CompilerThreadWillBeBlocked
|
| /arkcompiler/runtime_core/static_core/docs/diagrams/ |
| D | panda-states-concurrent-gc.plantuml | 24 state NormalExecution { 29 state "GCThread in concurrent mode" as GCConcurrent 35 state STWState { 40 state "GCThread in STW mode" as GCSTW 43 state "Compiler thread will be blocked at the Mutator Lock" as CompilerThreadWillBeBlocked
|
| D | panda-states-generational-gc.plantuml | 24 state NormalExecution { 29 state "GCThread Idle" as GCIdle 35 state STWState { 40 state "GCThread is active in STW mode" as GCSTW 43 state "Compiler thread will be blocked at the Mutator Lock" as CompilerThreadWillBeBlocked
|