| /arkcompiler/runtime_core/static_core/runtime/tooling/inspector/tests/ |
| D | thread_state.cpp | 43 state = std::make_unique<ThreadState>(mockEvaluationEngine_, bpStorage_); in SetUp() 49 std::unique_ptr<ThreadState> state; member in ark::tooling::inspector::test::ThreadStateTest 60 ASSERT_FALSE(state->IsPaused()); in TEST_F() 61 state->OnSingleStep(fake, source); in TEST_F() 62 ASSERT_FALSE(state->IsPaused()); in TEST_F() 64 state->BreakOnStart(); in TEST_F() 65 state->OnSingleStep(fake, source); in TEST_F() 66 ASSERT_TRUE(state->IsPaused()); in TEST_F() 71 state->Pause(); in TEST_F() 72 state->OnSingleStep(fake, source); in TEST_F() [all …]
|
| /arkcompiler/toolchain/tooling/static/tests/ |
| D | thread_state.cpp | 43 state = std::make_unique<ThreadState>(mockEvaluationEngine_, bpStorage_); in SetUp() 49 std::unique_ptr<ThreadState> state; member in ark::tooling::inspector::test::ThreadStateTest 60 ASSERT_FALSE(state->IsPaused()); in TEST_F() 61 state->OnSingleStep(fake, source); in TEST_F() 62 ASSERT_FALSE(state->IsPaused()); in TEST_F() 64 state->BreakOnStart(); in TEST_F() 65 state->OnSingleStep(fake, source); in TEST_F() 66 ASSERT_TRUE(state->IsPaused()); in TEST_F() 71 state->Pause(); in TEST_F() 72 state->OnSingleStep(fake, source); in TEST_F() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/pgo_profiler/ |
| D | pgo_state.cpp | 24 using State = PGOState::State; typedef 31 std::string PGOState::ToString(State state) in ToString() argument 33 switch (state) { in ToString() 34 case State::STOP: in ToString() 36 case State::SAVE: in ToString() 38 case State::START: in ToString() 45 std::string PGOState::ToString(GCState state) in ToString() argument 47 switch (state) { in ToString() 59 State PGOState::GetState() const in GetState() 64 void PGOState::SetState(State state) in SetState() argument [all …]
|
| D | pgo_state.h | 37 enum class State : uint8_t { enum 49 static std::string ToString(State state); 50 static std::string ToString(GCState state); 51 State GetState() const; 52 void SetState(State state); 54 void SetGCState(GCState state); 70 bool TryChangeState(State expected, State desired); 88 std::atomic<State> state_ {State::STOP};
|
| /arkcompiler/runtime_core/static_core/plugins/ets/playground/frontend/src/store/selectors/ |
| D | appState.ts | 19 export const theme = (state: RootState): Theme => state.appState.theme; 20 export const primaryColor = (state: RootState): string => state.appState.primaryColor; 21 export const withDisasm = (state: RootState): boolean => state.appState.disasm; 22 export const withVerifier = (state: RootState): boolean => state.appState.verifier; 23 export const withRuntimeVerify = (state: RootState): boolean => state.appState.runtimeVerify; 24 export const versions = (state: RootState): Versions => state.appState.versions; 25 export const isVersionsLoading = (state: RootState): boolean => state.appState.versionsLoading; 26 export const clearLogsEachRun = (state: RootState): boolean => state.appState.clearLogsEachRun;
|
| D | logs.ts | 19 export const selectCompileOutLogs = (state: RootState): ILog[] => state.logs.compileOut; 20 export const selectCompileErrLogs = (state: RootState): ILog[] => state.logs.compileErr; 21 export const selectRunOutLogs = (state: RootState): ILog[] => state.logs.runOut; 22 export const selectRunErrLogs = (state: RootState): ILog[] => state.logs.runErr; 23 export const selectDisasmOutLogs = (state: RootState): ILog[] => state.logs.disasmOut; 24 export const selectDisasmErrLogs = (state: RootState): ILog[] => state.logs.disasmErr; 25 export const selectOutLogs = (state: RootState): ILog[] => state.logs.out; 26 export const selectErrLogs = (state: RootState): ILog[] => state.logs.err;
|
| D | code.ts | 19 export const selectCompileLoading = (state: RootState): boolean => state.code.isCompileLoading; 20 export const selectRunLoading = (state: RootState): boolean => state.code.isRunLoading; 21 export const selectShareLoading = (state: RootState): boolean => state.code.isShareLoading; 22 export const selectCode = (state: RootState): string => state.code.code; 23 export const selectCompileRes = (state: RootState): ICodeReq | null => state.code.compileRes; 24 export const selectRunRes = (state: RootState): ICodeReq | null => state.code.runRes;
|
| /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<Monitor::State> Monitor::HandleLightLockedState(MarkWord &mark, MTManagedThread *thre… in HandleLightLockedState() 154 return Monitor::State::OK; in HandleLightLockedState() 163 return Monitor::State::ILLEGAL; in HandleLightLockedState() 190 return Monitor::State::ILLEGAL; in HandleLightLockedState() 196 std::optional<Monitor::State> Monitor::HandleUnlockedState(MarkWord &mark, MTManagedThread *thread, in HandleUnlockedState() 203 return Monitor::State::OK; in HandleUnlockedState() 207 return Monitor::State::ILLEGAL; in HandleUnlockedState() 222 return Monitor::State::OK; in HandleUnlockedState() 226 return Monitor::State::ILLEGAL; in HandleUnlockedState() 232 Monitor::State Monitor::HandleHeavyLockedState(Monitor *monitor, MTManagedThread *thread, in HandleHeavyLockedState() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/playground/frontend/src/store/slices/ |
| D | logs.ts | 49 setCompileOutLogs(state, action: PayloadAction<ILog[]>) { 50 state.compileOut = action.payload; 52 setCompileErrLogs(state, action: PayloadAction<ILog[]>) { 53 state.compileErr = action.payload; 55 setRunOutLogs(state, action: PayloadAction<ILog[]>) { 56 state.runOut = action.payload; 58 setRunErrLogs(state, action: PayloadAction<ILog[]>) { 59 state.runErr = action.payload; 61 setVerifierOutLogs(state, action: PayloadAction<ILog[]>) { 62 state.runOut = action.payload; [all …]
|
| D | appState.ts | 57 setTheme: (state, action: PayloadAction<'light' | 'dark'>) => { 58 state.theme = action.payload; 60 setPrimaryColor: (state, action: PayloadAction<string>) => { 61 state.primaryColor = action.payload; 63 setDisasm: (state, action: PayloadAction<boolean>) => { 64 state.disasm = action.payload; 66 setVerifier: (state, action: PayloadAction<boolean>) => { 67 state.verifier = action.payload; 69 setRuntimeVerify: (state, action: PayloadAction<boolean>) => { 70 state.runtimeVerify = action.payload; [all …]
|
| D | code.test.ts | 36 it('should update isRunLoading state when setRunLoading is called', () => { 38 const state = codeReducer(initialState, action); constant 39 expect(state.isRunLoading).toBe(true); 42 it('should update isCompileLoading state when setCompileLoading is called', () => { 44 const state = codeReducer(initialState, action); constant 45 expect(state.isCompileLoading).toBe(true); 48 it('should update code state when setCode is called', () => { 50 const state = codeReducer(initialState, action); constant 51 expect(state.code).toBe('new code'); 54 it('should update compileRes state when setCompileRes is called', () => { [all …]
|
| D | logs.test.ts | 36 it('should update isRunLoading state when setRunLoading is called', () => { 38 const state = codeReducer(initialState, action); constant 39 expect(state.isRunLoading).toBe(true); 42 it('should update isCompileLoading state when setCompileLoading is called', () => { 44 const state = codeReducer(initialState, action); constant 45 expect(state.isCompileLoading).toBe(true); 48 it('should update code state when setCode is called', () => { 50 const state = codeReducer(initialState, action); constant 51 expect(state.code).toBe('new code'); 54 it('should update compileRes state when setCompileRes is called', () => { [all …]
|
| D | code.ts | 43 setRunLoading(state, action: PayloadAction<boolean>) { 44 state.isRunLoading = action.payload; 46 setCompileLoading(state, action: PayloadAction<boolean>) { 47 state.isCompileLoading = action.payload; 49 setShareLoading(state, action: PayloadAction<boolean>) { 50 state.isShareLoading = action.payload; 52 setCode(state, action: PayloadAction<string>) { 53 state.code = action.payload; 55 setCompileRes(state, action: PayloadAction<ICodeReq | null>) { 56 state.compileRes = action.payload; [all …]
|
| /arkcompiler/ets_runtime/ecmascript/pgo_profiler/tests/ |
| D | pgo_profiler_test_one.cpp | 266 auto state = std::make_shared<PGOState>(); in HWTEST_F_L0() local 267 EXPECT_TRUE(state->StateIsStop()); in HWTEST_F_L0() 268 state->TryChangeState(PGOState::State::STOP, PGOState::State::START); in HWTEST_F_L0() 269 EXPECT_TRUE(state->StateIsStart()); in HWTEST_F_L0() 271 std::thread thread1([state]() { state->SuspendByGC(); }); in HWTEST_F_L0() 273 std::thread thread2([state]() { in HWTEST_F_L0() 275 EXPECT_TRUE(state->GCIsWaiting()); in HWTEST_F_L0() 276 state->SetStopAndNotify(); in HWTEST_F_L0() 282 EXPECT_TRUE(state->GCIsRunning()); in HWTEST_F_L0() 283 EXPECT_TRUE(state->StateIsStop()); in HWTEST_F_L0() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | js_generator_object.cpp | 36 // 3.Let state be generator.[[GeneratorState]]. in GeneratorValidate() 38 JSGeneratorState state = generator->GetGeneratorState(); in GeneratorValidate() local 39 // 4.If state is executing, throw a TypeError exception. in GeneratorValidate() 40 if (state == JSGeneratorState::EXECUTING) { in GeneratorValidate() 41 THROW_TYPE_ERROR_AND_RETURN(thread, "State is executing", JSGeneratorState::UNDEFINED); in GeneratorValidate() 43 // 5.Return state. in GeneratorValidate() 44 return state; in GeneratorValidate() 50 // 1.Let state be ? GeneratorValidate(generator). in GeneratorResume() 52 JSGeneratorState state = GeneratorValidate(thread, gen); in GeneratorResume() local 55 // 2.If state is completed, return CreateIterResultObject(undefined, true). in GeneratorResume() [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/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 198 * @State 224 test.assertTrue(parser.state is not None) [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/main/ |
| D | binary_wrong_types.ets | 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 | 24 …status_.resize(circuit_->GetMaxGateId() + 1, Status{INVALID_ID, State::UNVISITED}); // 1: max + 1 … in Run() 53 SetStatus(gate, State::INVALID_OPT); in FindBuilderBegin() 59 SetStatus(gate, State::BEGIN_STRING_BUILDER, stringBuilderCount_); in FindBuilderBegin() 64 SetStatus(gate, State::INVALID_OPT); in FindBuilderBegin() 68 SetStatus(gate, State::UNVISITED); in FindBuilderBegin() 72 SetStatus(gate, State::UNVISITED); in FindBuilderBegin() 74 SetStatus(gate, State::INVALID_OPT); in FindBuilderBegin() 77 SetStatus(gate, State::INVALID_OPT); in FindBuilderBegin() 81 SetStatus(gate, State::UNVISITED); in FindBuilderBegin() 83 SetStatus(gate, State::INVALID_OPT); in FindBuilderBegin() [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()
|
| /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 …]
|
| /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/runtime_core/static_core/plugins/ets/tests/ets-common-tests/intrinsics/ |
| D | to_string_cache.ets | 20 function xorshift(state: long): long { 21 state ^= state << 13; 22 state ^= state >> 7; 23 state ^= state << 17; 24 return state; 112 work(state: long, iters: int, check: boolean): string { 116 state = xorshift(state); 117 let randomInt = (state >>> 33) as int; 146 let state = (i as long * 1234567) | 42; 153 …ing, (w: Worker<T>, s: long, i: int, c: boolean) => string>(work, worker, state, iterCount, check); [all …]
|