| /arkcompiler/runtime_core/runtime/ |
| D | monitor_object_lock.cpp | 29 ASSERT(res == Monitor::State::OK); in ObjectLock() 34 …Monitor::State state = Monitor::Wait(obj_handler_.GetPtr(), ThreadStatus::IS_WAITING, 0, 0, ignore… in Wait() local 35 LOG_IF(state == Monitor::State::ILLEGAL, FATAL, RUNTIME) << "Monitor::Wait() failed"; in Wait() 40 …Monitor::State state = Monitor::Wait(obj_handler_.GetPtr(), ThreadStatus::IS_TIMED_WAITING, timeou… in TimedWait() local 41 LOG_IF(state == Monitor::State::ILLEGAL, FATAL, RUNTIME) << "Monitor::Wait() failed"; in TimedWait() 46 Monitor::State state = Monitor::Notify(obj_handler_.GetPtr()); in Notify() local 47 LOG_IF(state != Monitor::State::OK, FATAL, RUNTIME) << "Monitor::Notify() failed"; in Notify() 52 Monitor::State state = Monitor::NotifyAll(obj_handler_.GetPtr()); in NotifyAll() local 53 LOG_IF(state != Monitor::State::OK, FATAL, RUNTIME) << "Monitor::NotifyAll() failed"; in NotifyAll() 59 ASSERT(res == Monitor::State::OK); in ~ObjectLock()
|
| 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 * @return state of function execution (ok, illegal) 139 Monitor::State Monitor::MonitorEnter(ObjectHeader *obj, bool trylock) in MonitorEnter() 154 MarkWord::ObjectState state = mark.GetState(); in MonitorEnter() local 156 …UG, RUNTIME) << "Try to enter monitor " << std::hex << obj << " with state " << std::dec << state; in MonitorEnter() 158 switch (state) { in MonitorEnter() 163 return State::ILLEGAL; in MonitorEnter() 169 return ret ? State::OK : State::ILLEGAL; in MonitorEnter() 183 return State::OK; in MonitorEnter() 192 return State::ILLEGAL; in MonitorEnter() 219 return State::ILLEGAL; in MonitorEnter() [all …]
|
| D | intrinsics.cpp | 351 ASSERT(res != Monitor::State::INTERRUPTED); in ObjectMonitorEnter() 352 if (UNLIKELY(res != Monitor::State::OK)) { in ObjectMonitorEnter() 354 … LOG(FATAL, RUNTIME) << "MonitorEnter for " << std::hex << header << " returned Illegal state!"; in ObjectMonitorEnter() 366 ASSERT(res != Monitor::State::INTERRUPTED); in ObjectMonitorExit() 367 if (res == Monitor::State::ILLEGAL) { in ObjectMonitorExit() 369 ss << "MonitorExit for object " << std::hex << header << " returned Illegal state"; in ObjectMonitorExit() 376 Monitor::State state = Monitor::Wait(header, ThreadStatus::IS_WAITING, 0, 0); in ObjectWait() local 377 LOG_IF(state == Monitor::State::ILLEGAL, FATAL, RUNTIME) << "Monitor::Wait() failed"; in ObjectWait() 382 Monitor::State state = Monitor::Wait(header, ThreadStatus::IS_TIMED_WAITING, timeout, 0); in ObjectTimedWait() local 383 LOG_IF(state == Monitor::State::ILLEGAL, FATAL, RUNTIME) << "Monitor::Wait() failed"; in ObjectTimedWait() [all …]
|
| D | mark_word.h | 19 … Object Header (128 bits) | State | 23 // | nothing:60 | RB:1 | GC:1 | state:00 | OOP to metadata object | U… 25 // | tId:29 | Lcount:31 | RB:1 | GC:1 | state:00 | OOP to metadata object | Lightw… 27 // | Monitor:60 | RB:1 | GC:1 | state:01 | OOP to metadata object | Heavyw… 29 // | Hash:60 | RB:1 | GC:1 | state:10 | OOP to metadata object | H… 31 // | Forwarding address:62 | state:11 | OOP to metadata object | … 36 … Object Header (64 bits) | State | 40 // | nothing:28 | RB:1 | GC:1 | state:00 | OOP to metadata object | U… 42 // | tId:13 | Lcount:15 | RB:1 | GC:1 | state:00 | OOP to metadata object | Lightw… 44 // | Monitor:28 | RB:1 | GC:1 | state:01 | OOP to metadata object | Heavyw… [all …]
|
| D | monitor.h | 74 // 1. Should we reset the state to unlocked from heavyweight lock? 78 // 2. If the state should be reseted, when it should be done? 88 enum State { enum 99 static Monitor::State MonitorEnter(ObjectHeader *obj, bool trylock = false); 103 static Monitor::State MonitorExit(ObjectHeader *obj); 115 static State Wait(ObjectHeader *obj, ThreadStatus status, uint64_t timeout, uint64_t nanos, 118 static State Notify(ObjectHeader *obj); 120 static State NotifyAll(ObjectHeader *obj);
|
| D | class_initializer.cpp | 136 klass->SetState(Class::State::ERRONEOUS); in WaitInitialization() 183 klass->SetState(Class::State::ERRONEOUS); in Initialize() 202 klass->SetState(Class::State::INITIALIZING); in Initialize() 231 klass->SetState(Class::State::ERRONEOUS); in InitializeClass() 244 klass->SetState(Class::State::ERRONEOUS); in InitializeClass() 265 klass->SetState(Class::State::ERRONEOUS); in InitializeClass() 270 klass->SetState(Class::State::INITIALIZED); in InitializeClass() 318 klass->SetState(Class::State::VERIFIED); in VerifyClass() 327 klass->SetState(Class::State::VERIFIED); in VerifyClass() 338 klass->SetState(Class::State::VERIFIED); in VerifyClass() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | js_generator_object.cpp | 35 // 3.Let state be generator.[[GeneratorState]]. in GeneratorValidate() 37 JSGeneratorState state = generator->GetGeneratorState(); in GeneratorValidate() local 38 // 4.If state is executing, throw a TypeError exception. in GeneratorValidate() 39 if (state == JSGeneratorState::EXECUTING) { in GeneratorValidate() 42 // 5.Return state. in GeneratorValidate() 43 return state; in GeneratorValidate() 49 // 1.Let state be ? GeneratorValidate(generator). in GeneratorResume() 51 JSGeneratorState state = GeneratorValidate(thread, gen); in GeneratorResume() local 54 // 2.If state is completed, return CreateIterResultObject(undefined, true). in GeneratorResume() 55 if (state == JSGeneratorState::COMPLETED) { in GeneratorResume() [all …]
|
| D | js_async_generator_object.cpp | 124 // 2. Let state be generator.[[AsyncGeneratorState]]. in AsyncGeneratorResumeNext() 125 JSAsyncGeneratorState state = generator->GetAsyncGeneratorState(); in AsyncGeneratorResumeNext() local 126 // 3. Assert: state is not executing. in AsyncGeneratorResumeNext() 127 ASSERT(state != JSAsyncGeneratorState::EXECUTING); in AsyncGeneratorResumeNext() 128 // 4. If state is awaiting-return, return undefined. in AsyncGeneratorResumeNext() 129 if (state == JSAsyncGeneratorState::AWAITING_RETURN) { in AsyncGeneratorResumeNext() 148 // a. If state is suspendedStart, then in AsyncGeneratorResumeNext() 149 if (state == JSAsyncGeneratorState::SUSPENDED_START) { in AsyncGeneratorResumeNext() 151 // ii. Set state to completed. in AsyncGeneratorResumeNext() 152 state = JSAsyncGeneratorState::COMPLETED; in AsyncGeneratorResumeNext() [all …]
|
| /arkcompiler/runtime_core/runtime/mem/gc/heap-space-misc/ |
| D | crossing_map.cpp | 73 CrossingMapElement::STATE state = GetMapElement(first_map_num)->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 " << first_map_num in AddObject() 80 case CrossingMapElement::STATE::STATE_CROSSED_BORDER: in AddObject() 81 LOG_CROSSING_MAP(DEBUG) << "AddObject - state of the map num " << first_map_num in AddObject() 85 case CrossingMapElement::STATE::STATE_INITIALIZED_AND_CROSSED_BORDERS: in AddObject() 87 LOG_CROSSING_MAP(DEBUG) << "AddObject - state of the map num " << first_map_num in AddObject() 93 case CrossingMapElement::STATE::STATE_INITIALIZED: in AddObject() 95 LOG_CROSSING_MAP(DEBUG) << "AddObject - state of the map num " << first_map_num in AddObject() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/regexp/ |
| D | regexp_executor.cpp | 74 RegExpState *state = PeekRegExpState(); in MatchFailed() local 75 if (state->type_ == StateType::STATE_SPLIT) { in MatchFailed() 81 isMatched = (state->type_ == StateType::STATE_MATCH_AHEAD && isMatched) || in MatchFailed() 82 (state->type_ == StateType::STATE_NEGATIVE_MATCH_AHEAD && !isMatched); in MatchFailed() 84 if (state->type_ == StateType::STATE_MATCH_AHEAD) { in MatchFailed() 88 if (state->type_ == StateType::STATE_NEGATIVE_MATCH_AHEAD) { in MatchFailed() 306 auto state = reinterpret_cast<RegExpState *>( in PushRegExpState() local 309 state->type_ = type; in PushRegExpState() 310 state->currentPc_ = pc; in PushRegExpState() 311 state->currentStack_ = currentStack_; in PushRegExpState() [all …]
|
| /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/ets_runtime/ecmascript/compiler/ |
| D | circuit_ir_specification.md | 9 …state gates** (since they acted like a [finite state machine](https://en.wikipedia.org/wiki/Finite… 13 …i/Total_order). However, in Circuit IR, computation gates are not tied to state gates, and they ar… 15 …State gates that have multiple transitions (corresponding to multiple control flow branches) such … 17 …state transition action of the FSM. Selector gates are affiliated (many-to-one) to `MERGE` state g… 19 …state transition action is taken. Addressing this problem, **[relay](https://en.wikipedia.org/wiki… 27 * `STATE_ENTRY`: Representing the initial state of the sequential logic part. (for traversing forwa… 69 …row an exception and lead to state transition, so they are state gates doing computations. There a… 77 * `ANY_STATE` means any state gates. 86 ### Pure state gates 92 | | state wires | #dependency wires | data wires | [all …]
|
| D | ts_inline_lowering.cpp | 222 GateRef &state, GateRef &depend, size_t numOfIns) in MergeAllReturn() argument 228 dependList[0] = state; in MergeAllReturn() 229 vaueList[0] = state; in MergeAllReturn() 239 state = circuit_->NewGate(circuit_->Merge(numOfIns), stateList); in MergeAllReturn() 265 GateRef state = Circuit::NullGate(); in ReplaceReturnGate() local 278 state = returnState; in ReplaceReturnGate() 284 value = MergeAllReturn(returnVector, state, depend, successReturn); in ReplaceReturnGate() 286 ReplaceHirAndDeleteState(callGate, state, depend, value); in ReplaceReturnGate() 289 void TSInlineLowering::ReplaceHirAndDeleteState(GateRef gate, GateRef state, GateRef depend, GateRe… in ReplaceHirAndDeleteState() argument 296 acc_.ReplaceIn(*firstUse, firstUse.GetIndex(), state); in ReplaceHirAndDeleteState() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/tests/ |
| D | js_generator_object_test.cpp | 65 …JSGeneratorState state = JSGeneratorObject::GeneratorValidate(thread, JSHandle<JSTaggedValue>::Cas… in HWTEST_F_L0() local 66 EXPECT_EQ(state, JSGeneratorState::UNDEFINED); in HWTEST_F_L0() 76 …JSGeneratorState state = JSGeneratorObject::GeneratorValidate(thread, JSHandle<JSTaggedValue>::Cas… in HWTEST_F_L0() local 77 EXPECT_EQ(state, JSGeneratorState::SUSPENDED_START); in HWTEST_F_L0() 89 …JSGeneratorState state = JSGeneratorObject::GeneratorValidate(thread, JSHandle<JSTaggedValue>::Cas… in HWTEST_F_L0() local 90 EXPECT_EQ(state, JSGeneratorState::SUSPENDED_YIELD); in HWTEST_F_L0() 93 state = JSGeneratorObject::GeneratorValidate(thread, JSHandle<JSTaggedValue>::Cast(genObj)); in HWTEST_F_L0() 94 EXPECT_EQ(state, JSGeneratorState::COMPLETED); in HWTEST_F_L0() 114 // If state is completed, return object(undefined, true). in HWTEST_F_L0() 125 …* generator is in a suspended state, and the Return or Throw value of the generator is r…
|
| /arkcompiler/ets_frontend/es2panda/test/parser/ts/ |
| D | test-as-expression1.ts | 19 let state = true; variable 21 if (state) { 22 test(state as any && state);
|
| /arkcompiler/runtime_core/runtime/interpreter/templates/ |
| D | interpreter-inl_gen.h.erb | 76 InstructionHandlerState state(thread, pc, frame); 80 ASSERT(state.IsPrimaryOpcodeValid()); 83 DISPATCH(GetDispatchTable(dispatch_table), state.GetPrimaryOpcode(), label); 93 <%= namespace %>InstructionHandler<RuntimeIfaceT, is_dynamic> handler(&state); 132 const auto secondary_opcode = state.GetSecondaryOpcode(); 150 InstructionHandler<RuntimeIfaceT, is_dynamic> handler(&state); 177 state = InstructionHandlerState(thread, sp.cend(), handler.GetFrame()); 179 ASSERT(state.IsPrimaryOpcodeValid()); 180 goto* dispatch_table[state.GetPrimaryOpcode()]; 185 InstructionHandler<RuntimeIfaceT, is_dynamic> handler(&state); [all …]
|
| D | debug_test_interpreter-inl_gen.cpp.erb | 37 InstructionHandlerState state(thread, pc, frame); 38 <%= namespace %>InstructionHandler<RuntimeInterface, true> handler(&state); 43 InstructionHandlerState state(thread, pc, frame); 44 <%= namespace %>InstructionHandler<RuntimeInterface, false> handler(&state);
|
| /arkcompiler/ets_runtime/ecmascript/interpreter/ |
| D | interpreter-inl.h | 594 InterpretedFrame *state = GET_FRAME(newSp); in ExecuteNative() local 595 state->base.prev = sp; in ExecuteNative() 596 state->base.type = FrameType::INTERPRETER_FRAME; in ExecuteNative() 597 state->pc = nullptr; in ExecuteNative() 598 state->function = info->GetFunctionValue(); in ExecuteNative() 599 state->thisObj = info->GetThisValue(); in ExecuteNative() 700 InterpretedFrame *state = GET_FRAME(newSp); in Execute() local 701 state->pc = pc; in Execute() 702 state->function = info->GetFunctionValue(); in Execute() 703 state->thisObj = info->GetThisValue(); in Execute() [all …]
|
| D | interpreter_assembly.cpp | 478 AsmInterpretedFrame *state = GET_ASM_FRAME(sp); in HandleReturn() local 480 << std::hex << reinterpret_cast<uintptr_t>(state->pc); in HandleReturn() 481 Method *method = ECMAObject::Cast(state->function.GetTaggedObject())->GetCallTarget(); in HandleReturn() 485 sp = state->base.prev; in HandleReturn() 493 state->acc = acc; in HandleReturn() 506 AsmInterpretedFrame *state = GET_ASM_FRAME(sp); in HandleReturnundefined() local 508 << std::hex << reinterpret_cast<uintptr_t>(state->pc); in HandleReturnundefined() 509 Method *method = ECMAObject::Cast(state->function.GetTaggedObject())->GetCallTarget(); in HandleReturnundefined() 513 sp = state->base.prev; in HandleReturnundefined() 521 state->acc = JSTaggedValue::Undefined(); in HandleReturnundefined() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/dfx/cpu_profiler/ |
| D | samples_record.h | 53 RunningState state = RunningState::OTHER; member 57 return state < methodKey.state || 58 (state == methodKey.state && methodIdentifier < methodKey.methodIdentifier) || 59 (state == methodKey.state && methodIdentifier == methodKey.methodIdentifier && 99 // state time statistic 228 std::string AddRunningState(char *functionName, RunningState state, kungfu::DeoptType type); 231 void StatisticStateTime(int timeDelta, RunningState state);
|
| /arkcompiler/runtime_core/libpandafile/ |
| D | debug_helpers.h | 30 BytecodeOffsetResolver(panda_file::LineProgramState *state, uint32_t bc_offset) in BytecodeOffsetResolver() argument 31 : state_(state), bc_offset_(bc_offset), prev_line_(state->GetLine()), line_(0) in BytecodeOffsetResolver() 151 … panda::panda_file::LineProgramState state(*panda_debug_file, panda::panda_file::File::EntityId(0), in GetLineNumber() 154 BytecodeOffsetResolver resolver(&state, bc_offset); in GetLineNumber()
|
| /arkcompiler/runtime_core/runtime/interpreter/ |
| D | state.h | 90 class State : public StateIface<State> { 92 …ALWAYS_INLINE inline State(ManagedThread *thread, const uint8_t *pc, Frame *frame) : StateIface(fr… in State() function 175 class State : public StateIface<State> { 177 …ALWAYS_INLINE inline State(ManagedThread *thread, const uint8_t *pc, Frame *frame) : StateIface(fr… in State() function
|
| /arkcompiler/runtime_core/runtime/mem/gc/ |
| D | card_table.h | 104 bool IsMarked(uintptr_t addr) const; // returns true if the card(for the addr) state is marked 105 void MarkCard(uintptr_t addr); // set card state to the marked 106 bool IsClear(uintptr_t addr) const; // returns true if the card(for the addr) state is clear 107 void ClearCard(uintptr_t addr); // set card state to the cleared 108 void ClearAll(); // set card state to the cleared for the all cards
|