/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | controlFlowManyCallExpressionStatementsPerf.ts | 26 let state = true; variable 27 AssertType(state, "boolean"); 30 if (state) { 31 test(state as any && state); 32 AssertType(test(state as any && state), "boolean"); 34 AssertType(state as any && state, "any"); 35 AssertType(state as any, "any"); 36 AssertType(state, "boolean"); 37 AssertType(state, "boolean"); 39 test(state as any && state); [all …]
|
D | generatorTypeCheck62.ts | 26 AssertType(function*(state) { for (const next of gen(state)) { if (next) { … 27 AssertType(state, "T"); 28 return function*(state) { 30 for (const next of gen(state)) { 32 AssertType(gen(state), "IterableIterator<T>"); 34 AssertType(state, "T"); 59 export const Nothing1: Strategy<State> = strategy("Nothing", function*(state: State) { 63 AssertType(function*(state: State) { return state;}, "(State) => Generator<never, State, undefin… 64 AssertType(state, "State"); 65 AssertType(strategy("Nothing", function*(state: State) { return state;}), "(State) => IterableIt… [all …]
|
D | identityRelationNeverTypes.ts | 31 function f1(state: State<{ foo: number }>) { 32 if (state.matches('a') && state.matches('a.b')) { 33 AssertType(state.matches('a') && state.matches('a.b'), "boolean"); 34 AssertType(state.matches('a'), "boolean"); 35 AssertType(state.matches, "<TSV extends string>(TSV) => this is State<{ foo: number; }> & { value: … 37 AssertType(state.matches('a.b'), "boolean"); 38 AssertType(state.matches, "<TSV extends string>(TSV) => this is State<{ foo: number; }> & { value: … 41 state; // never 42 AssertType(state, "never"); 44 type T1 = Equals<typeof state, never>; // true [all …]
|
D | instantiateContextualTypes.ts | 82 ? (state: S) => S 83 : (state: S, payload: P) => S 119 …defaultState, handler(NON_VOID_ACTION, (state, _payload) => state), handler(VOID_ACTION, sta… 125 handler(NON_VOID_ACTION, (state, _payload) => state), 126 AssertType(handler(NON_VOID_ACTION, (state, _payload) => state), "ActionHandler<AppState, number>"); 129 AssertType((state, _payload) => state, "(AppState, number) => AppState"); 130 AssertType(state, "AppState"); 132 AssertType(state, "AppState"); 134 handler(VOID_ACTION, state => state) 135 AssertType(handler(VOID_ACTION, state => state), "ActionHandler<AppState, void>"); [all …]
|
D | overloadResolutionOverNonCTObjectLit.ts | 32 state: IState; 52 … tokens.push(<IToken>({ startIndex: 1, type: '', bracket: 3, state: null, length: 10 })); 53 AssertType(tokens.push(<IToken>({ startIndex: 1, type: '', bracket: 3, state: null, length: 10 })),… 55 AssertType(<IToken>({ startIndex: 1, type: '', bracket: 3, state: null, length: 10 }), "IToken"); 56 AssertType(({ startIndex: 1, type: '', bracket: 3, state: null, length: 10 }), "{ startIndex: numbe… 57 AssertType({ startIndex: 1, type: '', bracket: 3, state: null, length: 10 }, "{ startIndex: number;… 64 AssertType(state, "null");
|
D | silentNeverPropagation.ts | 24 state: TState; 35 declare function createModule<TState, TActions>(state: TState, actions: TActions): ModuleWithState<… 57 breaks.state.a 58 AssertType(breaks.state.a, "number"); 60 breaks.state.z 61 AssertType(breaks.state.z, "string");
|
D | inheritedConstructorPropertyContextualType.ts | 25 state: S property in Base 33 this.state = { version: 2 34 AssertType(this.state = { version: 2 }, "{ version: 2; }"); 36 AssertType(this.state, "State");
|
D | twiceNestedKeyofIndexInference.ts | 44 const state: State = { constant 45 AssertType(state, "State"); 67 const newState: State = set(state, ["a", 'b'], 'why'); // shouldn't be an error 69 AssertType(set(state, ["a", 'b'], 'why'), "Pick<State, "d"> & Required<{ a: Pick<{ b: string; c: nu… 71 AssertType(state, "State");
|
/arkcompiler/ets_runtime/ecmascript/ |
D | js_generator_object.cpp | 37 JSGeneratorState state = generator->GetGeneratorState(); in GeneratorValidate() local 39 if (state == JSGeneratorState::EXECUTING) { in GeneratorValidate() 43 return state; in GeneratorValidate() 51 JSGeneratorState state = GeneratorValidate(thread, gen); in GeneratorResume() local 55 if (state == JSGeneratorState::COMPLETED) { in GeneratorResume() 61 ASSERT_PRINT(state == JSGeneratorState::SUSPENDED_START || in GeneratorResume() 62 state == JSGeneratorState::SUSPENDED_YIELD, in GeneratorResume() 90 JSGeneratorState state = GeneratorValidate(thread, gen); in GeneratorResumeAbrupt() local 98 if (state == JSGeneratorState::SUSPENDED_START) { in GeneratorResumeAbrupt() 99 state = JSGeneratorState::COMPLETED; in GeneratorResumeAbrupt() [all …]
|
D | js_async_generator_object.cpp | 130 JSAsyncGeneratorState state = generator->GetAsyncGeneratorState(); in AsyncGeneratorResumeNext() local 132 ASSERT(state != JSAsyncGeneratorState::EXECUTING); in AsyncGeneratorResumeNext() 134 if (state == JSAsyncGeneratorState::AWAITING_RETURN) { in AsyncGeneratorResumeNext() 154 if (state == JSAsyncGeneratorState::SUSPENDED_START) { in AsyncGeneratorResumeNext() 157 state = JSAsyncGeneratorState::COMPLETED; in AsyncGeneratorResumeNext() 158 generator->SetAsyncGeneratorState(state); in AsyncGeneratorResumeNext() 161 if (state == JSAsyncGeneratorState::COMPLETED) { in AsyncGeneratorResumeNext() 212 } else if (state == JSAsyncGeneratorState::COMPLETED) { in AsyncGeneratorResumeNext() 217 ASSERT((state == JSAsyncGeneratorState::SUSPENDED_START) || in AsyncGeneratorResumeNext() 218 (state == JSAsyncGeneratorState::SUSPENDED_YIELD)); in AsyncGeneratorResumeNext() [all …]
|
/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);
|
D | test-as-expression1-expected.txt | 138 "name": "state", 192 "name": "state", 233 "name": "state", 271 "name": "state",
|
/arkcompiler/ets_runtime/ecmascript/dfx/stackinfo/ |
D | js_stackgetter.h | 40 RunningState state = RunningState::OTHER; member 44 return state < methodKey.state || 45 (state == methodKey.state && methodIdentifier < methodKey.methodIdentifier) || 46 (state == methodKey.state && methodIdentifier == methodKey.methodIdentifier &&
|
/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/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()
|
D | js_async_generator_object_test.cpp | 65 JSAsyncGeneratorState state = asyncGenObj->GetAsyncGeneratorState(); in HWTEST_F_L0() local 66 EXPECT_EQ(state, JSAsyncGeneratorState::UNDEFINED); in HWTEST_F_L0()
|
/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/ets_runtime/ecmascript/interpreter/ |
D | interpreter-inl.h | 206 InterpretedFrame *state = GET_FRAME(sp); \ 207 pc = state->pc; \ 605 InterpretedFrame *state = GET_FRAME(newSp); in ExecuteNative() local 606 state->base.prev = sp; in ExecuteNative() 607 state->base.type = FrameType::INTERPRETER_FRAME; in ExecuteNative() 608 state->pc = nullptr; in ExecuteNative() 609 state->function = info->GetFunctionValue(); in ExecuteNative() 610 state->thisObj = info->GetThisValue(); in ExecuteNative() 712 InterpretedFrame *state = GET_FRAME(newSp); in Execute() local 713 state->pc = pc; in Execute() [all …]
|
D | interpreter_assembly.cpp | 497 AsmInterpretedFrame *state = GET_ASM_FRAME(sp); in HandleReturn() local 499 << std::hex << reinterpret_cast<uintptr_t>(state->pc); in HandleReturn() 500 Method *method = ECMAObject::Cast(state->function.GetTaggedObject())->GetCallTarget(); in HandleReturn() 504 sp = state->base.prev; in HandleReturn() 512 state->acc = acc; in HandleReturn() 525 AsmInterpretedFrame *state = GET_ASM_FRAME(sp); in HandleReturnundefined() local 527 << std::hex << reinterpret_cast<uintptr_t>(state->pc); in HandleReturnundefined() 528 Method *method = ECMAObject::Cast(state->function.GetTaggedObject())->GetCallTarget(); in HandleReturnundefined() 532 sp = state->base.prev; in HandleReturnundefined() 540 state->acc = JSTaggedValue::Undefined(); in HandleReturnundefined() [all …]
|
/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 …n input value computed from combinational logic part to select which next state the FSM will trans… 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 | graph_visitor.cpp | 29 GateRef state = Circuit::NullGate(); in ReplaceGate() local 32 state = acc_.GetState(gate); in ReplaceGate() 34 return ReplaceGate(gate, StateDepend {state, depend}, replacement); in ReplaceGate() 40 auto state = stateDepend.State(); in ReplaceGate() local 48 ASSERT(state != Circuit::NullGate()); in ReplaceGate() 49 it = acc_.ReplaceIn(it, state); in ReplaceGate()
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/jsDeclarationsFunctionClassesCjsExportAssignment/ |
D | context.js | 65 this.state = this.construct(input); 66 AssertType(this.state = this.construct(input), "State"); 67 AssertType(this.state, "any");
|
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/ |
D | heap_sampling.cpp | 100 methodKey.state = JsStackGetter::GetRunningState(it, vm_, isNative, true); in GetStack() 103 methodKey.state = JsStackGetter::GetRunningState(it, vm_, isNative, false); in GetStack() 147 frameInfoTemps_[i].methodKey.state, in FillScriptIdAndStore() 157 std::string HeapSampling::AddRunningState(char *functionName, RunningState state, kungfu::DeoptType… in AddRunningState() argument 160 if (state == RunningState::AOT && type != kungfu::DeoptType::NOTCHECK) { in AddRunningState() 161 state = RunningState::AINT; in AddRunningState() 163 if (state == RunningState::BUILTIN) { in AddRunningState()
|