| /arkcompiler/runtime_core/static_core/runtime/tests/ |
| D | monitor_test.cpp | 69 ASSERT_TRUE(header->AtomicGetMark().GetState() == MarkWord::STATE_LIGHT_LOCKED); in TEST_F() 71 ASSERT_TRUE(header->AtomicGetMark().GetState() == MarkWord::STATE_UNLOCKED); in TEST_F() 80 ASSERT_TRUE(header->AtomicGetMark().GetState() == MarkWord::STATE_LIGHT_LOCKED); in TEST_F() 82 ASSERT_TRUE(header->AtomicGetMark().GetState() == MarkWord::STATE_LIGHT_LOCKED); in TEST_F() 84 ASSERT_TRUE(header->AtomicGetMark().GetState() == MarkWord::STATE_LIGHT_LOCKED); in TEST_F() 86 ASSERT_TRUE(header->AtomicGetMark().GetState() == MarkWord::STATE_UNLOCKED); in TEST_F() 96 ASSERT_TRUE(header1->AtomicGetMark().GetState() == MarkWord::STATE_LIGHT_LOCKED); in TEST_F() 97 ASSERT_TRUE(header2->AtomicGetMark().GetState() == MarkWord::STATE_UNLOCKED); in TEST_F() 99 ASSERT_TRUE(header1->AtomicGetMark().GetState() == MarkWord::STATE_LIGHT_LOCKED); in TEST_F() 100 ASSERT_TRUE(header2->AtomicGetMark().GetState() == MarkWord::STATE_LIGHT_LOCKED); in TEST_F() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/tests/ |
| D | js_thread_state_test.cpp | 112 result &= (i->GetAssociatedJSThread()->GetState() == expectedState); in CheckAllThreadsState() 147 ThreadState mainState = thread->GetState(); in HWTEST_F_L0() 150 EXPECT_TRUE(thread->GetState() == ThreadState::CREATED); in HWTEST_F_L0() 152 EXPECT_TRUE(thread->GetState() == mainState); in HWTEST_F_L0() 155 EXPECT_TRUE(thread->GetState() == ThreadState::RUNNING); in HWTEST_F_L0() 157 EXPECT_TRUE(thread->GetState() == mainState); in HWTEST_F_L0() 160 EXPECT_TRUE(thread->GetState() == ThreadState::NATIVE); in HWTEST_F_L0() 162 EXPECT_TRUE(thread->GetState() == mainState); in HWTEST_F_L0() 165 EXPECT_TRUE(thread->GetState() == ThreadState::WAIT); in HWTEST_F_L0() 167 EXPECT_TRUE(thread->GetState() == mainState); in HWTEST_F_L0() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/playground/frontend/src/store/ |
| D | index.test.ts | 25 const state = store.getState(); 36 expect(store.getState().appState.theme).toBe('dark'); 41 expect(store.getState().options.isLoading).toBe(true); 45 expect(store.getState().options.options).toEqual(mockOptions); 50 expect(store.getState().syntax.isLoading).toBe(true); 54 expect(store.getState().syntax.syntax).toEqual(mockSyntax); 59 expect(store.getState().code.isRunLoading).toBe(true); 62 expect(store.getState().code.isCompileLoading).toBe(true); 65 expect(store.getState().code.code).toBe('new code'); 71 expect(store.getState().logs.compileOut).toEqual(mockCompileLogs); [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/playground/frontend/src/store/actions/ |
| D | appState.test.ts | 23 const initialState: RootState = store.getState(); 31 const state = store.getState(); 37 const state = store.getState(); 43 const state = store.getState();
|
| D | code.ts | 28 const state: RootState = thunkAPI.getState() as RootState; 53 const state: RootState = thunkAPI.getState() as RootState;
|
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/ |
| D | ets_object.cpp | 45 switch (currentMarkWord.GetState()) { in GetHashCode() 51 ASSERT(hashMark.GetState() == MarkWord::STATE_HASHED); in GetHashCode() 56 … LOG(FATAL, RUNTIME) << "Error on GetHashCode(): invalid state " << currentMarkWord.GetState(); in GetHashCode()
|
| D | ets_object.h | 202 return AtomicGetMark().GetState() == MarkWord::STATE_HASHED; in IsHashed() 214 ASSERT(oldMark.GetState() == ark::MarkWord::STATE_UNLOCKED); in SetInteropHash() 216 ASSERT(newMark.GetState() == MarkWord::STATE_HASHED); in SetInteropHash() 225 ASSERT(oldMark.GetState() == MarkWord::STATE_HASHED); in DropInteropHash()
|
| /arkcompiler/runtime_core/static_core/runtime/mem/gc/heap-space-misc/ |
| D | crossing_map.cpp | 73 CrossingMapElement::STATE state = GetMapElement(firstMapNum)->GetState(); in AddObject() 130 switch (GetMapElement(lastCrossedBorderMap)->GetState()) { in UpdateCrossedBorderOnAdding() 154 ASSERT(GetMapElement(firstMapNum)->GetState() == CrossingMapElement::STATE::STATE_INITIALIZED || in RemoveObject() 155 …GetMapElement(firstMapNum)->GetState() == CrossingMapElement::STATE::STATE_INITIALIZED_AND_CROSSED… in RemoveObject() 180 … if (GetMapElement(nextObjMapNum)->GetState() == CrossingMapElement::STATE::STATE_UNINITIALIZED) { in RemoveObject() 202 switch (GetMapElement(crossedBorderMap)->GetState()) { in UpdateCrossedBorderOnRemoving() 209 … CrossingMapElement::STATE prevMapState = GetMapElement(crossedBorderMap - 1U)->GetState(); in UpdateCrossedBorderOnRemoving() 286 CrossingMapElement::STATE state = GetMapElement(mapNum)->GetState(); in FindObjInMap() 300 … while (GetMapElement(currentMap)->GetState() == CrossingMapElement::STATE::STATE_CROSSED_BORDER) { in FindObjInMap() 304 … ASSERT(GetMapElement(currentMap)->GetState() != CrossingMapElement::STATE::STATE_UNINITIALIZED); in FindObjInMap() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/ |
| D | mcr_lowering.cpp | 156 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), *result); in LowerConvertHoleAsUndefined() 195 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), Circuit::NullGate()); in LowerStoreConstOffset() 207 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), Circuit::NullGate()); in LowerHeapObjectCheck() 215 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), result); in LowerTaggedIsHeapObject() 223 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), result); in LowerIsMarkerCellValid() 262 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), result); in LowerIsSpecificObjectType() 282 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), Circuit::NullGate()); in LowerArrayGuardianCheck() 294 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), Circuit::NullGate()); in LowerHClassStableArrayCheck() 308 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), Circuit::NullGate()); in LowerMathHClassConsistencyCheck() 556 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), result); in LowerCheckFloat64AndConvert() [all …]
|
| D | state_split_linearizer.cpp | 151 replacement_.SetState(curRegion->GetState()); in VisitRegion() 171 auto stateInput = acc_.GetState(currentGate); in ProcessStateDepend() 214 auto currentState = curRegion->GetState(); in TryInsertRelay() 217 acc_.GetState(curGate) != currentState) { in TryInsertRelay() 230 auto currentState = curRegion->GetState(); in TryLoadDependStart() 257 auto currentState = curRegion->GetState(); in ConnectStateDepend() 264 auto stateInput = acc_.GetState(currentState, i); in ConnectStateDepend() 293 auto currentState = regionEdge.to->GetState(); in ConnectPendingRegionEdges() 294 auto stateInput = acc_.GetState(currentState, regionEdge.index); in ConnectPendingRegionEdges()
|
| D | dead_code_elimination.cpp | 44 auto state = acc_.GetState(gate); in StateIsDead() 57 auto stateInput = acc_.GetState(gate); in EliminateDependSelector() 104 ReplaceGate(*it, acc_.GetState(gate)); in EliminateBranch() 171 GateRef loopExit = acc_.GetState(gate); in TryFindAndDeleteLoopExit() 186 return acc_.GetState(gate); in DeleteLoopExit()
|
| D | typed_hcr_lowering.cpp | 286 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), Circuit::NullGate()); in LowerIntCheck() 297 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), Circuit::NullGate()); in LowerDoubleCheck() 308 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), Circuit::NullGate()); in LowerNumberCheck() 319 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), Circuit::NullGate()); in LowerBooleanCheck() 336 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), Circuit::NullGate()); in LowerStableArrayCheck() 428 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), Circuit::NullGate()); in LowerTypedArrayCheck() 440 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), Circuit::NullGate()); in LowerEcmaStringCheck() 453 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), Circuit::NullGate()); in LowerInternStringCheck() 471 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), Circuit::NullGate()); in LowerEcmaMapCheck() 501 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), *result); in LowerFlattenTreeStringCheck() [all …]
|
| D | async_function_lowering.cpp | 74 GateRef stateGate = accessor_.GetState(resumeGate); in RebuildGeneratorCfg() 77 suspendGate = accessor_.GetState(suspendGate); in RebuildGeneratorCfg() 81 auto stateInGate = accessor_.GetState(resumeGate); in RebuildGeneratorCfg() 137 GateRef resumeStateGate = accessor_.GetState(resumeGate); in RebuildGeneratorCfg() 157 stateInGate = accessor_.GetState(stateInGate); in RebuildGeneratorCfg() 169 stateInGate = accessor_.GetState(stateInGate); in RebuildGeneratorCfg() 178 GateRef loopBeginFirstState = accessor_.GetState(prevLoopBeginGate); in UpdateValueSelector() 273 GateRef gate = accessor_.GetState(curGate, idx); in CheckResumeInLoopBody()
|
| D | loop_peeling.cpp | 24 GateRef copyExit = GetCopy(acc_.GetState(exit)); in CopyLoopExit() 57 (acc_.IsSelector(gate) && acc_.GetState(gate) == loopInfo_->loopHead)) { in CopyLoopBody() 119 GateRef stateBack = acc_.GetState(loopInfo_->loopHead, 1); // 1: index of state back in CopyLoopHeader() 138 copies_[gate] = GetCopy(acc_.GetState(gate)); in Peel() 166 copies_[gate] = acc_.GetState(gate); in SetCopy() 169 if (acc_.IsSelector(gate) && acc_.GetState(gate) == loopInfo_->loopHead) { in SetCopy()
|
| D | number_speculative_lowering.cpp | 302 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), result); in VisitNumberCalculate() 321 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), result); in VisitNumberCompare() 333 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), result); in VisitNumberShift() 345 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), result); in VisitNumberLogical() 365 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), result); in VisitNumberDiv() 395 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), result); in VisitNumberMod() 418 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), result); in VisitNumberMonocular() 429 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), result); in VisitNumberNot() 441 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), result); in VisitIsTrueOrFalse() 456 …GateRef ifBranch = builder_.Branch(acc_.GetState(gate), condition, trueWeight, falseWeight, "boole… in VisitBooleanJump() [all …]
|
| D | ntype_bytecode_lowering.cpp | 170 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), result); in LowerLdLexVar() 194 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), result); in LowerStLexVar() 206 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), array); in LowerNTypedCreateEmptyArray() 230 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), array); in LowerNTypedCreateArrayWithBuffer() 241 ReplaceGateWithPendingException(gate, builder_.GetState(), builder_.GetDepend(), arguments); in LowerNTypedCopyRestArgs() 252 ReplaceGateWithPendingException(gate, builder_.GetState(), builder_.GetDepend(), arguments); in LowerNTypedGetUnmappedArgs() 336 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), result); in LowerLdLocalMoudleVar() 346 …ReplaceGateWithPendingException(gate, builder_.GetState(), builder_.GetDepend(), Circuit::NullGate… in LowerStModuleVar()
|
| D | number_speculative_retype.cpp | 601 auto merge = acc_.GetState(gate); in VisitPhi() 609 auto state = acc_.GetState(merge, i); in VisitPhi() 613 acc_.ReplaceStateIn(merge, builder_.GetState(), i); in VisitPhi() 773 acc_.ReplaceStateIn(gate, builder_.GetState()); in VisitIntMonocular() 796 acc_.ReplaceStateIn(gate, builder_.GetState()); in VisitDoubleMonocular() 825 acc_.ReplaceStateIn(gate, builder_.GetState()); in VisitIsTrueOrFalse() 850 acc_.ReplaceStateIn(gate, builder_.GetState()); in VisitNumberNot() 873 acc_.ReplaceStateIn(gate, builder_.GetState()); in VisitBooleanJump() 903 acc_.ReplaceStateIn(gate, builder_.GetState()); in VisitNumberRelated() 1068 acc_.ReplaceStateIn(gate, builder_.GetState()); in ConvertForIntOperator() [all …]
|
| D | ntype_hcr_lowering.cpp | 68 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), array); in LowerCreateEmptyArray() 78 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), array); in LowerCreateArrayWithOwn() 122 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), array); in LowerCreateArrayWithBuffer() 166 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), newGate); in LowerCreateArguments() 172 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), newGate); in LowerCreateArguments() 315 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), Circuit::NullGate()); in LowerStoreModuleVar() 340 ReplaceGateWithPendingException(gate, builder_.GetState(), builder_.GetDepend(), *result); in LowerLdLocalModuleVar()
|
| D | post_schedule.cpp | 163 GateRef stateIn = acc_.GetState(currentBBState, 0); in ReplaceBBState() 258 GateRef ifFalse = builder_.GetState(); in LoweringHeapAllocAndPrepareScheduleGate() 274 GateRef ifTrue = builder_.GetState(); in LoweringHeapAllocAndPrepareScheduleGate() 325 GateRef merge = builder_.GetState(); in LoweringHeapAllocAndPrepareScheduleGate() 330 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), *result); in LoweringHeapAllocAndPrepareScheduleGate() 377 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), result); in LoweringHeapAllocate() 479 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), Circuit::NullGate()); in LoweringStoreNoBarrierAndPrepareScheduleGate() 520 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), Circuit::NullGate()); in LoweringStoreWithBarrierAndPrepareScheduleGate() 599 GateRef merge = builder_.GetState(); in LoweringStoreUnknownBarrierAndPrepareScheduleGate() 603 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), Circuit::NullGate()); in LoweringStoreUnknownBarrierAndPrepareScheduleGate()
|
| /arkcompiler/ets_runtime/ecmascript/pgo_profiler/ |
| D | pgo_state.cpp | 57 State PGOState::GetState() const in GetState() function in panda::ecmascript::pgo::PGOState 65 PrintStateChange(GetState(), state); in SetState() 90 State state = GetState(); in StateIsStop() 96 State state = GetState(); in StateIsStart() 102 State state = GetState(); in StateIsSave()
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/ |
| D | escape.cpp | 273 VirtualState *GetState(const StateOwner &inst) const in GetState() function in ark::compiler::BasicBlockState 558 auto predState = parent_->GetState(predBlock); in CheckStatesAndInsertIntoBuffer() 574 auto commonId = parent_->GetState(predsBlocks.front())->GetStateId(inst); in MergeState() 581 auto predId = parent_->GetState(predBlock)->GetStateId(inst); in MergeState() 590 … parent_->GetState(block->GetDominator())->GetStateId(inst) != EscapeAnalysis::MATERIALIZED_ID; in MergeState() 603 … parent_->GetState(block->GetPredsBlocks().front())->GetStateById(commonId)->GetInst(), commonId); in MergeState() 616 for (auto &field : parent_->GetState(pred)->GetStateById(stateToMerge)->GetFields()) { in MergeFields() 629 … auto mergeState = parent_->GetState(block->GetPredsBlocks().front())->GetStateById(stateToMerge); in MergeFields() 633 auto predState = parent_->GetState(predBlock)->GetStateById(stateToMerge); in MergeFields() 661 auto blockState = parent_->GetState(block); in MaterializeObjectsAtTheBeginningOfBlock() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/checkpoint/ |
| D | thread_state_transition.h | 32 oldState_ = self_->GetState(); in ThreadStateTransitionScope() 90 ASSERT(self->GetState() == ThreadState::IS_SUSPENDED); in ThreadSuspensionScope() 104 ASSERT(self->GetState() == ThreadState::NATIVE); in ThreadNativeScope()
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | mutator_lock.cpp | 64 return GetState() != MutatorLockState::UNLOCKED; in HasLock() 67 MutatorLock::MutatorLockState MutatorLock::GetState() const in GetState() function in panda::ecmascript::MutatorLock
|
| /arkcompiler/ets_runtime/ecmascript/compiler/tests/ |
| D | loop_optimization_test.cpp | 81 auto loopBegin = builder.GetState(); in HWTEST_F_L0() 155 auto loopBegin = builder.GetState(); in HWTEST_F_L0() 156 auto loopEntry = acc.GetState(loopBegin); in HWTEST_F_L0() 206 auto loopBegin = builder.GetState(); in HWTEST_F_L0() 207 auto loopEntry = acc.GetState(loopBegin); in HWTEST_F_L0()
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/analysis/ |
| D | reg_alloc_verifier.cpp | 233 if (inputState.GetState() != LocationState::State::KNOWN) { in Merge() 237 … updated = phiState.GetState() != LocationState::State::KNOWN || phiState.GetId() != phi->GetId(); in Merge() 473 return left.GetId() == right.GetId() && left.GetState() == right.GetState(); in SameState() 491 if (st.GetState() == LocationState::State::KNOWN) { in HandleSpillFill() 495 … << "SpillFill is copying value from location with state " << ToString(st.GetState()) << ", " in HandleSpillFill() 542 if (location.GetState() != LocationState::State::KNOWN) { in HandleInst() 544 << ToString(location.GetState()) << std::endl in HandleInst() 586 if (savedRegs_[reg].GetState() == LocationState::State::UNKNOWN) { in HandleSaveRestoreRegisters()
|