Home
last modified time | relevance | path

Searched full:state (Results 1 – 25 of 592) sorted by relevance

12345678910>>...24

/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/tests/
Dthread_state.cpp42 state = std::make_unique<ThreadState>(mockEvaluationEngine_); in SetUp()
47 std::unique_ptr<ThreadState> state; member in ark::tooling::inspector::test::ThreadStateTest
57 ASSERT_FALSE(state->IsPaused()); in TEST_F()
58 state->OnSingleStep(fake); in TEST_F()
59 ASSERT_FALSE(state->IsPaused()); in TEST_F()
61 state->BreakOnStart(); in TEST_F()
62 state->OnSingleStep(fake); in TEST_F()
63 ASSERT_TRUE(state->IsPaused()); in TEST_F()
68 state->Pause(); in TEST_F()
69 state->OnSingleStep(fake); in TEST_F()
[all …]
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/
Dpgo_state.cpp22 using State = PGOState::State; typedef
29 std::string PGOState::ToString(State state) in ToString() argument
31 switch (state) { in ToString()
32 case State::STOP: in ToString()
34 case State::SAVE: in ToString()
36 case State::START: in ToString()
43 std::string PGOState::ToString(GCState state) in ToString() argument
45 switch (state) { in ToString()
57 State PGOState::GetState() const in GetState()
62 void PGOState::SetState(State state) in SetState() argument
[all …]
Dpgo_state.h34 enum class State : uint8_t { enum
46 static std::string ToString(State state);
47 static std::string ToString(GCState state);
48 State GetState() const;
49 void SetState(State state);
51 void SetGCState(GCState state);
67 bool TryChangeState(State expected, State desired);
85 std::atomic<State> state_ {State::STOP};
/arkcompiler/runtime_core/static_core/runtime/
Dmonitor_object_lock.cpp28 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 …]
Dclass.cpp27 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 …]
Dmonitor.cpp137 std::optional<Monitor::State> Monitor::HandleLightLockedState(MarkWord &mark, MTManagedThread *thre… 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<Monitor::State> Monitor::HandleUnlockedState(MarkWord &mark, MTManagedThread *thread, 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()
230 Monitor::State Monitor::HandleHeavyLockedState(Monitor *monitor, MTManagedThread *thread, in HandleHeavyLockedState()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/playground/frontend/src/store/selectors/
Dlogs.ts19 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;
Dcode.ts19 export const selectCompileLoading = (state: RootState): boolean => state.code.isCompileLoading;
20 export const selectRunLoading = (state: RootState): boolean => state.code.isRunLoading;
21 export const selectCode = (state: RootState): string => state.code.code;
22 export const selectCompileRes = (state: RootState): ICodeReq | null => state.code.compileRes;
23 export const selectRunRes = (state: RootState): ICodeReq | null => state.code.runRes;
DappState.ts19 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;
/arkcompiler/runtime_core/static_core/plugins/ets/playground/frontend/src/store/slices/
Dlogs.ts45 setCompileOutLogs(state, action: PayloadAction<ILog[]>) {
46 state.compileOut = action.payload;
48 setCompileErrLogs(state, action: PayloadAction<ILog[]>) {
49 state.compileErr = action.payload;
51 setRunOutLogs(state, action: PayloadAction<ILog[]>) {
52 state.runOut = action.payload;
54 setRunErrLogs(state, action: PayloadAction<ILog[]>) {
55 state.runErr = action.payload;
57 setDisasmOutLogs(state, action: PayloadAction<ILog[]>) {
58 state.disasmOut = action.payload;
[all …]
Dcode.test.ts34 it('should update isRunLoading state when setRunLoading is called', () => {
36 const state = codeReducer(initialState, action); constant
37 expect(state.isRunLoading).toBe(true);
40 it('should update isCompileLoading state when setCompileLoading is called', () => {
42 const state = codeReducer(initialState, action); constant
43 expect(state.isCompileLoading).toBe(true);
46 it('should update code state when setCode is called', () => {
48 const state = codeReducer(initialState, action); constant
49 expect(state.code).toBe('new code');
52 it('should update compileRes state when setCompileRes is called', () => {
[all …]
Dlogs.test.ts34 it('should update isRunLoading state when setRunLoading is called', () => {
36 const state = codeReducer(initialState, action); constant
37 expect(state.isRunLoading).toBe(true);
40 it('should update isCompileLoading state when setCompileLoading is called', () => {
42 const state = codeReducer(initialState, action); constant
43 expect(state.isCompileLoading).toBe(true);
46 it('should update code state when setCode is called', () => {
48 const state = codeReducer(initialState, action); constant
49 expect(state.code).toBe('new code');
52 it('should update compileRes state when setCompileRes is called', () => {
[all …]
Dcode.ts39 setRunLoading(state, action: PayloadAction<boolean>) {
40 state.isRunLoading = action.payload;
42 setCompileLoading(state, action: PayloadAction<boolean>) {
43 state.isCompileLoading = action.payload;
45 setCode(state, action: PayloadAction<string>) {
46 state.code = action.payload;
48 setCompileRes(state, action: PayloadAction<ICodeReq | null>) {
49 state.compileRes = action.payload;
51 setRunRes(state, action: PayloadAction<ICodeReq | null>) {
52 state.runRes = action.payload;
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/tests/
Dpgo_profiler_test_one.cpp266 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/
Djs_generator_object.cpp36 // 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/tests/vm-benchmarks/tests/
Dtest_doclet.py30 * @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/
Descape_analysis.md14 …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…
28state 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/main/
Dbinary_wrong_types.sts54 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/
Dstring_builder_optimizer.cpp24 …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 …]
Dstring_builder_optimizer.h49 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()
Ddead_code_elimination.cpp44 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 …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/intrinsics/
Dto_string_cache.sts17 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/
Dreg_alloc_verifier.cpp26 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/
Dcrossing_map.cpp73 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/playground/frontend/src/store/actions/
DappState.test.ts22 it('should initialize with the correct default state', () => {
31 const state = store.getState(); constant
32 expect(state.appState.theme).toBe('dark');
35 it('should handle options loading state change', () => {
37 const state = store.getState(); constant
38 expect(state.options.isLoading).toBe(true);
41 it('should handle syntax loading state change', () => {
43 const state = store.getState(); constant
44 expect(state.syntax.isLoading).toBe(true);

12345678910>>...24