Home
last modified time | relevance | path

Searched refs:state (Results 1 – 25 of 53) sorted by relevance

123

/ark/js_runtime/ecmascript/
Djs_generator_object.cpp36 JSGeneratorState state = generator->GetGeneratorState(); in GeneratorValidate() local
38 if (state == JSGeneratorState::EXECUTING) { in GeneratorValidate()
42 return state; in GeneratorValidate()
50 JSGeneratorState state = GeneratorValidate(thread, gen); in GeneratorResume() local
54 if (state == JSGeneratorState::COMPLETED) { in GeneratorResume()
60 ASSERT_PRINT(state == JSGeneratorState::SUSPENDED_START || in GeneratorResume()
61 state == JSGeneratorState::SUSPENDED_YIELD, in GeneratorResume()
92 JSGeneratorState state = GeneratorValidate(thread, gen); in GeneratorResumeAbrupt() local
100 if (state == JSGeneratorState::SUSPENDED_START) { in GeneratorResumeAbrupt()
101 state = JSGeneratorState::COMPLETED; in GeneratorResumeAbrupt()
[all …]
/ark/runtime_core/runtime/
Dmonitor_object_lock.cpp34 …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()
Dmonitor.cpp125 MarkWord::ObjectState state = mark.GetState(); in MonitorEnter() local
127 …UG, RUNTIME) << "Try to enter monitor " << std::hex << obj << " with state " << std::dec << state; in MonitorEnter()
129 switch (state) { in MonitorEnter()
287 MarkWord::ObjectState state = mark.GetState(); in MonitorExit() local
288 …BUG, RUNTIME) << "Try to exit monitor " << std::hex << obj << " with state " << std::dec << state; in MonitorExit()
289 switch (state) { in MonitorExit()
352 MarkWord::ObjectState state = mark.GetState(); in Wait() local
353 LOG(DEBUG, RUNTIME) << "Try to wait with state " << state; in Wait()
354 switch (state) { in Wait()
446 MarkWord::ObjectState state = mark.GetState(); in Notify() local
[all …]
Dintrinsics.cpp324 Monitor::State state = Monitor::Wait(header, ThreadStatus::IS_WAITING, 0, 0); in ObjectWait() local
325 LOG_IF(state == Monitor::State::ILLEGAL, FATAL, RUNTIME) << "Monitor::Wait() failed"; in ObjectWait()
330 Monitor::State state = Monitor::Wait(header, ThreadStatus::IS_TIMED_WAITING, timeout, 0); in ObjectTimedWait() local
331 LOG_IF(state == Monitor::State::ILLEGAL, FATAL, RUNTIME) << "Monitor::Wait() failed"; in ObjectTimedWait()
336 Monitor::State state = Monitor::Wait(header, ThreadStatus::IS_TIMED_WAITING, timeout, nanos); in ObjectTimedWaitNanos() local
337 LOG_IF(state == Monitor::State::ILLEGAL, FATAL, RUNTIME) << "Monitor::Wait() failed"; in ObjectTimedWaitNanos()
342 Monitor::State state = Monitor::Notify(header); in ObjectNotify() local
343 LOG_IF(state != Monitor::State::OK, FATAL, RUNTIME) << "Monitor::Notify() failed"; in ObjectNotify()
348 Monitor::State state = Monitor::NotifyAll(header); in ObjectNotifyAll() local
349 LOG_IF(state != Monitor::State::OK, FATAL, RUNTIME) << "Monitor::NotifyAll() failed"; in ObjectNotifyAll()
Dclass.cpp28 std::ostream &operator<<(std::ostream &os, const Class::State &state) in operator <<() argument
30 switch (state) { in operator <<()
104 void Class::SetState(Class::State state) in SetState() argument
106 if (state_ == State::ERRONEOUS || state <= state_) { in SetState()
107 LOG(FATAL, RUNTIME) << "Invalid class state transition " << state_ << " -> " << state; in SetState()
110 state_ = state; in SetState()
Dmethod.cpp395 …panda_file::LineProgramState state(*panda_file_, EntityId(0), dda.GetLineStart(), dda.GetConstantP… in GetLineNumFromBytecodeOffset() local
399 size_t prev_line = state.GetLine(); in GetLineNumFromBytecodeOffset()
403 auto line_diff = state.ReadSLeb128(); in GetLineNumFromBytecodeOffset()
404 state.AdvanceLine(line_diff); in GetLineNumFromBytecodeOffset()
408 auto pc_diff = state.ReadULeb128(); in GetLineNumFromBytecodeOffset()
409 state.AdvancePc(pc_diff); in GetLineNumFromBytecodeOffset()
427 state.AdvancePc(pc_diff); in GetLineNumFromBytecodeOffset()
428 state.AdvanceLine(line_diff); in GetLineNumFromBytecodeOffset()
430 if (state.GetAddress() == bc_offset) { in GetLineNumFromBytecodeOffset()
431 return state.GetLine(); in GetLineNumFromBytecodeOffset()
[all …]
/ark/runtime_core/docs/
Dinterpreter-language-extensions.md20 InstructionHandlerState<...> state(thread, pc, frame);
25 InstructionHandler<...> handler(&state);
31 InstructionHandler<...> handler(&state);
42 …/interpreter/instruction_handler_state.h) objects to encapsulate internal state that contains curr…
54 ALWAYS_INLINE inline ECMAInstructionHandler(InstructionHandlerState<enable_profiling>* state)
55 : InstructionHandlerBase<...>(state) {}
79 InstructionHandlerState<...> state(thread, pc, frame);
84 InstructionHandler<...> handler(&state);
92 ECMAInstructionHandler<...> handler(&state);
Dmemory-management.md73 | nothing:61 | GC:1 | state:00 | OOP to metadata object | Unlo…
75 | tId:29 | Lcount:32 | GC:1 | state:00 | OOP to metadata object | Lightweig…
77 | Monitor:61 | GC:1 | state:01 | OOP to metadata object | Heavyweig…
79 | Hash:61 | GC:1 | state:10 | OOP to metadata object | Hash…
81 | Forwarding address:62 | state:11 | OOP to metadata object | GC…
91 | nothing:29 | GC:1 | state:00 | OOP to metadata object | Unlo…
93 | tId:13 | Lcount:16 | GC:1 | state:00 | OOP to metadata object | Lightweig…
95 | Monitor:29 | GC:1 | state:01 | OOP to metadata object | Heavyweig…
97 | Hash:29 | GC:1 | state:10 | OOP to metadata object | Hash…
99 | Forwarding address:30 | state:11 | OOP to metadata object | GC…
[all …]
/ark/runtime_core/runtime/interpreter/templates/
Dinterpreter-inl_gen.h.erb56 InstructionHandlerState state(thread, pc, frame);
60 ASSERT(state.IsPrimaryOpcodeValid());
63 DISPATCH(GetDispatchTable(dispatch_table), state.GetPrimaryOpcode(), label);
72 <%= namespace %>InstructionHandler<RuntimeIfaceT, enable_instrumentation> handler(&state);
107 const auto secondary_opcode = state.GetSecondaryOpcode();
119 InstructionHandler<RuntimeIfaceT, enable_instrumentation> handler(&state);
137state = InstructionHandlerState(thread, method->GetInstructions() + handler.GetFrame()->GetBytecod…
138 ASSERT(state.IsPrimaryOpcodeValid());
139 goto* dispatch_table[state.GetPrimaryOpcode()];
145 InstructionHandler<RuntimeIfaceT, enable_instrumentation> handler(&state);
[all …]
/ark/runtime_core/docs/diagrams/
Dpanda-states-concurrent-gc.pustate24 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
Dpanda-states-generational-gc.pustate24 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
/ark/js_runtime/ecmascript/compiler/
Dcircuit_ir_specification.md9state 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 …n input value computed from combinational logic part to select which next state the FSM will trans…
17state transition action of the FSM. Selector gates are affiliated (many-to-one) to `MERGE` state g…
19state 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 …]
Dcircuit_builder.h53 GateRef Branch(GateRef state, GateRef condition);
54 GateRef SwitchBranch(GateRef state, GateRef index, int caseCounts);
55 GateRef Return(GateRef state, GateRef depend, GateRef value);
56 GateRef ReturnVoid(GateRef state, GateRef depend);
57 GateRef Goto(GateRef state);
58 GateRef LoopBegin(GateRef state);
59 GateRef LoopEnd(GateRef state);
66 GateRef NewDependRelay(GateRef state, GateRef depend);
Dcircuit_builder.cpp155 GateRef CircuitBuilder::Branch(GateRef state, GateRef condition) in Branch() argument
157 return circuit_->NewGate(OpCode(OpCode::IF_BRANCH), 0, { state, condition }, GateType::EMPTY); in Branch()
160 GateRef CircuitBuilder::SwitchBranch(GateRef state, GateRef index, int caseCounts) in SwitchBranch() argument
162 …return circuit_->NewGate(OpCode(OpCode::SWITCH_BRANCH), caseCounts, { state, index }, GateType::EM… in SwitchBranch()
165 GateRef CircuitBuilder::Return(GateRef state, GateRef depend, GateRef value) in Return() argument
168 …return circuit_->NewGate(OpCode(OpCode::RETURN), 0, { state, depend, value, returnList }, GateType… in Return()
171 GateRef CircuitBuilder::ReturnVoid(GateRef state, GateRef depend) in ReturnVoid() argument
174 …return circuit_->NewGate(OpCode(OpCode::RETURN_VOID), 0, { state, depend, returnList }, GateType::… in ReturnVoid()
177 GateRef CircuitBuilder::Goto(GateRef state) in Goto() argument
179 return circuit_->NewGate(OpCode(OpCode::ORDINARY_BLOCK), 0, { state }, GateType::EMPTY); in Goto()
[all …]
Dllvm_codegen.cpp107 struct CodeInfo& state = *static_cast<struct CodeInfo*>(object); in RoundTripAllocateCodeSection() local
108 uint8_t *addr = state.AllocaCodeSection(size, sectionName); in RoundTripAllocateCodeSection()
118 struct CodeInfo& state = *static_cast<struct CodeInfo*>(object); in RoundTripAllocateDataSection() local
119 return state.AllocaDataSection(size, sectionName); in RoundTripAllocateDataSection()
/ark/js_runtime/ecmascript/regexp/
Dregexp_executor.cpp73 RegExpState *state = PeekRegExpState(); in MatchFailed() local
74 if (state->type_ == StateType::STATE_SPLIT) { in MatchFailed()
80 isMatched = (state->type_ == StateType::STATE_MATCH_AHEAD && isMatched) || in MatchFailed()
81 (state->type_ == StateType::STATE_NEGATIVE_MATCH_AHEAD && !isMatched); in MatchFailed()
83 if (state->type_ == StateType::STATE_MATCH_AHEAD) { in MatchFailed()
87 if (state->type_ == StateType::STATE_NEGATIVE_MATCH_AHEAD) { in MatchFailed()
670 auto state = reinterpret_cast<RegExpState *>( in PushRegExpState() local
673 state->type_ = type; in PushRegExpState()
674 state->currentPc_ = pc; in PushRegExpState()
675 state->currentStack_ = currentStack_; in PushRegExpState()
[all …]
/ark/js_runtime/ecmascript/interpreter/
Dinterpreter-inl.h405 InterpretedFrame *state = GET_FRAME(newSp); in ExecuteNative() local
406 state->base.prev = sp; in ExecuteNative()
407 state->base.type = FrameType::INTERPRETER_FRAME; in ExecuteNative()
408 state->pc = nullptr; in ExecuteNative()
409 state->sp = newSp; in ExecuteNative()
410 state->function = JSTaggedValue(params.callTarget); in ExecuteNative()
509 InterpretedFrame *state = GET_FRAME(newSp); in Execute() local
510 state->pc = pc; in Execute()
511 state->sp = newSp; in Execute()
512 state->function = JSTaggedValue(params.callTarget); in Execute()
[all …]
Dinterpreter_assembly.cpp338 InterpretedFrame *state = GET_FRAME(newSp); \
339 state->base.prev = sp; \
340 state->base.type = FrameType::INTERPRETER_FRAME; \
341 state->pc = nullptr; \
342 state->sp = newSp; \
343 state->function = funcValue; \
392 InterpretedFrame *state = GET_FRAME(newSp); \
393 state->base.prev = sp; \
394 state->base.type = FrameType::INTERPRETER_FRAME; \
395 state->pc = pc = JSMethod::Cast(method)->GetBytecodeArray(); \
[all …]
/ark/js_runtime/ecmascript/tests/
Dtest_helper.h70 InterpretedFrame *state = reinterpret_cast<InterpretedFrame *>(newSp) - 1; in SetupFrame() local
71 state->base.type = ecmascript::FrameType::INTERPRETER_FRAME; in SetupFrame()
72 state->base.prev = sp; in SetupFrame()
73 state->pc = nullptr; in SetupFrame()
74 state->sp = newSp; in SetupFrame()
75 state->function = methodFunction_.GetTaggedValue(); in SetupFrame()
/ark/runtime_core/runtime/tests/
Dthread_test.cpp58 void BeginToStateAndEnd(MTManagedThread::ThreadState state) const in BeginToStateAndEnd()
60 if (state == MTManagedThread::ThreadState::NATIVE_CODE) { in BeginToStateAndEnd()
64 } else if (state == MTManagedThread::ThreadState::MANAGED_CODE) { in BeginToStateAndEnd()
/ark/runtime_core/libpandabase/os/unix/futex/
Dmutex.cpp99 auto res = WaitBrieflyFor(&state_and_waiters_, [](int32_t state) { in Lock() argument
100 return (helpers::ToUnsigned(state) & helpers::ToUnsigned(HELD_MASK)) == 0; in Lock()
177 auto res = WaitBrieflyFor(&state_and_waiters_, [](int32_t state) { in TryLockWithSpinning() argument
178 return (helpers::ToUnsigned(state) & helpers::ToUnsigned(HELD_MASK)) == 0; in TryLockWithSpinning()
270 if (!WaitBrieflyFor(&state_, [](int32_t state) { return state == UNLOCKED; })) { in WriteLock() argument
300 if (!WaitBrieflyFor(&state_, [](int32_t state) { return state >= UNLOCKED; })) { in HandleReadLockWait() argument
/ark/js_runtime/ecmascript/jspandafile/
Ddebug_info_extractor.cpp43 …LineNumberProgramProcessor(LineProgramState state, const uint8_t *program) : state_(state), progra… in LineNumberProgramProcessor() argument
247 …LineProgramState state(pandaFile, sourceFileId.value_or(panda_file::File::EntityId(0)), dda.GetLin… in Extract() local
250 LineNumberProgramProcessor programProcessor(state, program); in Extract()
/ark/runtime_core/libpandafile/
Ddebug_info_extractor.cpp36 …LineNumberProgramProcessor(LineProgramState state, const uint8_t *program) : state_(state), progra… in LineNumberProgramProcessor() argument
278 … LineProgramState state(panda_file, source_file_id.value_or(File::EntityId(0)), dda.GetLineStart(), in Extract() local
281 LineNumberProgramProcessor program_processor(state, program); in Extract()
/ark/runtime_core/verification/type/
Dtype_system.h257 void SetIncrementalRelationClosureMode(bool state) in SetIncrementalRelationClosureMode() argument
259 IncrementalSubtypingClosure_ = state; in SetIncrementalRelationClosureMode()
262 void SetDeferIncrementalRelationClosure(bool state) in SetDeferIncrementalRelationClosure() argument
264 DeferIncrementalSubtypingClosure_ = state; in SetDeferIncrementalRelationClosure()
/ark/js_runtime/ecmascript/ic/
Dic_runtime.cpp123 auto state = ProfileTypeAccessor::ICStateToString(icAccessor_.GetICState()); in TraceIC() local
127 << ", state is " << state; in TraceIC()
131 << state; in TraceIC()

123